chiark / gitweb /
FishPond: introduce new class and use in Servus-chiark
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 10:08:23 +0000 (11:08 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 10:15:59 +0000 (11:15 +0100)
commit6606843b86656d0c7f01b36009feedd4421eb2d2
tree784f2699010a6be5b8140de30223a5007cf348b5
parent5ccd4c4d57f2640277e831fbfd62b5e5d6a40c23
FishPond: introduce new class and use in Servus-chiark

The configuration class `fish' appears in every bot, but it also
contains initial values of state variables used by the implementation.

Move those into their own class, and make it a base class of
Servus-chiark's pond.  Since we are duck typing, it is OK to not yet
update the other bots.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Servus-chiark.py
commands.py