diff options
| author | Rapptz <[email protected]> | 2016-01-27 16:45:09 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-27 16:45:09 -0500 |
| commit | a636f6ae6f9060365f22cf36a8cd7f850d34d17b (patch) | |
| tree | 9d8c5c19acd1b35cb5941c33135cda96afd4e15f | |
| parent | [commands] Fix typo on HelpFormatter.show_check_failure attribute. (diff) | |
| download | discord.py-a636f6ae6f9060365f22cf36a8cd7f850d34d17b.tar.xz discord.py-a636f6ae6f9060365f22cf36a8cd7f850d34d17b.zip | |
Update README to have a valid example.
| -rw-r--r-- | README.md | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -46,10 +46,9 @@ async def on_ready(): @client.event async def on_message(message): if message.content.startswith('!test'): - logs = await client.logs_from(message.channel, limit=100) counter = 0 tmp = await client.send_message(message.channel, 'Calculating messages...') - for log in logs: + async for log in client.logs_from(message.channel, limit=100): if log.author == message.author: counter += 1 |