most of work for 2.4 done
finished functionality and help, documentation (readme) not done - added mention - finished debug - improved poll info - finished cmd - finished to_command
This commit is contained in:
1 parent
99898c9a14
commit
13a27bac4a
16 files changed
+471
-45
No files matched your search
@@ -148,7 +148,7 @@ async def ask_for_channel(ctx, bot, server, message):
|
||||
def check(m):
|
||||
return message.author.id == m.author.id
|
||||
try:
|
||||
reply = await bot.wait_for('message', timeout=60)
|
||||
reply = await bot.wait_for('message', timeout=60, check=check)
|
||||
except asyncio.TimeoutError:
|
||||
pass
|
||||
else:
|
||||
@@ -161,4 +161,4 @@ async def ask_for_channel(ctx, bot, server, message):
|
||||
nr = int(reply.content)
|
||||
if 0 < nr <= channel_list.__len__():
|
||||
valid_reply = True
|
||||
return channel_list[nr - 1]
|
||||
return channel_list[nr - 1]
|
||||
Reference in new issue
Block a user