dont respond twice to dms

This commit is contained in:
xfnw 2020-08-02 02:33:43 +00:00
parent 00aabe2634
commit 2f36def1ee

8
bot.py
View file

@ -88,10 +88,10 @@ class Oven(pydle.Client):
return account in self.admins return account in self.admins
async def on_private_message(self, trash, source, msg): #async def on_private_message(self, trash, source, msg):
if source != self.nickname: # if source != self.nickname:
for i in self.raw: # for i in self.raw:
await self.raw[i](self, source, source, msg) # await self.raw[i](self, source, source, msg)
if __name__ == "__main__": if __name__ == "__main__":