Created
May 9, 2017 13:45
-
-
Save Restioson/fffd3ce0d39502f89a640d82dad22130 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.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