initial commit
This commit is contained in:
commit
5b58feb646
10 files changed
+131
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
import logging
|
||||
import asyncio
|
||||
|
||||
load_dotenv('credentials.env')
|
||||
|
||||
intents = discord.Intents.default()
|
||||
intents.message_content = True
|
||||
|
||||
bot = commands.Bot(command_prefix='!', intents=intents)
|
||||
|
||||
@bot.event
|
||||
async def on_ready():
|
||||
print(f'✅ {bot.user} is online!')
|
||||
|
||||
async def main():
|
||||
async with bot:
|
||||
await bot.load_extension('cogs.general')
|
||||
await bot.load_extension('cogs.chance')
|
||||
await bot.load_extension('cogs.gifs')
|
||||
await bot.start(os.getenv('DISCORD_TOKEN'))
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
asyncio.run(main())
|
||||
Reference in new issue
Block a user