2020-04-27 08:05:17 +00:00
|
|
|
#!/bin/python
|
|
|
|
|
|
|
|
from src.constants import *
|
|
|
|
|
2020-04-30 15:26:33 +00:00
|
|
|
|
2020-04-27 20:26:04 +00:00
|
|
|
# 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
|
2020-04-30 15:26:33 +00:00
|
|
|
from src.core import CustomBot
|
|
|
|
|
|
|
|
bot = CustomBot(("! ", "!"))
|
2020-04-27 08:05:17 +00:00
|
|
|
|
2020-04-29 14:55:12 +00:00
|
|
|
# Global variable to hold the tirages.
|
2020-04-29 13:14:35 +00:00
|
|
|
# We *want* it to be global so we can reload the tirages cog without
|
|
|
|
# removing all the running tirages
|
2020-04-27 09:43:16 +00:00
|
|
|
tirages = {}
|
2020-04-27 08:05:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
@bot.event
|
|
|
|
async def on_ready():
|
|
|
|
print(f"{bot.user} has connected to Discord!")
|
|
|
|
|
|
|
|
|
2020-04-29 11:42:49 +00:00
|
|
|
bot.remove_command("help")
|
2020-04-28 10:41:26 +00:00
|
|
|
bot.load_extension("src.cogs.dev")
|
2020-04-29 13:14:35 +00:00
|
|
|
bot.load_extension("src.cogs.errors")
|
2020-04-28 18:25:27 +00:00
|
|
|
bot.load_extension("src.cogs.misc")
|
2020-04-29 13:14:35 +00:00
|
|
|
bot.load_extension("src.cogs.teams")
|
|
|
|
bot.load_extension("src.cogs.tirages")
|
2020-04-30 15:26:33 +00:00
|
|
|
bot.load_extension("src.utils")
|
2020-04-27 09:43:16 +00:00
|
|
|
|
|
|
|
|
2020-04-27 08:05:17 +00:00
|
|
|
if __name__ == "__main__":
|
|
|
|
bot.run(TOKEN)
|