Esempio n. 1
0
def give(bot, update):
	if config.MODERS_IDS is True or str(update.message.chat_id) in config.MODERS_IDS:
		user = usermanager.get_user(update.message.chat_id)
		user.cheater = True
		usermanager.save_user(user)

		cmd, item_type, name = update.message.text.split()
		usermanager.give_item(update.message.chat_id, item_type, name)
	else:
		bot.sendMessage(update.message.chat_id, text='NO.')
Esempio n. 2
0
def give(bot, update):
    if str(update.message.chat_id) in config.ADMINS_IDS:
        cmd, item_type, name = update.message.text.split()
        usermanager.give_item(update.message.chat_id, item_type, name)
    else:
        bot.sendMessage(update.message.chat_id, text='NO.')
Esempio n. 3
0
def give(bot, update):
	if str(update.message.chat_id) in config.MODERS_IDS:
		cmd, item_type, name = update.message.text.split()
		usermanager.give_item(update.message.chat_id, item_type, name)
	else:
		bot.sendMessage(update.message.chat_id, text='NO.')