Skip to content

Instantly share code, notes, and snippets.

@xjcl
Created January 4, 2020 19:59
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 xjcl/a1427059421cad7c7955f5bda1b3fad7 to your computer and use it in GitHub Desktop.
Save xjcl/a1427059421cad7c7955f5bda1b3fad7 to your computer and use it in GitHub Desktop.
@client.event
async def on_ready():
while True:
await asyncio.sleep(24*60*60)
print('Another day has passed!')
@client.event
async def on_message(message):
if message.author == client.user: return # Do not reply to self
await message.channel.send('I can still respond to your messages!')
reply = await client.wait_for('message', timeout=10)
if 'shut up' in reply.content: await message.channel.send('no u')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment