Browse Source

regex stuff

master
calexil 2 years ago
parent
commit
f32bf0c9f6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      bot.js

+ 1
- 1
bot.js View File

@@ -38,7 +38,7 @@ let rgContent = /best g(ir|ri|ur)l+\??/igy;
client.on( "message", (message) => {
let msContent = message.content.replace( rgContent, "Big Band." );
if( rg.lastIndex > 0 ) {
if( rgContent.lastIndex > 0 ) {
message.channel.send(msContent);
console.log(` ${msContent}`);
}

Loading…
Cancel
Save