diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py new file mode 100644 index 0000000..33affa2 --- /dev/null +++ b/src/main.py @@ -0,0 +1,20 @@ +from dotenv import dotenv_values +from discord.ext import commands + +import discord +import os + +config = { + **dotenv_values(".env"), + **os.environ, + } + +intents = discord.Intents.default() +intents.message_content = True +bot = commands.Bot(command_prefix="Sigmar! ", intents=intents) + +async def ping(ctx): + await ctx.send("pong") + +bot.run(config['token']) |
