commit 88a2f121532f23c7102318ce1a2ea67c15d6d985 Author: Emmy D'Anello Date: Mon Mar 10 17:30:58 2025 +0100 Initialisation de bot pour Battle4Suisse diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8eac53d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +__pycache__ + +.venv/ + +config.py diff --git a/bot.py b/bot.py new file mode 100644 index 0000000..e077673 --- /dev/null +++ b/bot.py @@ -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) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..844f49a --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +discord.py