Skip to content

Instantly share code, notes, and snippets.

@Restioson
Created May 9, 2017 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Restioson/fffd3ce0d39502f89a640d82dad22130 to your computer and use it in GitHub Desktop.
Save Restioson/fffd3ce0d39502f89a640d82dad22130 to your computer and use it in GitHub Desktop.
# Import discord.py
import discord
import asyncio
client = discord.Client()
@client.event
async def on_ready():
print("Bot is ready!")
@client.event
async def on_message(message):
print("Message was", message.content)
if message.content.startswith("--yt"):
await client.send_message(message.channel, "youtube.com")
elif message.content.startswith("--???"):
await client.send_message(message.channel, "http://i3.kym-cdn.com/photos/images/facebook/000/993/875/084.png")
client.run("token")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment