Skip to content

Allow listen_for to receive a timeout parameter #18

@mikhail

Description

@mikhail

Example:

yield message.reply("Ok, I'll delete everything. Say `abort` in the next 10 seconds to stop me.")
heard = yield message.listen_for('abort', timeout=10)
if heard:
    yield message.reply('Phew... aborted!')
else:
    yield message.reply('Goodbye cruel world')
    yield bot.self.destruct()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions