Storycraft: make a couple more commands fit the 'game # whatever' format
This commit is contained in:
parent
865a39204f
commit
bfe88f28cd
@ -75,13 +75,13 @@ class Storycraft(Module):
|
||||
rootcommand = '^!storycraft'
|
||||
statuspattern = rootcommand + '\s+status$'
|
||||
newgamepattern = rootcommand + '\s+new\s+game(\s+with\s+config\s+(.*)$|$)'
|
||||
joingamepattern = rootcommand + '\s+join\s+game\s+(\d+)$'
|
||||
joingamepattern = rootcommand + '\s+game\s+(\d+)\s+join$'
|
||||
listgamespattern = rootcommand + '\s+list\s+games\s+(open|in progress|completed|my games|waiting for me)$'
|
||||
startgamepattern = rootcommand + '\s+start\s+game\s+(\d+)$'
|
||||
startgamepattern = rootcommand + '\s+game\s+(\d+)\s+start$'
|
||||
showlinepattern = rootcommand + '\s+game\s+(\d+)\s+show\s+line$'
|
||||
addlinepattern = rootcommand + '\s+game\s+(\d+)\s+add\s+line\s+(.*)$'
|
||||
gamestatuspattern = rootcommand + '\s+game\s+(\d+)\s+status$'
|
||||
exportpattern = rootcommand + '\s+export\s+(\d+)$'
|
||||
exportpattern = rootcommand + '\s+game\s+(\d+)\s+export$'
|
||||
|
||||
self.statusre = re.compile(statuspattern)
|
||||
self.newgamere = re.compile(newgamepattern)
|
||||
|
Loading…
Reference in New Issue
Block a user