Skip to content

Instantly share code, notes, and snippets.

@SkryptKiddie
Created September 8, 2018 05:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SkryptKiddie/b56149e7513c360ccc80048719e462c1 to your computer and use it in GitHub Desktop.
Save SkryptKiddie/b56149e7513c360ccc80048719e462c1 to your computer and use it in GitHub Desktop.
import discord # golf bot by skryptkiddie
from discord.ext import commands
bot = commands.Bot(command_prefix="-", description="Simple Golf Discord bot in Python.")
@bot.command(pass_context=True)
async def ping(ctx):
await bot.say("Pong")
@bot.command(pass_context=True)
async def ban(ctx, member: discord.Member):
await bot.ban(member)
@bot.command(pass_context=True)
async def say(ctx, message):
await bot.say(message)
bot.run("token here")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment