forked from gooberinc/goober
shortened URL
This commit is contained in:
parent
b24b405d91
commit
53ef6e306f
2 changed files with 2 additions and 2 deletions
2
bot.py
2
bot.py
|
@ -203,7 +203,7 @@ def check_for_update():
|
||||||
if not latest_version or not download_url:
|
if not latest_version or not download_url:
|
||||||
print(f"{RED}{get_translation(LOCALE, 'invalid_server')}{RESET}")
|
print(f"{RED}{get_translation(LOCALE, 'invalid_server')}{RESET}")
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
local_version = get_local_version()
|
local_version = get_local_version()
|
||||||
if local_version == "0.0.0":
|
if local_version == "0.0.0":
|
||||||
with open(LOCAL_VERSION_FILE, "w") as f:
|
with open(LOCAL_VERSION_FILE, "w") as f:
|
||||||
|
|
|
@ -4,7 +4,7 @@ import platform
|
||||||
import random
|
import random
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
VERSION_URL = "https://goober.whatdidyouexpect.eu"
|
VERSION_URL = "https://goober.expect.ovh"
|
||||||
UPDATE_URL = VERSION_URL+"/latest_version.json"
|
UPDATE_URL = VERSION_URL+"/latest_version.json"
|
||||||
LOCAL_VERSION_FILE = "current_version.txt"
|
LOCAL_VERSION_FILE = "current_version.txt"
|
||||||
TOKEN = os.getenv("DISCORD_BOT_TOKEN")
|
TOKEN = os.getenv("DISCORD_BOT_TOKEN")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue