Add command
This commit is contained in:
18
command.py
Normal file
18
command.py
Normal 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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user