Browse Source

regex battle2

master
calexil 9 months ago
parent
commit
16ac53134d
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      bot.js
  2. 1
    1
      bot.js~

+ 2
- 2
bot.js View File

@@ -64,9 +64,9 @@ client.on("message", (message) => {
message.channel.send(message.content.replace(/best g(ir|ri|ur)l+\??/g, "Big Band."));
});*/
let rg = /best g(ir|ri|ur)l+\??/igy;
client.on( "message", (message) => {
let m = message.content.replace( rg, "Big Band" );
let m = message.content.replace( rg, "Big Band." );
if( rg.lastIndex > 0 ) {
message.channel.send(m);

+ 1
- 1
bot.js~ View File

@@ -65,7 +65,7 @@ client.on("message", (message) => {
});*/
let rg = /best g(ir|ri|ur)l+\??/igy;
client.on( "message", (message) -> {
client.on( "message", (message) => {
let m = message.content.replace( rg, "Big Band" );
if( rg.lastIndex > 0 ) {

Loading…
Cancel
Save