diff --git a/src/games/rock-paper-scissors.js b/src/games/rock-paper-scissors.js index 99ec0c7..b129e88 100644 --- a/src/games/rock-paper-scissors.js +++ b/src/games/rock-paper-scissors.js @@ -79,8 +79,8 @@ async function onCommand(args, context) { } async function onMessage(args, context) { - const emojiHand = emojiLookup[context.message.body]; - const emojiAliasHand = config.platform === 'schat' && context.message.originalBody?.match(/^:((?:rock)|(?:paper)|(?:scissors)|(?:scissoring)|(?:page_facing_up)|(?:page_with_curl)):$/)?.[1]; + const emojiHand = emojiLookup[context.message.body.trim()]; + const emojiAliasHand = config.platform === 'schat' && context.message.originalBody?.trim().match(/^:((?:rock)|(?:paper)|(?:scissors)|(?:scissoring)|(?:page_facing_up)|(?:page_with_curl)):$/)?.[1]; const hand = emojiHand || emojiAliases[emojiAliasHand];