Fixed bug in database module
This commit is contained in:
parent
3eaae4679f
commit
286c653252
@ -274,7 +274,7 @@ class Database(ModuleABC, OnReadyABC):
|
|||||||
join.leaved_on = datetime.now()
|
join.leaved_on = datetime.now()
|
||||||
server_st: ServerSettings = self._config.get_configuration(f'DSERVER_{guild.id}')
|
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)
|
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)
|
self._user_joins_vc.update_user_joined_voice_channel(join)
|
||||||
|
Reference in New Issue
Block a user