Browse Source

array regex

master
calexil 2 years ago
parent
commit
37c14a8d9c
2 changed files with 2 additions and 2 deletions
  1. 2
    1
      bot.js
  2. 0
    1
      bot.js~

+ 2
- 1
bot.js View File

@@ -11,7 +11,6 @@ const responseObject = {
"test": "It worked!",
"best girl?": "Big Band.",
"best girl": "Big Band.",
(/best g[iru]{1-2}ll?\?/): "Big Band.",
"best grill": "Big Band.",
"best grill?": "Big Band.",
"best gurl": "Big Band.",
@@ -22,6 +21,8 @@ const responseObject = {
"commands": "You can see my commands here: https://github.com/calexil/BansheeBot/blob/master/Commands.md"
};

string.replace(s/best g\(ir|ri|ur\)ll?\?, 'Big Band.');

// Call the web page with express
app.use(express.static('public'));
app.use(bodyParser.json());

+ 0
- 1
bot.js~ View File

@@ -11,7 +11,6 @@ const responseObject = {
"test": "It worked!",
"best girl?": "Big Band.",
"best girl": "Big Band.",
"[/best g[iru]{1-2}ll?\?/]": "Big Band.",
"best grill": "Big Band.",
"best grill?": "Big Band.",
"best gurl": "Big Band.",

Loading…
Cancel
Save