|
|
@ -8,7 +8,7 @@ from discord.ext import tasks |
|
|
|
from player import * |
|
|
|
import traceback |
|
|
|
from exceptions import * |
|
|
|
import asyncio, sys |
|
|
|
import asyncio, sys, argparse |
|
|
|
|
|
|
|
#Скрыть сообщение если надо ephemeral=True |
|
|
|
class DiscordClient(discord.Client): |
|
|
@ -142,6 +142,13 @@ class DiscordClient(discord.Client): |
|
|
|
print("backend is up, continue build app") |
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
parser = argparse.ArgumentParser() |
|
|
|
parser.add_argument("--import-test", action="store_true", default=None) |
|
|
|
args = parser.parse_args() |
|
|
|
if args.import_test: |
|
|
|
DiscordClient("","") |
|
|
|
sys.exit(0) |
|
|
|
|
|
|
|
DiscordClient( |
|
|
|
os.getenv("BACKEND_URL"), |
|
|
|
os.getenv("BACKEND_SECRETKEY") |
|
|
|