Fix errors
This commit is contained in:
parent
55081b3828
commit
7200e7b86c
|
@ -105,4 +105,4 @@ venv.bak/
|
|||
|
||||
# config files
|
||||
tvdb_keys.py
|
||||
blacklist.json
|
||||
blocklist.json
|
||||
|
|
4
bot.py
4
bot.py
|
@ -6,6 +6,7 @@ import markovuniverse as mu
|
|||
import tvdb_keys,tvdb_api
|
||||
import os.path
|
||||
import subprocess
|
||||
import json
|
||||
|
||||
DEBUG = os.path.exists(os.path.expanduser("~/minerbot2.debug"))
|
||||
|
||||
|
@ -27,7 +28,7 @@ def pad(l,n):
|
|||
SU_EP_INFO_FORMAT = "{nick}: Season {ep[airedSeason]}, Episode {ep[airedEpisodeNumber]}: {ep[episodeName]} - \"{ep[overview]}\"; aired {ep[firstAired]}"
|
||||
|
||||
class TVBot(irc.bot.SingleServerIRCBot):
|
||||
def __init__(self, channels, nickname, server, port=6667, prefix="!", operator="khuxkm"):
|
||||
def __init__(self, channels, nickname, server, port=6667, prefix="!", operator="khuxkm!khuxkm@oper.tilde.chat"):
|
||||
irc.bot.SingleServerIRCBot.__init__(self, [(server, port)], nickname, nickname)
|
||||
self.chanlist = channels
|
||||
self.bot_nick = nickname
|
||||
|
@ -99,6 +100,7 @@ class TVBot(irc.bot.SingleServerIRCBot):
|
|||
def adminCommand(self,c,e,p):
|
||||
p.pop(0) # command name
|
||||
if str(e.source)!=self.botop:
|
||||
c.privmsg(e.source.nick)
|
||||
return
|
||||
sub = p.pop(0)
|
||||
if sub=="prefix":
|
||||
|
|
Loading…
Reference in New Issue