aboutsummaryrefslogtreecommitdiffstats
path: root/__main__.py
blob: cb4157707a8d634e460ba074d4f852c2d094291f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3

import discord
from discord.ext import commands
import os

bot = commands.Bot(command_prefix=commands.when_mentioned_or(
    os.environ.get("BOT_PREFIX")))


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

bot.run(os.environ.get("BOT_TOKEN"))