forked from Code-Theft-Auto/sockeyPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
34 lines (26 loc) · 756 Bytes
/
main.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
import os
import sys
sys.path.insert(1, './modules')
import discord
import asyncio
from discord.ext import commands
beats_activity = [discord.ActivityType.listening, "Beats"]
bot = commands.Bot(command_prefix='.',intents=discord.Intents.all(), activity=discord.Activity(type=beats_activity[0], name=beats_activity[1]),status=discord.Status.dnd)
cogs = [
'general',
'music',
'coglur',
'help'
]
@bot.event
async def on_ready():
print("logged in as {0.user}".format(bot))
async def load_extension():
for file in cogs:
await bot.load_extension(f'cogs.{file}')
async def main():
async with bot:
await load_extension()
TOKEN = str(os.getenv('TOKEN'))
await bot.start(TOKEN)
asyncio.run(main())