-
-
Notifications
You must be signed in to change notification settings - Fork 127
/
voicecreate.py
33 lines (25 loc) · 874 Bytes
/
voicecreate.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
import discord
from discord.ext import commands
import traceback
import sys
intents = discord.Intents.default()
#Message content intent needs to be enabled in the developer portal for your chosen bot.
intents.message_content = True
bot = commands.Bot(command_prefix=".", intents=intents)
bot.remove_command("help")
DISCORD_TOKEN = 'Enter Discord Token here'
initial_extensions = ['cogs.voice']
@bot.event
async def on_ready():
print('Logged in as')
print(bot.user.name)
print(bot.user.id)
print('------')
for extension in initial_extensions:
try:
await bot.load_extension(extension)
print(f'Loaded {extension}')
except Exception as e:
print(f'Failed to load extension {extension}.', file=sys.stderr)
traceback.print_exc()
bot.run(DISCORD_TOKEN)