Conditions | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | #!/usr/bin/python |
||
15 | def leet(bot, update, args): |
||
16 | current_time = datetime.strftime(datetime.now(), "%d.%m.%Y %H:%M:%S") |
||
17 | if update.message.reply_to_message is not None: |
||
18 | print(update.message.reply_to_message.text) |
||
19 | args = update.message.reply_to_message.text |
||
20 | args = args.split(" ") |
||
21 | input_text = " ".join(args).lower() |
||
22 | if input_text == "": |
||
23 | update.message.reply_text("Type in some text!") |
||
24 | return |
||
25 | zalgofied_text = zalgo.zalgo().zalgofy(input_text) |
||
26 | update.message.reply_text(zalgofied_text) |
||
27 | print(current_time, ">", "/zalgo", ">", update.message.from_user.username) |
||
28 | log_command(bot, update, current_time, "zalgo") |
||
29 |