Exemplo n.º 1
0
def room(bot, update):
	c_id = update.message.chat_id

	if str(c_id) in config.MODERS_IDS:
		cmd, room_type, name = update.message.text.split()
		usermanager.open_room(c_id, lambda *a, **kw: reply(c_id, bot, *a, **kw), room_type, name)
	else:
		bot.sendMessage(update.message.chat_id, text='NO.')
Exemplo n.º 2
0
def room(bot, update):
	c_id = update.message.chat_id

	if str(c_id) in config.MODERS_IDS:
		cmd, room_type, name = update.message.text.split()
		usermanager.open_room(c_id, lambda *a, **kw: reply(c_id, bot, *a, **kw), room_type, name)
	else:
		bot.sendMessage(update.message.chat_id, text='NO.')
Exemplo n.º 3
0
def room(bot, update):
	c_id = update.message.chat_id

	if config.MODERS_IDS is True or str(c_id) in config.MODERS_IDS:
		user = usermanager.get_user(update.message.chat_id)
		user.cheater = True
		usermanager.save_user(user)

		cmd, room_type, name = update.message.text.split()
		usermanager.open_room(c_id, lambda *a, **kw: reply(c_id, bot, *a, **kw), room_type, name)
	else:
		bot.sendMessage(update.message.chat_id, text='NO.')