forked from SamSanai/VoiceMaster-Discord-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvoicecreate.py
More file actions
31 lines (24 loc) · 708 Bytes
/
voicecreate.py
File metadata and controls
31 lines (24 loc) · 708 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
31
import discord
from discord.ext import commands
import traceback
import sys
import os
bot = commands.Bot(command_prefix=".")
token = os.environ.get('TOKEN')
bot.remove_command("help")
DISCORD_TOKEN = 'Enter Discord Token here'
initial_extensions = ['cogs.voice']
if __name__ == '__main__':
for extension in initial_extensions:
try:
bot.load_extension(extension)
except Exception as e:
print(f'Failed to load extension {extension}.', file=sys.stderr)
traceback.print_exc()
@bot.event
async def on_ready():
print('Logged in as')
print(bot.user.name)
print(bot.user.id)
print('------')
bot.run(token)