From f5f273515efbf4f5a874c141de4216fc4df46497 Mon Sep 17 00:00:00 2001 From: shadowinged Date: Tue, 18 Mar 2025 13:24:13 -0400 Subject: [PATCH] yez --- .gitignore | 1 + bot.py | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0c2ad09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/bot.py b/bot.py index e69de29..c31fead 100644 --- a/bot.py +++ b/bot.py @@ -0,0 +1,21 @@ +import discord +from discord.ext import commands +import os +from dotenv import load_dotenv + +class Bot(commands.Bot): + def __init__(self, intents: discord.Intents, **kwargs): + super().__init__(command_prefix="!--!--!", intents=intents, case_insensitive=True) + + async def on_ready(self): + print(f'{self.user} has connected to Discord!') + await self.tree.sync() + +load_dotenv() +intents = discord.Intents.all() +bot = Bot(intents=intents) +client = discord.Client(intents=intents) +token = os.getenv("token") +status = os.getenv("status") + +bot.run(token) \ No newline at end of file