Browse Source

regex stuff

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

+ 2
- 10
bot.js View File

@@ -9,15 +9,9 @@ const bodyParser = require('body-parser');
// Message Array
const responseObject = {
"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",
"!help": "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"
};

@@ -30,9 +24,7 @@ client.on("message", (message) => {


// Reply to regex regarding best girl
/*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+\??/ig;
client.on( "message", (message) => {

Loading…
Cancel
Save