From 675dbadaa00e59c9d9068c2164bdcfb310e4767a Mon Sep 17 00:00:00 2001 From: desaster Date: Sat, 21 Nov 2009 13:25:14 +0000 Subject: [PATCH] New random command: wargames git-svn-id: https://kippo.googlecode.com/svn/trunk@42 951d7100-d841-11de-b865-b3884708a8e2 --- commands/dice.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/commands/dice.py b/commands/dice.py index d00f0b28..22b32962 100644 --- a/commands/dice.py +++ b/commands/dice.py @@ -30,3 +30,16 @@ class command_orly(HoneyPotCommand): return self.orly() clist.append(command_orly) + +class command_wargames(HoneyPotCommand): + def start(self): + self.write('Shall we play a game? ') + + def lineReceived(self, data): + self.writeln('A strange game. ' + \ + 'The only winning move is not to play. ' + \ + 'How about a nice game of chess?') + self.exit() +clist.append(command_wargames) + +# vim: set sw=4 et: