Added user get command #21 #142

Merged
edraft merged 2 commits from #21 into 0.3 2022-12-11 19:27:35 +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(

value wird nach test wohl nicht richtig gerundet
bitte nochmal checken

value wird nach test wohl nicht richtig gerundet bitte nochmal checken

fixed it

fixed it
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))