mirror of
https://gitlab.com/ddorn/tfjm-discord-bot.git
synced 2025-02-06 09:33:03 +00:00
37 lines
892 B
Python
37 lines
892 B
Python
#!/bin/python
|
|
|
|
from src.constants import *
|
|
from src.core import CustomBot
|
|
|
|
# We allow "! " to catch people that put a space in their commands.
|
|
# It must be in first otherwise "!" always match first and the space is not recognised
|
|
from src.utils import fg
|
|
|
|
|
|
# Global variable to hold the tirages.
|
|
# We *want* it to be global so we can reload the tirages cog without
|
|
# removing all the running tirages
|
|
tirages = {}
|
|
|
|
|
|
def start():
|
|
bot = CustomBot(("! ", "!"))
|
|
|
|
@bot.event
|
|
async def on_ready():
|
|
print(f"{bot.user} has connected to Discord!")
|
|
|
|
bot.remove_command("help")
|
|
bot.load_extension("src.cogs.dev")
|
|
bot.load_extension("src.cogs.errors")
|
|
bot.load_extension("src.cogs.misc")
|
|
bot.load_extension("src.cogs.teams")
|
|
bot.load_extension("src.cogs.tirages")
|
|
bot.load_extension("src.utils")
|
|
|
|
bot.run(TOKEN)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
start()
|