Browse Source

regex stuff

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

+ 3
- 3
bot.js View File

@@ -66,11 +66,11 @@ client.on("message", (message) => {
let rg = /best g(ir|ri|ur)l+\??/igy;

client.on( "message", (message) => {
let m = message.content.replace( rg, "Big Band." );
let mes = message.content.replace( rg, "Big Band." );
if( rg.lastIndex > 0 ) {
message.channel.send(m);
console.log(m);
message.channel.send(mes);
console.log(mes);
}
} );


Loading…
Cancel
Save