Skip to content

Commit

Permalink
Fix regex. We only match whole _win_ word now (as we should)
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyLemon committed Feb 22, 2017
1 parent ad71be7 commit 72d9c77
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/chatter.coffee
Expand Up @@ -91,23 +91,20 @@ module.exports = (bot) ->
]
r.reply bot.random huh

bot.command /(\bwin\b|victory)/i, (r) ->
bot.command /(\b(win)\b|victory)/i, (r) ->
vic = [
"http://thejointblog.com/wp-content/uploads/2013/04/victory.jpg",
"http://www.quickmeme.com/img/ea/ea4671998341d9fbb6f7815394b49cb2890a50ac80b62802fb021c147c068d8e.jpg",
"http://cdn-media.hollywood.com/images/l/victory_620_080712.jpg",
"http://cf.chucklesnetwork.agj.co/items/5/5/9/6/0/one-does-not-simply-declare-victory-but-i-just-did.jpg",
"http://www.artschoolgeek.com/wp-content/uploads/2014/06/h7E4B96E6.jpeg",
"http://t.qkme.me/3qlspk.jpg",
"http://img.pandawhale.com/86036-victory-dance-gif-Despicable-M-EPnS.gif",
"http://1.bp.blogspot.com/-rmJLwpPevTg/UOEBgVNiVFI/AAAAAAAAFFY/-At3Z_DzBbw/s1600/dancing+charlie+murphy+animated+gif+victory+dance.gif",
"http://www.gifbin.com/bin/20048442yu.gif",
"http://www.quickmeme.com/img/30/300ace809c3c2dca48f2f55ca39cbab24693a9bd470867d2eb4e869c645acd42.jpg",
"http://jeffatom.files.wordpress.com/2013/09/winston-churchill-says-we-deserve-victory.jpg",
"http://i.imgur.com/lmmBt.gif",
"http://danceswithfat.files.wordpress.com/2011/08/victory.jpg",
"http://stuffpoint.com/family-guy/image/56246-family-guy-victory-is-his.gif",
"http://thelavisshow.files.wordpress.com/2012/06/victorya.jpg",
"http://alookintomymind.files.wordpress.com/2012/05/victory.jpg"
]
r.reply bot.random vic
Expand Down

0 comments on commit 72d9c77

Please sign in to comment.