summaryrefslogtreecommitdiff
path: root/src/main.py
blob: 33affa271187f14eb2b8c7d31ee27c929a827dc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)

@bot.command()
async def ping(ctx):
    await ctx.send("pong")

bot.run(config['token'])