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) { function interpretMessage(msg) {
if (msg === "/shrug") { if (msg.startsWith("/shrug")) {
return "¯\\\\\\_(ツ)\\_/¯" return msg.replace("/shrug", "") + " ¯\\\\\\_(ツ)\\_/¯"
} }
if (msg === "/tableflip") { if (msg.startsWith("/tableflip")) {
return "(╯°□°)╯︵ ┻━┻" return msg.replace("/tableflip", "") + " (╯°□°)╯︵ ┻━┻"
} }
return msg return msg