2018-09-12 01:08:45 +00:00
|
|
|
from actions.botlist import botlist
|
2018-09-16 00:11:02 +00:00
|
|
|
from actions.web import summon, whois
|
2018-09-13 19:37:32 +00:00
|
|
|
from actions.access import banish, pardon
|
2018-09-26 17:58:30 +00:00
|
|
|
from actions.control import puppet, inject, nomad
|
2018-09-13 19:37:32 +00:00
|
|
|
from actions.stupid import hmm, hmmscore, hmmscoreboard
|
2018-09-12 01:08:45 +00:00
|
|
|
|
|
|
|
actions = [
|
|
|
|
{
|
|
|
|
"type": "response",
|
|
|
|
"pattern": "!botlist",
|
|
|
|
"callback": botlist
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
|
|
|
"pattern": "!rollcall",
|
|
|
|
"callback": botlist
|
2018-09-13 19:37:32 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
2018-09-26 17:58:30 +00:00
|
|
|
"pattern": "/!summon \S+ .+/",
|
2018-09-13 19:37:32 +00:00
|
|
|
"callback": summon
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
2018-09-26 17:58:30 +00:00
|
|
|
"pattern": "/!banish \S+ .+/",
|
2018-09-13 19:37:32 +00:00
|
|
|
"callback": banish
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
2018-09-26 17:58:30 +00:00
|
|
|
"pattern": "/!pardon \S+/",
|
2018-09-13 19:37:32 +00:00
|
|
|
"callback": pardon
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
2018-09-26 17:58:30 +00:00
|
|
|
"pattern": "/!puppet \S+ .+/",
|
2018-09-13 19:37:32 +00:00
|
|
|
"callback": puppet
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
2018-09-26 17:58:30 +00:00
|
|
|
"pattern": "/!inject \S+/",
|
|
|
|
"callback": inject
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
|
|
|
"pattern": "/!nomad \S+ \S+/",
|
2018-09-13 19:37:32 +00:00
|
|
|
"callback": nomad
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
2018-09-26 17:58:30 +00:00
|
|
|
"pattern": "/hm+/",
|
2018-09-13 19:37:32 +00:00
|
|
|
"callback": hmm
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
2018-09-26 17:58:30 +00:00
|
|
|
"pattern": "/!hmmscore(\s|$)/",
|
2018-09-13 19:37:32 +00:00
|
|
|
"callback": hmmscore
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
|
|
|
"pattern": "!hmmscoreboard",
|
|
|
|
"callback": hmmscoreboard
|
2018-09-14 01:45:00 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "response",
|
2018-09-26 17:58:30 +00:00
|
|
|
"pattern": "/!whois \S+/",
|
2018-09-14 01:45:00 +00:00
|
|
|
"callback": whois
|
2018-09-12 01:08:45 +00:00
|
|
|
}
|
|
|
|
]
|