forked from i32ropie/lol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplantilla.py
More file actions
28 lines (24 loc) · 801 Bytes
/
plantilla.py
File metadata and controls
28 lines (24 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- coding: utf-8 -*-
from config import *
print(Color(
'{autored}[{/red}{autoyellow}+{/yellow}{autored}]{/red} {autocyan} .py importado.{/cyan}'))
@bot.message_handler(func=lambda message: message.text ==
"ESPAÑOL" or message.text == "INGLES")
@bot.message_handler(commands=['comando'])
def command_COMANDO(m):
cid = m.chat.id
uid = m.from_user.id
try:
send_udp('comando')
except Exception as e:
bot.send_message(52033876, send_exception(e), parse_mode="Markdown")
if not is_recent(m):
return None
if is_banned(uid):
if not extra['muted']:
bot.reply_to(m, responses['banned'])
return None
if is_user(cid):
# Comando
else:
bot.send_message(cid, responses['not_user'])