Storycraft: more debugging output
This commit is contained in:
parent
b5d732cfd6
commit
0386603d93
@ -269,6 +269,7 @@ class Storycraft(Module):
|
||||
# tell the control channel
|
||||
self.sendmsg(connection, master_channel, '{0:s} created a game of storycraft - do \'!storycraft game {1:d} join\' to take part!'.format(nick, game_id))
|
||||
|
||||
self.log.debug("{0:s} added a new game".format(nick))
|
||||
return 'Game #{0:d} has been created. When everyone has joined, do \'!storycraft game {0:d} start\''.format(game_id)
|
||||
else:
|
||||
return 'Error creating game.'
|
||||
@ -298,6 +299,7 @@ class Storycraft(Module):
|
||||
master_channel = settings.master_channel
|
||||
|
||||
self.sendmsg(connection, master_channel, '{0:s} joined storycraft #{1:d}!'.format(nick, game_id))
|
||||
self.log.debug("{0:s} joined game #{1:d}".format(nick, game_id))
|
||||
return '{0:s}, welcome to the game.'.format(nick)
|
||||
else:
|
||||
return 'Error joining game.'
|
||||
@ -370,6 +372,7 @@ class Storycraft(Module):
|
||||
|
||||
# tell the control channel
|
||||
self.sendmsg(connection, master_channel, '{0:s} started storycraft #{1:d}! - first player is {2:s}, do \'!storycraft game {1:d} show line\' when the game is assigned to you.'.format(nick, game_id, player.nick))
|
||||
self.log.debug("{0:s} started game #{1:d}".format(nick, game_id))
|
||||
|
||||
return 'Game #{0:d} started.'.format(game_id)
|
||||
else:
|
||||
@ -476,6 +479,7 @@ class Storycraft(Module):
|
||||
settings = self._get_storycraft_settings()
|
||||
master_channel = settings.master_channel
|
||||
|
||||
self.log.debug("{0:s} added a line to #{1:d}".format(nick, game_id))
|
||||
# log output
|
||||
if game.status == 'IN PROGRESS':
|
||||
self.sendmsg(connection, master_channel, '{0:s} added a line to storycraft #{1:d}! - next player is {2:s}'.format(nick, game_id, player.nick))
|
||||
|
Loading…
Reference in New Issue
Block a user