Skip to content

Commit

Permalink
pass event
Browse files Browse the repository at this point in the history
  • Loading branch information
defund committed Nov 30, 2017
1 parent 304c7d5 commit 694118b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pearl/plugins/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def handle(self, args, event):
except:
return
else:
asyncio.run_coroutine_threadsafe(self.send(self.conversation(event=self.event), self.usage), self.pearl.loop)
asyncio.run_coroutine_threadsafe(self.send(self.conversation(event=event), self.usage), self.pearl.loop)
return

def dbcall(self, event, call, repeat=1):
Expand Down Expand Up @@ -82,7 +82,7 @@ def list_method(self, args, event):


def self_method(self, args, event):
uid = 'u' + self.event.sender_id.gaia_id
uid = 'u' + event.sender_id.gaia_id
username = self.username(event, uid)
if username:
response = 'You are set to <b>{}</b>.'.format(username)
Expand Down

0 comments on commit 694118b

Please sign in to comment.