From 63c6c8da1a199f44b76dd304b913b82cd4c01749 Mon Sep 17 00:00:00 2001 From: lickthecheese Date: Tue, 7 Apr 2020 11:22:15 -0400 Subject: [PATCH] fix bot not responding to privmsg --- bot.py | 2 ++ modules/__pycache__/bake.cpython-36.pyc | Bin 3659 -> 3659 bytes modules/bake.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 5c8037a..63b2ecd 100755 --- a/bot.py +++ b/bot.py @@ -56,6 +56,8 @@ class Oven(pydle.Client): return admin + async def on_private_message(self, trash, source, msg): + await self.on_message(source, source, msg) if __name__ == "__main__": diff --git a/modules/__pycache__/bake.cpython-36.pyc b/modules/__pycache__/bake.cpython-36.pyc index 37621b9d93d197878c208eab02a6a824453489bd..12c7b14d0a96b94337c43acc486b7d8cc2709320 100644 GIT binary patch delta 76 zcmX>tb6SSYn3tDp&BKjswH!<@tb6SSYn3tE!_|8VQS`MZn$<3`Csf>&UlV5Y1FdA)E;9_KAdMUSAnJ1i4)QEwB d;TCgIVtJ7akX6JFB8(^Z^ENOVO%~v@1^@^565Id) diff --git a/modules/bake.py b/modules/bake.py index e5b4e91..ac2156f 100644 --- a/modules/bake.py +++ b/modules/bake.py @@ -60,7 +60,7 @@ async def invsee(self, c, n, m): await self.message(c, 'you look through your kitchen and see {}, with a combined value of ${}'.format(' '.join(it), sum([self.bakedGoods[i] for i in it if i in self.bakedGoods])/10)) async def generate(self, c, n, m): - if int(random.uniform(0,20)) == 1: + if int(random.uniform(0,30)) == 1: inv = self.db['inv'] inv.insert(dict(name=n, item=random.choice(list(self.bakedGoods.keys())))) qed = self.db['qed']