SquogBot/main.py
2025-05-11 16:28:36 +07:00

27 lines
679 B
Python

import nextcord
from nextcord.ext import commands
import os
from dotenv import load_dotenv
load_dotenv()
#Defining the basic stuff here
SquogServer = 1356433463854497944
SquogToken = os.environ.get("TOKEN")
client = commands.Bot(command_prefix="!", intents=nextcord.Intents.all())
#Removing the default help command because no
client.remove_command("help")
#Loading Cogs
for filename in os.listdir('./commands'):
if filename.endswith('.py'):
client.load_extension(f'commands.{filename[:-3]}')
for filename in os.listdir("./events"):
if filename.endswith('.py'):
client.load_extension(f'events.{filename[:-3]}')
# Starting bot
client.run(SquogToken)