Initialisation de bot pour Battle4Suisse

This commit is contained in:
Emmy D'Anello 2025-03-10 17:30:58 +01:00
commit 88a2f12153
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 24 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
__pycache__
.venv/
config.py

18
bot.py Normal file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env python3
import discord
from discord.ext import commands
from config import *
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix='$', intents=intents)
@bot.command()
async def test(ctx):
await ctx.send("Hello world!")
bot.run(DISCORD_TOKEN)

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
discord.py