# 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:
+class Fish (c.FishPond):
cur_fish=5
max_fish=5
nofish_time=60
fish_time_inc=60
fish_inc=2
- DoS=0
Boring_Git='Nobody'
- quotatime=0
- last=""
- last_cfg=None
+
+fish = Fish()
# load the "blame" details for a file
def loadblame(filename):
thing=' '.join(l[2:])
bdb[thing]=commit
keys=bdb.keys()
- return bdb,keys
+ return bdb,keys,filename
-#set up blame dbs for trouts/flirts/slashes
-tbdb,tbdbk=loadblame("trouts")
-fbdb,fbdbk=loadblame("flirts")
-sbdb,sbdbk=loadblame("slashes")
-
# load a file full of flirts or trouts
def __load(filename):
try:
"Who do you wish me to trout?",
"Fish stocks exhausted.",
fish,
- 0.1)
+ 0.1,
+ loadblame("trouts"),
+ )
flirtcfg = (
__load("flirts"),
"Who do you wish me to flirt with?",
"My libido is over-used!",
fish,
- 0.1)
+ 0.1,
+ loadblame("flirts"),
+ )
slashcfg= (
__load("slashes"),
"Who do you want to slash?",
"I have writer's block!",
fish,
- 0.1)
+ 0.1,
+ loadblame("slashes")
+ )
# Hacky command to output the current fishpond state
def fishq(bot, cmd, nick, conn, public,f):
"nws": (c.nsfwq,urldb),
"units": c.unitq,
"currency":c.currencyq,
- "blame": (c.blameq,fish,tbdb,tbdbk,fbdb,fbdbk,sbdb,sbdbk),
+ "blame": (c.blameq,fish, [troutcfg,flirtcfg,slashcfg]),
"help": c.helpq,
"say": c.sayq,
"do": c.doq,