-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.py
31 lines (30 loc) · 921 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
from commands import *
from commands.playback import Playback
from commands.controls import Controls
from commands.lyrics import Lyrics
from commands.about import About
from scripts.youtube import youtube
if __name__ == '__main__':
intents = discord.Intents.default()
intents.message_content = True
Commands.bot = commands.AutoShardedBot(
command_prefix='-',
help_command=None,
intents=intents,
)
Commands.bot.add_cog(Playback())
Commands.bot.add_cog(Controls())
Commands.bot.add_cog(Lyrics())
Commands.bot.add_cog(About())
@Commands.bot.event
async def on_ready():
await youtube.init_fetcher()
await Commands.bot.change_presence(
activity=discord.Activity(
name='-help 👀',
type=3,
),
)
import os
TOKEN = os.environ.get('DISCORD_TOKEN')
Commands.bot.run(TOKEN)