From 2b10e99265f816f34e8530bac6b88a4ebf05b7f7 Mon Sep 17 00:00:00 2001 From: Roman Gräf Date: Sat, 5 Sep 2020 23:19:39 +0200 Subject: Initial commit --- bot/bot.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bot/bot.py (limited to 'bot/bot.py') diff --git a/bot/bot.py b/bot/bot.py new file mode 100644 index 0000000..4e1c884 --- /dev/null +++ b/bot/bot.py @@ -0,0 +1,17 @@ +from discord.ext import commands + +from bot.config import Config + +bot = commands.Bot(command_prefix=commands.when_mentioned_or('!')) + +name = "Bot Name" +description = "Bot Description" + + +@bot.command() +async def hello(ctx: commands.Context): + await ctx.send('Hello, World') + + +def main(): + bot.run(Config.token) -- cgit