-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (20 loc) · 700 Bytes
/
Copy pathmain.py
File metadata and controls
32 lines (20 loc) · 700 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
###############################################
# Template made by HenriHTTP #
# https://github.com/HenriHTTP #
# Copyright© HenriHTTP, 2024 #
###############################################
import disnake
from disnake.ext import commands
import os
import asyncio
from dotenv import load_dotenv
load_dotenv()
DISCORD_TOKEN = os.getenv('TOKEN')
intents = disnake.Intents.all()
bot = commands.Bot(command_prefix="/", intents=intents)
async def load_cogs():
for filename in os.listdir("./cogs"):
if filename.endswith(".py"):
bot.load_extension(f"cogs.{filename[:-3]}")
asyncio.run(load_cogs())
bot.run(DISCORD_TOKEN)