Fixed bug in database module

This commit is contained in:
Sven Heidemann 2021-12-21 17:24:16 +01:00
parent 3eaae4679f
commit 286c653252

View File

@ -274,7 +274,7 @@ class Database(ModuleABC, OnReadyABC):
join.leaved_on = datetime.now()
server_st: ServerSettings = self._config.get_configuration(f'DSERVER_{guild.id}')
if ((join.leaved_on - join.joined_on).total_seconds/60/60) > server_st.max_voice_state_hours:
if ((join.leaved_on - join.joined_on).total_seconds()/60/60) > server_st.max_voice_state_hours:
join.leaved_on = join.joined_on + datetime.timedelta(hours=server_st.max_voice_state_hours)
self._user_joins_vc.update_user_joined_voice_channel(join)