aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-01-27 16:45:09 -0500
committerRapptz <[email protected]>2016-01-27 16:45:09 -0500
commita636f6ae6f9060365f22cf36a8cd7f850d34d17b (patch)
tree9d8c5c19acd1b35cb5941c33135cda96afd4e15f
parent[commands] Fix typo on HelpFormatter.show_check_failure attribute. (diff)
downloaddiscord.py-a636f6ae6f9060365f22cf36a8cd7f850d34d17b.tar.xz
discord.py-a636f6ae6f9060365f22cf36a8cd7f850d34d17b.zip
Update README to have a valid example.
-rw-r--r--README.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/README.md b/README.md
index 551782d9..94a2ee72 100644
--- a/README.md
+++ b/README.md
@@ -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