Storycraft: allow listing of completed games
This commit is contained in:
parent
940ed57f2e
commit
ce7d9e8010
@ -75,7 +75,7 @@ class Storycraft(Module):
|
|||||||
statuspattern = rootcommand + '\s+status(\s+(\d+)$|$)'
|
statuspattern = rootcommand + '\s+status(\s+(\d+)$|$)'
|
||||||
newgamepattern = rootcommand + '\s+new\s+game(\s+with\s+config\s+(.*)$|$)'
|
newgamepattern = rootcommand + '\s+new\s+game(\s+with\s+config\s+(.*)$|$)'
|
||||||
joingamepattern = rootcommand + '\s+join\s+game\s+(\d+)$'
|
joingamepattern = rootcommand + '\s+join\s+game\s+(\d+)$'
|
||||||
listgamespattern = rootcommand + '\s+list\s+games\s+(open|in\s+progress)$'
|
listgamespattern = rootcommand + '\s+list\s+games\s+(open|in\s+progress|completed)$'
|
||||||
startgamepattern = rootcommand + '\s+start\s+game\s+(\d+)$'
|
startgamepattern = rootcommand + '\s+start\s+game\s+(\d+)$'
|
||||||
showlinepattern = rootcommand + '\s+game\s+(\d+)\s+show\s+line$'
|
showlinepattern = rootcommand + '\s+game\s+(\d+)\s+show\s+line$'
|
||||||
addlinepattern = rootcommand + '\s+game\s+(\d+)\s+add\s+line\s+(.*)$'
|
addlinepattern = rootcommand + '\s+game\s+(\d+)\s+add\s+line\s+(.*)$'
|
||||||
@ -297,6 +297,8 @@ class Storycraft(Module):
|
|||||||
games = self._get_open_games()
|
games = self._get_open_games()
|
||||||
elif category == 'in progress':
|
elif category == 'in progress':
|
||||||
games = self._get_in_progress_games()
|
games = self._get_in_progress_games()
|
||||||
|
elif category == 'completed':
|
||||||
|
games = self._get_completed_games()
|
||||||
|
|
||||||
if len(games) > 5:
|
if len(games) > 5:
|
||||||
# just list the game ids
|
# just list the game ids
|
||||||
|
Loading…
Reference in New Issue
Block a user