From 4ea83e892da02febe486484d6d153422cadc1c1b Mon Sep 17 00:00:00 2001 From: minerobber Date: Thu, 31 Jan 2019 03:27:57 +0000 Subject: [PATCH] Fix remove function of autowater --- plugins/autowater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/autowater.py b/plugins/autowater.py index 28a7cab..d0863e2 100644 --- a/plugins/autowater.py +++ b/plugins/autowater.py @@ -42,7 +42,7 @@ def autowater_remove(bot,channel,userhost,*args): bot.say(channel,"{}: I'm not watching your plant. Did you mean to add yourself? (!autowater add)".format(nick)) else: bot.say(channel,"{}: Welcome back! I'll stop watching your plant since you're here.".format(nick)) - del watered[user] + del watered.value[user] watered.save(watered.filename) BOTANY_PLANT_WATER_TRIGGER = (1 * (24 * 3600)) # 5 days for a botany plant to die, so water every day