2020-06-12 17:29:35 -04:00
|
|
|
|
defmodule Omnibot.Contrib.Fortune do
|
2020-07-12 12:19:14 -07:00
|
|
|
|
use Omnibot.Plugin
|
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-08-11 12:45:29 -07:00
|
|
|
|
|
|
|
|
|
|
"Outlook bad",
|
|
|
|
|
|
"Today will be a good day!",
|
|
|
|
|
|
"Pack a raincoat",
|
|
|
|
|
|
"Fair Luck",
|
|
|
|
|
|
"Good weather for cocks",
|
|
|
|
|
|
"Look towards the setting sun",
|
|
|
|
|
|
#"It's been years",
|
|
|
|
|
|
#"God I wish that were me",
|
|
|
|
|
|
"bad!",
|
|
|
|
|
|
"Love is in your future",
|
|
|
|
|
|
"You were young and foolish then, you are old and foolish now.",
|
|
|
|
|
|
"Delete your account",
|
|
|
|
|
|
"Rest in piss",
|
|
|
|
|
|
"What a horrible night to have a curse.",
|
|
|
|
|
|
"Closed: WONTFIX",
|
|
|
|
|
|
"You've got mail!",
|
|
|
|
|
|
"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
|
|
|
|
"AAAAAAAAAAAAAAAAAA",
|
|
|
|
|
|
|
|
|
|
|
|
"´_ゝ`",
|
|
|
|
|
|
"タ━━━━━━(゚∀゚)━━━━━━ !!!!",
|
|
|
|
|
|
|
|
|
|
|
|
"¯\_(ツ)_/¯",
|
|
|
|
|
|
":^)",
|
|
|
|
|
|
|
2020-06-12 17:29:35 -04:00
|
|
|
|
]
|
|
|
|
|
|
|
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
|