This repository has been archived on 2021-03-28. You can view files and clone it, but cannot push or open issues/pull-requests.
2020-08-26 14:12:58 +02:00
|
|
|
from frank import Module, command, default, daemon, regex_command
|
2020-08-26 09:45:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
class ModuleTester(Module):
|
2020-08-26 12:22:18 +02:00
|
|
|
PREFIX = 'tester'
|
|
|
|
|
2020-08-26 14:12:58 +02:00
|
|
|
@regex_command('pat')
|
|
|
|
async def regex1(pregix, cmd, author, channel, mid):
|
|
|
|
pass
|
|
|
|
|
|
|
|
@regex_command('pat2')
|
|
|
|
async def regex2(pregix, cmd, author, channel, mid):
|
|
|
|
pass
|
|
|
|
|
2020-08-26 09:45:03 +02:00
|
|
|
@command('test')
|
|
|
|
async def test(cmd, author, channel, mid):
|
|
|
|
pass
|
|
|
|
|
|
|
|
@default()
|
|
|
|
async def test2(prefix, cmd, author, channel, mid):
|
|
|
|
pass
|
2020-08-26 12:22:18 +02:00
|
|
|
|
|
|
|
@daemon()
|
|
|
|
async def test_daemon(self):
|
|
|
|
pass
|