Allow tomasino to run admin commands (in theory)
This commit is contained in:
parent
49f6ac1c1a
commit
91ccce0fb6
4
bot.py
4
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user