Fix debug check
This commit is contained in:
parent
67b88f84a9
commit
82160775b1
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -283,7 +283,7 @@ async def message_callback(room: nio.MatrixRoom, event: nio.RoomMessageText) ->
|
|||
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"]):
|
||||
command_function = globals()[command]
|
||||
if debug:
|
||||
if settings["debug"]:
|
||||
await command_function(args, room, event)
|
||||
else:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue