Ver código fonte

regex battle2

master
calexil 1 ano atrás
pai
commit
cf75a7f44b
2 arquivos alterados com 3 adições e 3 exclusões
  1. 1
    1
      bot.js
  2. 2
    2
      bot.js~

+ 1
- 1
bot.js Ver arquivo

@@ -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 ) {

+ 2
- 2
bot.js~ Ver arquivo

@@ -9,12 +9,12 @@ const bodyParser = require('body-parser');
// Message Array
const responseObject = {
"test": "It worked!",
"best girl?": "Big Band.",
/* "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 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",

Carregando…
Cancelar
Salvar