mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-23 00:56:05 +00:00
Update README to have a valid example.
This commit is contained in:
parent
d8d4c4e843
commit
a636f6ae6f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user