chiark / gitweb /
FishPond: Actually make fish be an instance object (in other bots)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 10:28:18 +0000 (11:28 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 10:28:18 +0000 (11:28 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Servus-artichoke.py
assassins.py
config.py
methsoc-freenode.py
methsoc.py
socbi.py
test-chiark.py

index d3c9259fa6ee0721a39bcf9dff90f96aac8303a5..1fa4d2db56fe7be8fe0f3870da5f3170815395f3 100755 (executable)
@@ -40,7 +40,7 @@ import commands as c
 
 # This fishpond is shared between trouts and flirts.  It doesn't have to be;
 # you can define as many ponds as you like.
-class fish (c.FishPond):
+class Fish (c.FishPond):
        cur_fish=5
        max_fish=5
        nofish_time=60
@@ -48,6 +48,8 @@ class fish (c.FishPond):
        fish_inc=2
        Boring_Git='Nobody'
 
+fish = Fish()
+
 # load a file full of flirts or trouts
 def __load(filename):
     try:
index 77e5b3d79c8f029cff4ba0a8f2d3596dbf4a94f2..dc6573641d41fcfa69d374047c5c2f85c8a98d89 100755 (executable)
@@ -37,7 +37,7 @@ import commands as c
 
 # This fishpond is shared between trouts and flirts.  It doesn't have to be;
 # you can define as many ponds as you like.
-class fish (c.FishPond):
+class Fish (c.FishPond):
        cur_fish=5
        max_fish=5
        nofish_time=60
@@ -45,6 +45,8 @@ class fish (c.FishPond):
        fish_inc=2
        Boring_Git='Nobody'
 
+fish = Fish()
+
 # load a file full of flirts or trouts
 def __load(filename):
     try:
index efda73884aa24c3752af994d7bc61b8d596fcee5..092ca82f2895d2810e1b3985b95be5028d3f0fae 100644 (file)
--- a/config.py
+++ b/config.py
@@ -37,7 +37,7 @@ import commands as c
 
 # This fishpond is shared between trouts and flirts.  It doesn't have to be;
 # you can define as many ponds as you like.
-class fish (c.FishPond):
+class Fish (c.FishPond):
        cur_fish=5
        max_fish=5
        nofish_time=60
@@ -45,6 +45,8 @@ class fish (c.FishPond):
        fish_inc=2
        Boring_Git='Nobody'
 
+fish = Fish()
+
 # load a file full of flirts or trouts
 def __load(filename):
     try:
index 092f558ad8fbe897bab8c39fe01ee4fe224329fb..4c994cb64b98c28ffde6d06f7d22b9e3f78e0e79 100644 (file)
@@ -37,7 +37,7 @@ import commands as c
 
 # This fishpond is shared between trouts and flirts.  It doesn't have to be;
 # you can define as many ponds as you like.
-class fish (c.FishPond):
+class Fish (c.FishPond):
        cur_fish=5
        max_fish=5
        nofish_time=60
@@ -45,6 +45,8 @@ class fish (c.FishPond):
        fish_inc=2
        Boring_Git='Nobody'
 
+fish = Fish()
+
 # load a file full of flirts or trouts
 def __load(filename):
     try:
index eea952fba4cc1c1b5d521f3af7f993e842708cce..31988642dfd057dfc98d7ae9b96b6f3a23842c1a 100644 (file)
@@ -37,7 +37,7 @@ import commands as c
 
 # This fishpond is shared between trouts and flirts.  It doesn't have to be;
 # you can define as many ponds as you like.
-class fish (c.FishPond):
+class Fish (c.FishPond):
        cur_fish=5
        max_fish=5
        nofish_time=60
@@ -45,6 +45,8 @@ class fish (c.FishPond):
        fish_inc=2
        Boring_Git='Nobody'
 
+fish = Fish()
+
 # load a file full of flirts or trouts
 def __load(filename):
     try:
index d673e7b282e573b626776b7cb83e98b0cb3a3bd9..722a585321dcbc1fddc5fdeaee244d772b2340fe 100644 (file)
--- a/socbi.py
+++ b/socbi.py
@@ -37,7 +37,7 @@ import commands as c
 
 # This fishpond is shared between trouts and flirts.  It doesn't have to be;
 # you can define as many ponds as you like.
-class fish (c.FishPond):
+class Fish (c.FishPond):
        cur_fish=5
        max_fish=5
        nofish_time=60
@@ -45,6 +45,8 @@ class fish (c.FishPond):
        fish_inc=2
        Boring_Git='Nobody'
 
+fish = Fish()
+
 # load a file full of flirts or trouts
 def __load(filename):
     try:
index b432deb1bbab307ea64cfaa424e65721fa253265..4cc48149809206e54e2efe774604628a50bdf547 100644 (file)
@@ -40,7 +40,7 @@ import commands as c
 
 # This fishpond is shared between trouts and flirts.  It doesn't have to be;
 # you can define as many ponds as you like.
-class fish (c.FishPond):
+class Fish (c.FishPond):
        cur_fish=5
        max_fish=5
        nofish_time=60
@@ -48,6 +48,8 @@ class fish (c.FishPond):
        fish_inc=2
        Boring_Git='Nobody'
 
+fish = Fish()
+
 # load a file full of flirts or trouts
 def __load(filename):
     try: