Created
April 18, 2020 00:53
-
-
Save mpsparrow/6678c24139bdad4b45bcdbf5536ed89d to your computer and use it in GitHub Desktop.
Revisions
-
Matthew created this gist
Apr 18, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ ''' Bot Name: Creator: Version: Date Updated: Date Created: ''' import discord from discord.ext import commands token = 1234567890 prefix = "bot?" bot = commands.Bot(command_prefix=prefix) # runs on startup @bot.event async def on_ready(): print("Started!") # simple ping command @bot.command(name='ping', description='pings bot', usage='ping', aliases=['p']) async def ping(ctx): await ctx.send("pong!") # runs bot bot.run(token)