Minor corrections

master
sfan5 2014-06-22 12:10:56 +02:00
parent 70e868d934
commit 5344d7fb9b
3 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@ chop["badword_limit"] = 4
chop["badword_enabled"] = True
chop["badword_kickmsg"] = "Chop!" # "Stop using bad words!"
chop["victims"] = {} # for future use
badword_list = ""
badword_list = "" # TODO: Get badword list from somewhere
def num_badwords(sentence):
badwords = 0

View File

@ -50,7 +50,7 @@ def pushupdate(sender, time, nick):
updates.append((sender, time, nick))
update_l.release()
def seen(phenny, input):
def seen(phenny, input):
""".seen <nick> - Reports when <nick> was last seen."""
for x in phenny.bot.commands["high"].values():
if x[0].__name__ == "aa_hook":
@ -82,7 +82,6 @@ def seen(phenny, input):
phenny.reply("Sorry, I haven't seen %s around." % nick)
seen.rule = (['seen'], r'(\S+)')
seen.thread = True
def note(phenny, input):
if input.sender.startswith('#'):
@ -90,6 +89,7 @@ def note(phenny, input):
note.rule = r'.*'
note.priority = 'low'
note.thread = False
def note_join(phenny, input):
if input.sender.startswith('#'):
@ -98,6 +98,7 @@ def note_join(phenny, input):
note_join.rule = r'.*'
note_join.event = 'JOIN'
note_join.priority = 'low'
note_join.thread = False
def note_part(phenny, input):
if input.sender.startswith('#'):
@ -106,6 +107,7 @@ def note_part(phenny, input):
note_part.rule = r'.*'
note_part.event = 'PART'
note_part.priority = 'low'
note_part.thread = False
db = sqlite3.connect("seen.sqlite")
c = db.cursor()
@ -115,5 +117,5 @@ db.close()
start_new_thread(updatethread, ())
if __name__ == '__main__':
if __name__ == '__main__':
print __doc__.strip()

View File

@ -84,7 +84,6 @@ def note(phenny, input):
note.rule = r'.*'
note.priority = 'low'
note.thread = True
def note_join(phenny, input):
if input.sender.startswith('#'):
@ -93,7 +92,6 @@ def note_join(phenny, input):
note_join.rule = r'.*'
note_join.event = 'JOIN'
note_join.priority = 'low'
note_join.thread = True
db = sqlite3.connect("tell.sqlite")
c = db.cursor()