Fix debug check

This commit is contained in:
deadcade 2022-06-12 13:35:59 +02:00
parent 67b88f84a9
commit 82160775b1

View file

@ -283,7 +283,7 @@ async def message_callback(room: nio.MatrixRoom, event: nio.RoomMessageText) ->
ratelimits[event.sender] = int(datetime.datetime.utcnow().timestamp()) + settings["ratelimit"] ratelimits[event.sender] = int(datetime.datetime.utcnow().timestamp()) + settings["ratelimit"]
if command in settings["command_list"] or (admin and command in settings["admin_command_list"]): if command in settings["command_list"] or (admin and command in settings["admin_command_list"]):
command_function = globals()[command] command_function = globals()[command]
if debug: if settings["debug"]:
await command_function(args, room, event) await command_function(args, room, event)
else: else:
try: try: