Fix unmutes

This commit is contained in:
Zeva Rose 2021-07-22 12:14:56 -06:00
parent 65868ee63a
commit d73727612a

View file

@ -36,7 +36,7 @@ jarvis = commands.Bot(
) )
slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True) slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True)
jarvis_self = Process() jarvis_self = Process()
__version__ = "1.2.3" __version__ = "1.2.4"
db = DBManager(get_config().mongo).mongo db = DBManager(get_config().mongo).mongo
@ -247,7 +247,7 @@ async def on_guild_join(guild):
@loop(minutes=1) @loop(minutes=1)
async def unmute(): async def unmute():
mutes = Mute.get_active(duration={"$gt": 0}) mutes = Mute.get_active(duration={"$gt": 0})
mute_roles = Setting.get(setting="mute") mute_roles = Setting.get_many(setting="mute")
updates = [] updates = []
for mute in mutes: for mute in mutes:
if ( if (