Add logger to self

This commit is contained in:
Nexus 2024-09-08 01:37:14 +01:00
parent 1056ef79e9
commit adc72ab13c

View file

@ -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."""