Skip to content

Commit 13a030f

Browse files
authored
Merge pull request #14 from Kavuti/MattiaFailla-patch-2
Traduzione modulo sed
2 parents 27db030 + 361160c commit 13a030f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tg_bot/modules/sed.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ def sed(bot: Bot, update: Update):
6363
repl, repl_with, flags = sed_result
6464

6565
if not repl:
66-
update.effective_message.reply_to_message.reply_text("You're trying to replace... "
67-
"nothing with something?")
66+
update.effective_message.reply_to_message.reply_text("Stai cercando di sostituire... "
67+
"il nulla con qualcosa?")
6868
return
6969

7070
try:
7171
check = re.match(repl, to_fix, flags=re.IGNORECASE)
7272

7373
if check and check.group(0).lower() == to_fix.lower():
74-
update.effective_message.reply_to_message.reply_text("Hey everyone, {} is trying to make "
75-
"me say stuff I don't wanna "
76-
"say!".format(update.effective_user.first_name))
74+
update.effective_message.reply_to_message.reply_text("Hey ragazzi, {} sta cercando di farmi "
75+
"dire cose che non voglio "
76+
"dire!".format(update.effective_user.first_name))
7777
return
7878

7979
if 'i' in flags and 'g' in flags:
@@ -87,12 +87,12 @@ def sed(bot: Bot, update: Update):
8787
except sre_constants.error:
8888
LOGGER.warning(update.effective_message.text)
8989
LOGGER.exception("SRE constant error")
90-
update.effective_message.reply_text("Do you even sed? Apparently not.")
90+
update.effective_message.reply_text("Sed invalido.")
9191
return
9292

9393
# empty string errors -_-
9494
if len(text) >= telegram.MAX_MESSAGE_LENGTH:
95-
update.effective_message.reply_text("The result of the sed command was too long for \
95+
update.effective_message.reply_text("Il risultato del comando sed era troppo lungo per \
9696
telegram!")
9797
elif text:
9898
update.effective_message.reply_to_message.reply_text(text)

0 commit comments

Comments
 (0)