mirror of
https://github.com/SamSanai/VoiceMaster-Discord-Bot.git
synced 2024-11-22 01:45:32 +01:00
30 lines
672 B
Python
30 lines
672 B
Python
import discord
|
|
from discord.ext import commands
|
|
import traceback
|
|
import sys
|
|
|
|
bot = commands.Bot(command_prefix=".")
|
|
|
|
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(DISCORD_TOKEN)
|