58 lines
1.2 KiB
Python
58 lines
1.2 KiB
Python
from actions.botlist import botlist
|
|
from actions.summon import summon
|
|
from actions.access import banish, pardon
|
|
from actions.control import puppet, nomad
|
|
from actions.stupid import hmm, hmmscore, hmmscoreboard
|
|
|
|
actions = [
|
|
{
|
|
"type": "response",
|
|
"pattern": "!botlist",
|
|
"callback": botlist
|
|
},
|
|
{
|
|
"type": "response",
|
|
"pattern": "!rollcall",
|
|
"callback": botlist
|
|
},
|
|
{
|
|
"type": "response",
|
|
"pattern": ";;!summon \S+ .+",
|
|
"callback": summon
|
|
},
|
|
{
|
|
"type": "response",
|
|
"pattern": ";;!banish \S+ .+",
|
|
"callback": banish
|
|
},
|
|
{
|
|
"type": "response",
|
|
"pattern": ";;!pardon \S+",
|
|
"callback": pardon
|
|
},
|
|
{
|
|
"type": "response",
|
|
"pattern": ";;!puppet [^|]+\|.+",
|
|
"callback": puppet
|
|
},
|
|
{
|
|
"type": "response",
|
|
"pattern": ";;!nomad \S+ \S+",
|
|
"callback": nomad
|
|
},
|
|
{
|
|
"type": "response",
|
|
"pattern": ";;hm+",
|
|
"callback": hmm
|
|
},
|
|
{
|
|
"type": "response",
|
|
"pattern": ";;!hmmscore",
|
|
"callback": hmmscore
|
|
},
|
|
{
|
|
"type": "response",
|
|
"pattern": "!hmmscoreboard",
|
|
"callback": hmmscoreboard
|
|
}
|
|
] |