mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Don't crash if bridge is sent without args
This commit is contained in:
parent
3d163b1736
commit
b92702548d
1 changed files with 1 additions and 0 deletions
|
@ -376,6 +376,7 @@ def cmd_bridge(bot: Bot, update: Update):
|
|||
except IndexError:
|
||||
bot.send_message(update.message.chat.id, "⚠ Non hai specificato un comando!\n"
|
||||
"Sintassi corretta: `/bridge <comando> <argomenti>`", parse_mode="Markdown")
|
||||
return
|
||||
discord_connection.send(f"!{data}")
|
||||
result = discord_connection.recv()
|
||||
if result == "error":
|
||||
|
|
Loading…
Reference in a new issue