0.3 #146

Merged
edraft merged 359 commits from 0.3 into master 2023-01-12 07:04:40 +01:00
Showing only changes of commit 31464df3f6 - Show all commits

View File

@ -148,10 +148,11 @@ class UserGroup(DiscordCommandABC):
value = str(user.xp)
case 'ontime':
value = str(
value = str(round(
self._user_joined_voice_channel.get_user_joined_voice_channels_by_user_id(user.user_id)
.sum(lambda join: round((join.leaved_on - join.joined_on).total_seconds() / 3600, 2))
)
.sum(lambda join: (join.leaved_on - join.joined_on).total_seconds() / 3600),
2
))
case other:
await self._message_service.send_interaction_msg(ctx.interaction, self._t.transform('modules.base.user.get.atr_not_found').format(atr))