| 1 |
from errbot import BotPlugin, cmdfilter |
| 2 |
|
| 3 |
|
| 4 |
class TestCommandNotFoundFilter(BotPlugin): |
| 5 |
@cmdfilter(catch_unprocessed=True) |
| 6 |
def command_not_found(self, msg, cmd, args, dry_run, emptycmd=False): |
| 7 |
if not emptycmd: |
| 8 |
return msg, cmd, args |
| 9 |
|
| 10 |
return f"Command fell through: {msg}" |