Class: Cinch::Plugins::Dongs

Inherits:
Object
  • Object
show all
Includes:
Cinch::Plugin
Defined in:
lib/cinch/plugins/dongs.rb

Instance Method Summary collapse

Instance Method Details

#dongObject


9
10
11
12
13
# File 'lib/cinch/plugins/dongs.rb', line 9

def dong
  dicklength = rand(20)+4
  dickcolor = rand(15+1)
  "![c#{dickcolor.to_s.rjust(2,"0")}]8#{"=" * dicklength}D".gsub(/!\[(.*?)\]/) { $1.tr('boruic', 2.chr + 15.chr + 18.chr + 31.chr + 29.chr + 3.chr) }
end

#execute(m) ⇒ Object


26
27
28
# File 'lib/cinch/plugins/dongs.rb', line 26

def execute(m)
  m.reply dong
end

#execute_multiple(m, d) ⇒ Object


31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/cinch/plugins/dongs.rb', line 31

def execute_multiple(m, d)
  if d.to_i == 37
    m.reply "37"
    sleep 1
    m.reply "My girlfriend sucked 37 dicks"
  elsif d.to_i > 5
    m.reply "More than 5 dongs is way too much, man.", true
  elsif d.to_i == 0
    m.reply "If you didn't want any dongs, then why did you ask?", true
  elsif d.to_i == -1
    m.reply "No infinite dongs for you.", true
  elsif d.to_i <= -2
    m.reply "...What?", true
  else
    d.to_i.times do
      m.reply dong
      sleep 0.10
    end
  end
end

#ridgeracer(m, i) ⇒ Object


16
17
18
# File 'lib/cinch/plugins/dongs.rb', line 16

def ridgeracer(m, i)
  m.reply "RIIII#{"II" * i.length}DGE RACER!"
end

#wideface(m, i) ⇒ Object


21
22
23
# File 'lib/cinch/plugins/dongs.rb', line 21

def wideface(m, i)
  m.reply i.length < 25 ? "('____#{"__" * i.length}'X)" : "WE MUST GO WIDER!"
end