Browse Source

regex battle

master
calexil 2 years ago
parent
commit
db9ee8feff
2 changed files with 5 additions and 10 deletions
  1. 3
    8
      bot.js
  2. 2
    2
      bot.js~

+ 3
- 8
bot.js View File

@@ -7,19 +7,14 @@ const app = express();
const bodyParser = require('body-parser');

// Message Array
/*const responseObject = {
const responseObject = {
console.log("best girll?".replace(/best g(ir|ri|ur)l+\??/gi, "Big Band."));
"test": "It worked!",
"best girl?": "Big Band.",
"best girl": "Big Band.",
"best grill": "Big Band.",
"best grill?": "Big Band.",
"best gurl": "Big Band.",
"best gurl?": "Big Band.",
"best booty": "Squigly, Duh.",
"best booty?": "Squigly, Duh.",
"hi": "Hello there, I'm a dumb bot written by [@calexil#9270](https://github.com/calexil) and [@Timberius#8180](https://github.com/TimboKZ) , you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md",
"commands": "You can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md"
};*/
};

console.log("best girll?".replace(/best g(ir|ri|ur)l+\??/gi, "Big Band."));


+ 2
- 2
bot.js~ View File

@@ -7,7 +7,7 @@ const app = express();
const bodyParser = require('body-parser');

// Message Array
const responseObject = {
/*const responseObject = {
"test": "It worked!",
"best girl?": "Big Band.",
"best girl": "Big Band.",
@@ -19,7 +19,7 @@ const responseObject = {
"best booty?": "Squigly, Duh.",
"hi": "Hello there, I'm a dumb bot written by [@calexil#9270](https://github.com/calexil) and [@Timberius#8180](https://github.com/TimboKZ) , you can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md",
"commands": "You can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md"
};
};*/

console.log("best girll?".replace(/best g(ir|ri|ur)l+\??/gi, "Big Band."));


Loading…
Cancel
Save