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 37621b9..12c7b14 100644 Binary files a/modules/__pycache__/bake.cpython-36.pyc and b/modules/__pycache__/bake.cpython-36.pyc differ 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']