示例#1
0
def save_ignores():
    print 'Saving the ignore list...'
    with save_ignores_lock:
        with open('bot_ignore.txt', 'w') as f:
            f.writelines(utils.newlines(bot.config.setdefault('IGNORE', [])))
示例#2
0
def save_badwords():
    global badwords
    print 'Saving the badword list...'
    with save_badwords_lock:
        with open('bot_badword.txt', 'w') as f:
            f.writelines(utils.newlines(badwords))
示例#3
0
def save_ignores():
    print "Saving the ignore list..."
    with save_ignores_lock:
        with open("bot_ignore.txt", "w") as f:
            f.writelines(utils.newlines(bot.config.setdefault("IGNORE", [])))