ZeroKnight / ZeroBot

My personal IRC/Multi-protocol Bot created (and re-created) for education and amusement.
MIT License
1 stars 0 forks source link

Add option to cancel a waiting command #8

Closed ZeroKnight closed 4 years ago

ZeroKnight commented 4 years ago

Add a -c/--cancel option to wait that takes (TBD) as a value to facilitate cancelling delayed commands.

Will need to wrap delayed commands in an asyncio.Task, and keep a list/queue of waiting commands to be able to cancel them.

ZeroKnight commented 4 years ago

Ended up having to implement this as its own cancel command. argparse doesn't support separate groups of mutually exclusive arguments.