forked from Sodynoizz/GM20-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot.py
29 lines (25 loc) · 944 Bytes
/
bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import discord
from discord.ext import commands
from discord.gateway import DiscordWebSocket
from secret.keys import BOT_TOKEN
from utility.mobilestatus import Status
class MyBot(commands.AutoShardedBot):
def __init__(self):
intents = discord.Intents.all()
super().__init__(command_prefix = commands.when_mentioned_or("uwu") , case_insensitive = True , help_command = None , intents = intents)
@commands.Cog.listener()
async def on_ready(self):
print(f"{self.user} is ready!")
bot = MyBot()
bot.load_extensions('src.clear',
'src.events',
'src.help',
'src.order',
'src.report',
'src.stats',
'src.stock',
'src.utils',
'src.faq',
'src.friends')
DiscordWebSocket.identify = Status.identify
bot.run(BOT_TOKEN)