Skip to content

Commit

Permalink
fix(getActive): 'utils.' prefix was added so that function is called …
Browse files Browse the repository at this point in the history
…properly
  • Loading branch information
vindard committed Aug 22, 2018
1 parent 2e7e943 commit fe833c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def process(message, username, chatid):

elif "/rain" in parsedMsg[0].lower():
try:
users = getActive(chatid, active_users, current_time)
users = utils.getActive(chatid, active_users, current_time)
if username in users:
users.remove(username)
number = len(users)
Expand Down Expand Up @@ -155,7 +155,7 @@ def process(message, username, chatid):
sendMsg(f"Active shibes ({len(reg_users)}): {reg_users_string}", chatid)

elif "/active" in parsedMsg[0].lower():
sendMsg("Current active : %d shibes" % (len(getActive(chatid, active_users, current_time))), chatid)
sendMsg("Current active : %d shibes" % (len(utils.getActive(chatid, active_users, current_time))), chatid)
else:
try:
active_users[chatid][username] = time.time()
Expand Down

0 comments on commit fe833c8

Please sign in to comment.