From f59c1acd67695238db472331fc0a386415bfd27a Mon Sep 17 00:00:00 2001 From: Jimmy Date: Thu, 26 Aug 2021 13:49:17 +1200 Subject: [PATCH] Add command --- command.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 command.py diff --git a/command.py b/command.py new file mode 100644 index 0000000..cc04c6c --- /dev/null +++ b/command.py @@ -0,0 +1,18 @@ +from discord.ext import commands +from os import getenv + +bot = commands.Bot(command_prefix='@') + + +@bot.command() +async def echo(ctx, arg): + print(arg) + await ctx.send(arg) + +def main(): + bot.run(getenv("TOKEN")) + +if __name__ == "__main__": + main() + + \ No newline at end of file