From adc72ab13cd7b04ad8020cf43198f77595aa8c66 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sun, 8 Sep 2024 01:37:14 +0100 Subject: [PATCH] Add logger to self --- app/modules/evaluation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/modules/evaluation.py b/app/modules/evaluation.py index 5b10c52..64b8bde 100644 --- a/app/modules/evaluation.py +++ b/app/modules/evaluation.py @@ -2,6 +2,7 @@ Module that provides code-evaluation commands. This entire module is locked to NioBot.owner. """ +import logging import shlex import tempfile import textwrap @@ -22,6 +23,7 @@ class EvalModule(niobot.Module): if not bot.owner_id: raise RuntimeError("No owner ID set in niobot. Refusing to load for security reasons.") super().__init__(bot) + self.log = logging.getLogger(__name__) async def owner_check(self, ctx: niobot.Context) -> bool: """Checks if the current user is the owner, and if not, gives them a very informative message."""