Merge pull request #21 from OriginProtocol/wanderingstan-patch-1
Fix disabling of `DEBUG` and `ADMIN_EXEMPT`
This commit is contained in:
commit
9bc388a036
4
bot.py
4
bot.py
@ -27,12 +27,12 @@ class TelegramMonitorBot:
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.debug = (
|
self.debug = (
|
||||||
(os.environ.get('DEBUG') is not None) and
|
(os.environ.get('DEBUG') is not None) and
|
||||||
(os.environ.get('DEBUG').upper() != "false"))
|
(os.environ.get('DEBUG').lower() != "false"))
|
||||||
|
|
||||||
# Are admins exempt from having messages checked?
|
# Are admins exempt from having messages checked?
|
||||||
self.admin_exempt = (
|
self.admin_exempt = (
|
||||||
(os.environ.get('ADMIN_EXEMPT') is not None) and
|
(os.environ.get('ADMIN_EXEMPT') is not None) and
|
||||||
(os.environ.get('ADMIN_EXEMPT').upper() != "false"))
|
(os.environ.get('ADMIN_EXEMPT').lower() != "false"))
|
||||||
|
|
||||||
if (self.debug):
|
if (self.debug):
|
||||||
print("🔵 debug:", self.debug)
|
print("🔵 debug:", self.debug)
|
||||||
|
Loading…
Reference in New Issue
Block a user