From c6f73395c032caf20987b6053d51e06f0efa6571 Mon Sep 17 00:00:00 2001 From: Flummi Date: Tue, 11 Jul 2023 01:02:15 +0200 Subject: [PATCH] wo einfach ( |$) --- src/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.mjs b/src/index.mjs index 99e0633..1a06b9f 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -77,7 +77,7 @@ bot.on("message", e => { console.log(`callphase: ${callphase ? 'yes': 'no'}; callamount: ${callamount}; potsize: ${pot}; winchance: ${winchance}`); } - if(e.message.match(new RegExp(`^Current player: ${e.self.me.nickname}( \\()?$`)) && hand) { + if(e.message.match(new RegExp(`^Current player: ${e.self.me.nickname}( |$)`)) && hand) { if(!winchance) return e.reply('c');