regexp schmegexp
This commit is contained in:
parent
84226ec2e2
commit
1ae3ca6e12
@ -77,7 +77,7 @@ bot.on("message", e => {
|
|||||||
console.log(`callphase: ${callphase ? 'yes': 'no'}; callamount: ${callamount}; potsize: ${pot}; winchance: ${winchance}`);
|
console.log(`callphase: ${callphase ? 'yes': 'no'}; callamount: ${callamount}; potsize: ${pot}; winchance: ${winchance}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(e.message.startsWith(`Current player: ${e.self.me.nickname} `) && hand) {
|
if(e.message.match(new RegExp(`^Current player: ${e.self.me.nickname}( \\()?$`)) && hand) {
|
||||||
if(!winchance)
|
if(!winchance)
|
||||||
return e.reply('c');
|
return e.reply('c');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user