From fcc7aea468ade790fc62440fe5ab4a93eea75b8a Mon Sep 17 00:00:00 2001 From: JoeBanks13 Date: Sat, 3 Feb 2018 12:39:28 +0000 Subject: Add basic bot --- __main__.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 __main__.py (limited to '__main__.py') diff --git a/__main__.py b/__main__.py new file mode 100644 index 000000000..cb4157707 --- /dev/null +++ b/__main__.py @@ -0,0 +1,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")) -- cgit v1.2.3