Skip to content

Instantly share code, notes, and snippets.

@Kaleidosium
Created October 26, 2018 15:10
Show Gist options
  • Save Kaleidosium/72ff786e364cb7fc38b37a292f3497e3 to your computer and use it in GitHub Desktop.
Save Kaleidosium/72ff786e364cb7fc38b37a292f3497e3 to your computer and use it in GitHub Desktop.
import discord
TOKEN = '' #removed because i don't want to spoil my tokens
client = discord.Client()
@client.event
async def on_message(message):
# don't want the bot to reply to itself
if message.author == client.user:
return
msg_contents = message.contents.lower()
if message.content.include("more callie")
msg = ' https://pli.io/25k79O.jpg {0.author.mention}'.format(message)
await client.send_message(message.channel, msg)
@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
client.run(TOKEN)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment