Add command

This commit is contained in:
Jimmy 2021-08-26 13:49:17 +12:00
parent 5d7ddfde28
commit f59c1acd67
1 changed files with 18 additions and 0 deletions

18
command.py Normal file
View File

@ -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()