Esempio n. 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', [])))
Esempio n. 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))
Esempio n. 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", [])))