From 4f8f3c5d1074c14cd5e692f0544301adebde04d5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 30 May 2019 11:28:18 +0100 Subject: [PATCH] FishPond: Actually make fish be an instance object (in other bots) Signed-off-by: Ian Jackson --- Servus-artichoke.py | 4 +++- assassins.py | 4 +++- config.py | 4 +++- methsoc-freenode.py | 4 +++- methsoc.py | 4 +++- socbi.py | 4 +++- test-chiark.py | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/Servus-artichoke.py b/Servus-artichoke.py index d3c9259..1fa4d2d 100755 --- a/Servus-artichoke.py +++ b/Servus-artichoke.py @@ -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: diff --git a/assassins.py b/assassins.py index 77e5b3d..dc65736 100755 --- a/assassins.py +++ b/assassins.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: diff --git a/config.py b/config.py index efda738..092ca82 100644 --- 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: diff --git a/methsoc-freenode.py b/methsoc-freenode.py index 092f558..4c994cb 100644 --- a/methsoc-freenode.py +++ b/methsoc-freenode.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: diff --git a/methsoc.py b/methsoc.py index eea952f..3198864 100644 --- a/methsoc.py +++ b/methsoc.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: diff --git a/socbi.py b/socbi.py index d673e7b..722a585 100644 --- 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: diff --git a/test-chiark.py b/test-chiark.py index b432deb..4cc4814 100644 --- a/test-chiark.py +++ b/test-chiark.py @@ -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: -- 2.30.2