mirror of
https://gitlab.com/ddorn/tfjm-discord-bot.git
synced 2025-02-20 20:21:19 +00:00
Compare commits
2 Commits
4fe31e3f7b
...
45d760135b
Author | SHA1 | Date | |
---|---|---|---|
|
45d760135b | ||
|
5bfc32e478 |
@ -1,5 +1,7 @@
|
|||||||
#!/bin/python
|
#!/bin/python
|
||||||
|
|
||||||
|
from discord import Intents
|
||||||
|
|
||||||
from src.constants import *
|
from src.constants import *
|
||||||
from src.core import CustomBot
|
from src.core import CustomBot
|
||||||
|
|
||||||
@ -7,7 +9,6 @@ from src.core import CustomBot
|
|||||||
# It must be in first otherwise "!" always match first and the space is not recognised
|
# It must be in first otherwise "!" always match first and the space is not recognised
|
||||||
from src.utils import fg
|
from src.utils import fg
|
||||||
|
|
||||||
|
|
||||||
# Global variable to hold the tirages.
|
# Global variable to hold the tirages.
|
||||||
# We *want* it to be global so we can reload the tirages cog without
|
# We *want* it to be global so we can reload the tirages cog without
|
||||||
# removing all the running tirages
|
# removing all the running tirages
|
||||||
@ -15,7 +16,7 @@ tirages = {}
|
|||||||
|
|
||||||
|
|
||||||
def start():
|
def start():
|
||||||
bot = CustomBot(("! ", "!"), case_insensitive=True, owner_id=DIEGO)
|
bot = CustomBot(("! ", "!"), case_insensitive=True, owner_id=DIEGO, intents=Intents.all())
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user