-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot.py
45 lines (38 loc) · 1.05 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from discord.ext.commands import Bot
import os
from covid import Covid
from cropped import Cropped
from dice import Dice
from help import Help
from hello import Hello
from landmine import Landmine
from message_playback import MessagePlayback
from mine import Mine
from sleep import Sleep
from tex import Tex
from x import X
from doctor import Doctor
from hall_of_fame import HallOfFame
bot = Bot(command_prefix='$')
@bot.listen()
async def on_ready():
for guild in bot.guilds:
print(f'Guild: {guild.name}, {guild.id}')
if __name__ == '__main__':
bot.remove_command('help')
bot.add_cog(Help(bot))
bot.add_cog(Hello(bot))
bot.add_cog(Covid(bot))
bot.add_cog(X(bot))
bot.add_cog(Dice(bot))
bot.add_cog(Landmine(bot))
bot.add_cog(Sleep(bot))
bot.add_cog(Tex(bot))
bot.add_cog(Mine(bot))
bot.add_cog((MessagePlayback(bot)))
bot.add_cog(Doctor(bot))
bot.add_cog(HallOfFame(bot))
# bot.add_cog(Cropped(bot))
TOKEN = os.environ['DISCORD_BOT_TOKEN']
# sleepCommand = sleep.Sleep()
bot.run(TOKEN)