From 91ccce0fb67c11478f7325d81f5f0c7f711fc07a Mon Sep 17 00:00:00 2001 From: khuxkm fbexl Date: Tue, 21 Mar 2023 18:38:26 +0000 Subject: [PATCH] Allow tomasino to run admin commands (in theory) --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index e67499a..6f04e86 100644 --- a/bot.py +++ b/bot.py @@ -1,7 +1,7 @@ import teambot,tasks,rss,time,sys,subprocess,re,plugin,impmod,traceback,os,atexit,toot feed_url = "https://cosmic.voyage/rss.xml" -bot_op = "khuxkm@fuckup.club" +bot_op = ["khuxkm@fuckup.club","~tomasino@oper.tilde.chat","tomasino@oper.tilde.chat"] PLUGIN_MODULES=dict() def unhighlight_nick (nick): @@ -72,7 +72,7 @@ class CosmicBot(teambot.Handler): pass return state def on_pubmsg(self,channel,nick,text): - self.is_admin = self.event.source.userhost == bot_op + self.is_admin = self.event.source.userhost in bot_op try: for listener in plugin.listeners: try: