Created
January 4, 2020 19:59
-
-
Save xjcl/a1427059421cad7c7955f5bda1b3fad7 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
@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