mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-06-02 18:45:17 +12:00
minor fixes
This commit is contained in:
parent
6d0fa3e163
commit
c478215cbc
|
@ -213,7 +213,7 @@ class ActivityLogger(commands.Cog):
|
||||||
activity = None
|
activity = None
|
||||||
|
|
||||||
if roles:
|
if roles:
|
||||||
roles = " ".join([x.mention for x in roles])
|
roles = " ".join([x.mention for x in sorted(roles, reverse=True)])
|
||||||
else:
|
else:
|
||||||
roles = "None"
|
roles = "None"
|
||||||
|
|
||||||
|
@ -1593,8 +1593,9 @@ class ActivityLogger(commands.Cog):
|
||||||
msg = "Voice channel leave: {0} (id {0.id})"
|
msg = "Voice channel leave: {0} (id {0.id})"
|
||||||
|
|
||||||
async with self.config.member(member).stats() as stats:
|
async with self.config.member(member).stats() as stats:
|
||||||
stats["vc_time_sec"] += time.time() - stats["last_vc_time"]
|
if stats["last_vc_time"]: # incase someone joins when bot is offline
|
||||||
stats["last_vc_time"] = None
|
stats["vc_time_sec"] += time.time() - stats["last_vc_time"]
|
||||||
|
stats["last_vc_time"] = None
|
||||||
|
|
||||||
if after.channel:
|
if after.channel:
|
||||||
msg += " moving to {1.channel}"
|
msg += " moving to {1.channel}"
|
||||||
|
|
Loading…
Reference in a new issue