Minor corrections
This commit is contained in:
parent
70e868d934
commit
5344d7fb9b
2
chop.py
2
chop.py
@ -10,7 +10,7 @@ chop["badword_limit"] = 4
|
|||||||
chop["badword_enabled"] = True
|
chop["badword_enabled"] = True
|
||||||
chop["badword_kickmsg"] = "Chop!" # "Stop using bad words!"
|
chop["badword_kickmsg"] = "Chop!" # "Stop using bad words!"
|
||||||
chop["victims"] = {} # for future use
|
chop["victims"] = {} # for future use
|
||||||
badword_list = ""
|
badword_list = "" # TODO: Get badword list from somewhere
|
||||||
|
|
||||||
def num_badwords(sentence):
|
def num_badwords(sentence):
|
||||||
badwords = 0
|
badwords = 0
|
||||||
|
4
seen.py
4
seen.py
@ -82,7 +82,6 @@ def seen(phenny, input):
|
|||||||
phenny.reply("Sorry, I haven't seen %s around." % nick)
|
phenny.reply("Sorry, I haven't seen %s around." % nick)
|
||||||
|
|
||||||
seen.rule = (['seen'], r'(\S+)')
|
seen.rule = (['seen'], r'(\S+)')
|
||||||
seen.thread = True
|
|
||||||
|
|
||||||
def note(phenny, input):
|
def note(phenny, input):
|
||||||
if input.sender.startswith('#'):
|
if input.sender.startswith('#'):
|
||||||
@ -90,6 +89,7 @@ def note(phenny, input):
|
|||||||
|
|
||||||
note.rule = r'.*'
|
note.rule = r'.*'
|
||||||
note.priority = 'low'
|
note.priority = 'low'
|
||||||
|
note.thread = False
|
||||||
|
|
||||||
def note_join(phenny, input):
|
def note_join(phenny, input):
|
||||||
if input.sender.startswith('#'):
|
if input.sender.startswith('#'):
|
||||||
@ -98,6 +98,7 @@ def note_join(phenny, input):
|
|||||||
note_join.rule = r'.*'
|
note_join.rule = r'.*'
|
||||||
note_join.event = 'JOIN'
|
note_join.event = 'JOIN'
|
||||||
note_join.priority = 'low'
|
note_join.priority = 'low'
|
||||||
|
note_join.thread = False
|
||||||
|
|
||||||
def note_part(phenny, input):
|
def note_part(phenny, input):
|
||||||
if input.sender.startswith('#'):
|
if input.sender.startswith('#'):
|
||||||
@ -106,6 +107,7 @@ def note_part(phenny, input):
|
|||||||
note_part.rule = r'.*'
|
note_part.rule = r'.*'
|
||||||
note_part.event = 'PART'
|
note_part.event = 'PART'
|
||||||
note_part.priority = 'low'
|
note_part.priority = 'low'
|
||||||
|
note_part.thread = False
|
||||||
|
|
||||||
db = sqlite3.connect("seen.sqlite")
|
db = sqlite3.connect("seen.sqlite")
|
||||||
c = db.cursor()
|
c = db.cursor()
|
||||||
|
2
tell.py
2
tell.py
@ -84,7 +84,6 @@ def note(phenny, input):
|
|||||||
|
|
||||||
note.rule = r'.*'
|
note.rule = r'.*'
|
||||||
note.priority = 'low'
|
note.priority = 'low'
|
||||||
note.thread = True
|
|
||||||
|
|
||||||
def note_join(phenny, input):
|
def note_join(phenny, input):
|
||||||
if input.sender.startswith('#'):
|
if input.sender.startswith('#'):
|
||||||
@ -93,7 +92,6 @@ def note_join(phenny, input):
|
|||||||
note_join.rule = r'.*'
|
note_join.rule = r'.*'
|
||||||
note_join.event = 'JOIN'
|
note_join.event = 'JOIN'
|
||||||
note_join.priority = 'low'
|
note_join.priority = 'low'
|
||||||
note_join.thread = True
|
|
||||||
|
|
||||||
db = sqlite3.connect("tell.sqlite")
|
db = sqlite3.connect("tell.sqlite")
|
||||||
c = db.cursor()
|
c = db.cursor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user