-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.py
43 lines (37 loc) · 1.24 KB
/
app.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
import discord
from discord.ext import commands
from shared.discord_token import TOKEN
import asyncio
from features.commands.Greeting import Greeting
from features.commands.Gambling import Gambling
from features.commands.Time import Time
from features.commands.Meal import Meal
from features.commands.Information import Information
from features.commands.Question import Question
from features.commands.Lol import Lol
from features.commands.Valo import Valo
from features.alarm.Anmauija import Anmauija
from features.alarm.Jaseub import Jaseub
intents = discord.Intents.default()
intents.message_content = True
intents.members = False
bot = commands.Bot(command_prefix="!", intents=intents)
async def setup():
await bot.add_cog(Greeting(bot))
await bot.add_cog(Gambling(bot))
await bot.add_cog(Time(bot))
await bot.add_cog(Meal(bot))
await bot.add_cog(Information(bot))
await bot.add_cog(Question(bot))
# await bot.add_cog(Lol(bot))
await bot.add_cog(Anmauija(bot))
await bot.add_cog(Jaseub(bot))
# await bot.add_cog(Valo(bot))
@bot.event
async def on_ready():
print(f'{bot.user.name} connected')
async def main():
await setup()
await bot.start(TOKEN)
if __name__ == "__main__":
asyncio.run(main())