Пример #1
0
Файл: join.py Проект: jcguy/ATM
def setup(bot):
    data = storage.get('channel_timer')
    if data and isinstance(data, dict):
        bot.memory['channel_timer_dict'] = data
    else:
        bot.memory['channel_timer_dict'] = {}
    bot.memory['channel_timer_lock'] = threading.Lock()
Пример #2
0
def setup(bot):
    data = storage.get('tell')
    if data and isinstance(data,dict):
        bot.memory['tell_dict'] = data
    else:
        bot.memory['tell_dict'] = {}
    bot.memory['tell_lock'] = threading.Lock()
Пример #3
0
def setup(bot):
    data = storage.get('tell')
    if data and isinstance(data,dict):
        bot.memory['tell_dict'] = data
    else:
        bot.memory['tell_dict'] = {}
    bot.memory['tell_lock'] = threading.Lock()
Пример #4
0
def setup(bot):    
    data = storage.get('channel_timer')
    if data and isinstance(data,dict):
        bot.memory['channel_timer_dict'] = data
    else:
        bot.memory['channel_timer_dict'] = {}
    bot.memory['channel_timer_lock'] = threading.Lock()
Пример #5
0
def setup(bot):
	data = storage.get('seen')
	if data and isinstance(data,dict):
		bot.memory['seen_dict'] = data
	else:
		bot.memory['seen_dict'] = {}
Пример #6
0
def setup(bot):
    data = storage.get('welcome')
    if data and isinstance(data, dict):
        bot.memory['welcome_dict'] = data
    else:
        bot.memory['welcome_dict'] = {}