Last active
July 2, 2016 17:18
-
-
Save SplitPixl/9ecba8329a07e194aa5b1b411bd10875 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 | |
from discord.ext import commands | |
bot = commands.Bot(command_prefix='snek ', description='this is snekbot.') | |
@bot.event | |
async def on_ready(): | |
print('Logged in as') | |
print(bot.user.name) | |
print(bot.user.id) | |
print('------') | |
await bot.change_status(game=discord.Game(name="snake.exe"), idle=False) | |
@bot.command() | |
async def hss(*, stuff_for_snek_to_say): | |
"""says stuff""" | |
await bot.say(stuff_for_snek_to_say) | |
@bot.command() | |
async def pls(): | |
"""try it""" | |
await bot.say(':snake:') | |
@bot.command() | |
async def info(): | |
"""info about snekbot""" | |
await bot.say('snekbot was coded in python with the library discord.py. hss.') | |
@bot.command() | |
async def invite(): | |
"""snekbot invite link""" | |
await bot.say('to add snekbot to your server click this: https://goo.gl/HTxJWJ') | |
@bot.command() | |
async def intensifies(): | |
"""[SNEK INTENSIFIES]""" | |
await bot.say('http://i.imgur.com/hSZfCiD.gif') | |
@bot.command() | |
async def hello(): | |
"""hi""" | |
await bot.say('hello yes this is snek.') | |
@bot.command() | |
async def play(*, game_to_play): | |
"""snek likes playing game""" | |
await bot.change_status(game=discord.Game(name=game_to_play), idle=False) | |
@bot.command() | |
async def sourcecode(): | |
"""snek's source code""" | |
await bot.say('https://gist.github.com/SplitPixl/9ecba8329a07e194aa5b1b411bd10875') | |
bot.run('token') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment