Download:
child 37:12b23bcac84b
parent 35:71efda851281
36:d4200e4286b9
Anton Shestakov <av6@dwimlabs.net>, Wed, 04 Apr 2018 00:32:01 +0800
rollbot: random actions on a user-provided snack

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
rollbot.py file | annotate | diff | comparison | revisions
--- a/rollbot.py Wed Apr 04 00:25:43 2018 +0800
+++ b/rollbot.py Wed Apr 04 00:32:01 2018 +0800
@@ -143,7 +143,7 @@
if len(words) == 1:
return '/me %s a %s' % (random.choice(self.action), random.choice(self.food))
elif len(words) >= 2:
- return '/me eats a %s' % ' '.join(words[1:])
+ return '/me %s a %s' % (random.choice(self.action), ' '.join(words[1:]))
else:
return '%s usage: %s' % (self.name, self.usage())