2020-06-12 17:29:35 -04:00
|
|
|
|
defmodule Omnibot.Contrib.Fortune do
|
2020-06-12 18:24:11 -04:00
|
|
|
|
use Omnibot.Module
|
2020-06-12 17:29:35 -04:00
|
|
|
|
|
|
|
|
|
|
@fortunes [
|
|
|
|
|
|
"Reply hazy, try again",
|
|
|
|
|
|
"Excellent Luck",
|
|
|
|
|
|
"Good Luck",
|
|
|
|
|
|
"Average Luck",
|
|
|
|
|
|
"Bad Luck",
|
|
|
|
|
|
"Good news will come to you by mail",
|
|
|
|
|
|
"´_ゝ`",
|
|
|
|
|
|
"タ━━━━━━(゚∀゚)━━━━━━ !!!!",
|
|
|
|
|
|
"You will meet a dark handsome stranger",
|
|
|
|
|
|
"Better not tell you now",
|
|
|
|
|
|
"Outlook good",
|
|
|
|
|
|
"Very Bad Luck",
|
|
|
|
|
|
"Godly Luck",
|
|
|
|
|
|
]
|
|
|
|
|
|
|
2020-06-13 15:20:00 -04:00
|
|
|
|
command "!fortune", [to] do
|
|
|
|
|
|
fortune = Enum.random(@fortunes)
|
|
|
|
|
|
reply = "#{to}: #{fortune}"
|
2020-06-13 17:13:05 -04:00
|
|
|
|
Irc.send_to(irc, channel, reply)
|
2020-06-12 17:29:35 -04:00
|
|
|
|
end
|
|
|
|
|
|
|
2020-06-13 15:20:00 -04:00
|
|
|
|
command "!fortune" do
|
|
|
|
|
|
fortune = Enum.random(@fortunes)
|
|
|
|
|
|
reply = "#{nick}: #{fortune}"
|
2020-06-13 17:13:05 -04:00
|
|
|
|
Irc.send_to(irc, channel, reply)
|
2020-06-12 17:29:35 -04:00
|
|
|
|
end
|
|
|
|
|
|
end
|