Hopefully fixed a fuckup

This commit is contained in:
octospacc 2021-12-27 13:01:54 +01:00
parent a82a1619af
commit a54ebb61f2
2 changed files with 5 additions and 5 deletions

View File

@ -79,7 +79,7 @@
"*Vorrei anche io le coccole ma... ☁️😔*"
],
"self": [
"{0} si stende sul letto e prova a farsi le coccole, per sentirsi meglio."
"*{0} si stende sul letto e prova a farsi le coccole, per sentirsi meglio.*"
],
"others": [
"*{0} fa le coccole a {1} 🥰*",
@ -123,7 +123,7 @@
"sessocto": {
"empty": [
"*Sessocto?!?! 😳️*",
"Vuoi fare sessocto con qualcuno? Rispondi ad un suo messaggio.*"
"*Vuoi fare sessocto con qualcuno? Rispondi ad un suo messaggio.*"
],
"bot": [
"*Vorrei anche io sessocto ma non ho un corpo...😥️*"

View File

@ -55,13 +55,13 @@ def help(update:Update, context:CallbackContext) -> None:
def echo(update:Update, context:CallbackContext) -> None:
if CmdRestrict(update):
Message = update.message.text
if CommandFilter(Message) == 'echo':
if len(Message.split(' ')) < 2:
Text = CharEscape(choice(Locale[Lang]['echo']['empty']), '.!')
update.message.reply_markdown_v2(
Text,
reply_to_message_id=update.message.message_id)
else:
Text = Message[5:]
Text = Message[len(Message.split(' ')[0])+1:]
update.message.reply_text(
Text,
reply_to_message_id=update.message.message_id)
@ -74,7 +74,7 @@ def ping(update:Update, context:CallbackContext) -> None:
def wish(update:Update, context:CallbackContext) -> None:
if CmdRestrict(update):
if CommandFilter(update.message.text) == 'wish':
if len(update.message.text.split(' ')) < 2:
Text = choice(Locale[Lang]['wish']['empty'])
else:
Text = choice(Locale[Lang]['wish']['done'])