Allow tomasino to run admin commands (in theory)

This commit is contained in:
Robert Miles 2023-03-21 18:38:26 +00:00
parent 49f6ac1c1a
commit 91ccce0fb6
1 changed files with 2 additions and 2 deletions

4
bot.py
View File

@ -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: