misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli
2019-10-30 14:25:21 +01:00
parent cb09648ba1
commit 9d19fb8e7a
4 changed files with 22 additions and 2 deletions

View File

@ -43,6 +43,12 @@ class Voice:
def on_free_channel(self, channel):
return self._('Hey, channel {channel} is free! Your AP will say thanks.').format(channel=channel)
def on_reading_logs(self, lines_so_far=0):
if lines_so_far == 0:
return self._('Reading last session logs ...')
else:
return self._('Read {lines_so_far} log lines so far ...').format(lines_so_far=lines_so_far)
def on_bored(self):
return random.choice([
self._('I\'m bored ...'),