Created
September 8, 2018 05:23
-
-
Save SkryptKiddie/b56149e7513c360ccc80048719e462c1 to your computer and use it in GitHub Desktop.
This file contains 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 characters
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