-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
30 lines (21 loc) · 759 Bytes
/
main.py
File metadata and controls
30 lines (21 loc) · 759 Bytes
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
import discord
import os
from dotenv import load_dotenv
from tempVoice.tempVoice import tempVoice
from Music.music import Music
intents = discord.Intents.default()
intents.members = True
client = discord.ext.commands.Bot(command_prefix='!', intents=intents)
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
await client.change_presence(activity=discord.Activity(type=discord.ActivityType.playing, name="Bussin"))
print("ready")
client.add_cog(tempVoice(client, 669400622038253568))
client.add_cog(Music(client))
@client.command()
async def restartMusic(ctx):
client.remove_cog(Music(client))
client.add_cog(Music(client))
load_dotenv()
client.run(os.getenv('BOT_TOKEN'))