feat: enable putting text after the shrug or tableflip

This commit is contained in:
Jonathan Rainville 2020-11-16 15:21:06 -05:00 committed by Iuri Matias
parent 6869a3ddfb
commit cecaa292ba
1 changed files with 4 additions and 4 deletions

View File

@ -69,11 +69,11 @@ Rectangle {
}
function interpretMessage(msg) {
if (msg === "/shrug") {
return "¯\\\\\\_(ツ)\\_/¯"
if (msg.startsWith("/shrug")) {
return msg.replace("/shrug", "") + " ¯\\\\\\_(ツ)\\_/¯"
}
if (msg === "/tableflip") {
return "(╯°□°)╯︵ ┻━┻"
if (msg.startsWith("/tableflip")) {
return msg.replace("/tableflip", "") + " (╯°□°)╯︵ ┻━┻"
}
return msg