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