This commit is contained in:
shadowinged 2025-03-18 13:24:13 -04:00
parent ec0d70e3b7
commit f5f273515e
2 changed files with 22 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

21
bot.py
View File

@ -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)