Module: RubyRed::Events::Lulz

Extended by:
Discordrb::EventContainer
Defined in:
lib/rubyred/events/lulz.rb,
lib/rubyred/events/lulz/lulz_helper.rb

Constant Summary collapse

LULZ_YAML_FILE =
'lib/rubyred/events/lulz/lulz.yaml'

Class Method Summary collapse

Class Method Details

.will_lul?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
11
12
# File 'lib/rubyred/events/lulz/lulz_helper.rb', line 4

def self.will_lul?
  srand Time.now.to_i
  if (rand(1..3)) == 1
    will_lul = true
  else
    will_lul = false
  end
  return will_lul
end