Skip to content

Commit

Permalink
Added some sentences to LOL plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rayfranco committed Aug 2, 2012
1 parent 6e4b6d3 commit b2b2bb1
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions plugins/lol.rb
Expand Up @@ -3,7 +3,7 @@ class Lol
include Cinch::Plugin
set :react_on, :channel

match /(salut|hello|bonjour|hey|yo|plop) FatYouth/i, method: :sayhello
match /(salut|hello|bonjour|hey|yo|plop|yop|wesh) (FatYouth|Fat)/i, method: :sayhello
def sayhello(m,msg)
sentences = [
"#{msg} #{m.user.nick}, bien ?",
Expand All @@ -14,7 +14,34 @@ def sayhello(m,msg)
m.reply sentences.sample
end

match /(?:.*)(?:lol|kikoo|mdr)(?:.*)/, method: :saylol
match /(?:.*FatYouth .*(sava|a va|vas tu).* ?)|(?:.*(a va|sava|vas tu).*FatYouth.* ?)/i, method: :sayhello2
def sayhello2(m,msg)
sentences = [
"#{m.user.nick}, bah ecoute, ca va :)",
"#{m.user.nick}, si si la famille toussa !",
"#{m.user.nick}, tranquille...",
"#{m.user.nick}, disons ca allait, jusqu'a ce que tu me parles..."
]
m.reply sentences.sample
end

match /FatYouth .*(?:est|t\'es|tu es).* (\w+)/i, method: :stoi
def stoi(m,msg)
m.reply "#{m.user.nick} S'toi le #{msg}"
end

match /(?:(merci|thanks|thx) .*(FatYouth|Fat).*)|(?:FatYouth .*(merci|thanks|thx).*)/i, method: :derien
def derien(m,msg)
sentences = [
"#{m.user.nick} no souci poto.",
"#{m.user.nick} tkt !",
"#{m.user.nick} np",
"#{m.user.nick} de rien ;)"
]
m.reply sentences.sample
end

match /(?:.*)(?:lol|kikoo|mdr|ptdr|haha|hoho|lfmao)(?:.*)/, method: :saylol
def saylol(m)
sentences = [
"Quel blagueur ce #{m.user.nick} ! lol",
Expand Down

0 comments on commit b2b2bb1

Please sign in to comment.