mirror of
https://wiilab.wiimart.org/wiimart/WiiMartBot
synced 2025-09-05 21:11:01 +02:00
yez
This commit is contained in:
parent
ec0d70e3b7
commit
f5f273515e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.env
|
21
bot.py
21
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)
|
Loading…
x
Reference in New Issue
Block a user