Fix remove function of autowater
This commit is contained in:
parent
cda9b83a7d
commit
4ea83e892d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue