Storycraft: make a couple more commands fit the 'game # whatever' format

This commit is contained in:
Brian S. Stephan 2011-02-22 19:45:57 -06:00
parent 865a39204f
commit bfe88f28cd
1 changed files with 3 additions and 3 deletions

View File

@ -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)