grifdail

Regle

Dec 4th, 2011
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.59 KB | None | 0 0
  1. #encoding: utf-8
  2. module Brain
  3.   module Asking
  4.       Base = {
  5.     [/bonjour/i, /salut/i, /hello/i] => :bonjour,
  6.     [/au revoir/i, /adieu/i, /à plus tard/i, /adios/,/A bientot/i, /bye bye/i] => :aurevoire,
  7.     [/heures?.*\?/i] => :heure,
  8.     [/jours?.*\?/i, /date.*\?/i] => :date,
  9.     [/Encul[ée]/i,/Fu+c?k?\B/i, /merde/i, /putain/, /sal+opes?/i, /abrutis?/i] => :vulgarité,
  10.     [/qui est?[- ](.+) ?\?/i, /Connais[ -]tu (.+) ?\?/i] => :quiest,
  11.     [/Cool story bros?/i,/en (tape|fiche)/i] => :coolstorybros,
  12.     [/t'aime/i,/t'adore/] => :love,
  13.     [/te[- ]tuer/] => :kill,
  14.   }
  15.  
  16.   end
  17. end
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment