tenquestionmarks/tenquestionmarks.toml
Adrian Malacoda a65c36ad9b dailies 1.1
2018-04-29 17:47:25 -05:00

194 lines
5.6 KiB
TOML

[general]
foo = "bar"
[dailies]
type = "lua"
children = ["irc"]
file = "lua/dailies.lua"
hour = 8
minute = 0
second = 0
channel = "#eightbar"
code = """
function chrimbus (time)
if time.day == 25 and time.month == 12 then
return "https://i.imgur.com/cDiJxrV.gif"
end
end
function februaryween (time)
if time.day == 14 and time.month == 2 then
return "http://s3images.coroflot.com/user_files/individual_files/302239_CauyLQoHZTkSJkkGnr3kVbFtw.jpg"
end
end
function monday (time)
if time.weekday == "monday" then
return "https://memegenerator.net/img/instances/66733493/you-dont-hate-mondays-you-hate-capitalism.jpg"
end
end
function tuesday (time)
if time.weekday == "tuesday" then
return "https://78.media.tumblr.com/996c6866874691590558dce00b394416/tumblr_nxyfp54u121rp1193o1_1280.png"
end
end
function wednesday (time)
if time.weekday == "wednesday" then
return "http://i0.kym-cdn.com/photos/images/original/001/091/264/665.jpg"
end
end
function thursday (time)
if time.weekday == "thursday" then
if time.day == 20 then
return "http://i1.kym-cdn.com/photos/images/newsfeed/001/245/590/bd8.jpg"
else
return "https://78.media.tumblr.com/b05de5acb40dfb4eca044526eed5bbfa/tumblr_inline_p59be6mrQp1scg9wt_540.png"
end
end
end
function friday (time)
if time.weekday == "friday" then
if time.day == 13 then
return "https://www.youtube.com/watch?v=9cPDdQs7iHs"
else
return "https://www.youtube.com/watch?v=kfVsfOSbJY0"
end
end
end
run_dailies({chrimbus, februaryween, monday, tuesday, wednesday, thursday, friday})
"""
[irc]
nickname = "tenquestionmarks2"
server = "irc.rizon.net"
channels = ["#eightbar"]
#[discord]
#token = "your token here"
[stdin]
[echo]
parents = ["stdin", "discord", "irc"]
prefix = "?echo"
[no]
type = "random"
parents = ["stdin", "discord", "irc"]
prefix = "?no"
responses = [
"https://www.youtube.com/watch?v=WWaLxFIVX1s", # Darth Vader
"https://www.youtube.com/watch?v=Hwz7YN1AQmQ", # Mario
"https://www.youtube.com/watch?v=O-ycQlfOqyY", # Dr. Robotnik
"https://www.youtube.com/watch?v=FSWiMoO8zNE", # Luke Skywalker
"https://www.youtube.com/watch?v=31g0YE61PLQ", # Michael Scott
"https://www.youtube.com/watch?v=xFGfWrJR5Ck", # Captain Picard
"https://www.youtube.com/watch?v=gvdf5n-zI14", # Nope.avi
"https://www.youtube.com/watch?v=2HJxya0CWco", # Dr. Evil
"https://www.youtube.com/watch?v=HIAql1AfSSU", # Finn the Human
"https://www.youtube.com/watch?v=4LSJJeR6MEU", # Trunks
"https://www.youtube.com/watch?v=6h7clHdeg6g", # Vegeta
"https://www.youtube.com/watch?v=cYTzynLuEuk", # Freakazoid
"https://www.youtube.com/watch?v=6BoVUpSsA1A", # Ganon
"https://www.youtube.com/watch?v=Oz7b7uYG0pk", # Robbie Rotten's Clone/Brother (We Are #1)
"https://www.youtube.com/watch?v=iabC7-9YUG4", # Cleveland Brown
"https://www.youtube.com/watch?v=iGLh9hRmRcM", # Homer Simpson
"https://www.youtube.com/watch?v=zfbK_dbsCu0", # Nathan Explosion
"https://www.youtube.com/watch?v=WfpyGyb1J4I", # Eric Cartman
"https://www.youtube.com/watch?v=wOxt9PoJNkg", # Nostalgia Critic
]
[yes]
type = "random"
parents = ["stdin", "discord", "irc"]
prefix = "?yes"
responses = [
"https://www.youtube.com/watch?v=JPVaDaynNKM", # Captain Falcon
"https://www.youtube.com/watch?v=P3ALwKeSEYs", # M. Bison
"https://www.youtube.com/watch?v=FJbmB9k2Y88", # Daniel Bryan
"https://www.youtube.com/watch?v=kfk5NIG7AhY", # Plankton
"https://www.youtube.com/watch?v=5v15U2uaV6k", # Jerry's boss (Rick and Morty)
"https://www.youtube.com/watch?v=DrKmo0YAZEo", # Simpsons Yes Guy
"https://www.youtube.com/watch?v=6VU1Kb7k0cs", # Majin Vegeta
"https://www.youtube.com/watch?v=jyJyI3z_tcc", # Scouter Vegeta
"https://www.youtube.com/watch?v=jcreG-bhRRA", # Piccolo
"https://www.youtube.com/watch?v=XFDGnmQyDf4", # Algernop Krieger
"https://www.youtube.com/watch?v=gSnfdncZCYo", # Twilight Sparkle
"https://www.youtube.com/watch?v=IPjvDE-rKo0", # William Forester (YTMND)
"https://www.youtube.com/watch?v=CBuIqmpeAm0", # Finn Hudson
"https://www.youtube.com/watch?v=q6EoRBvdVPQ", # Oro (Yee Dinosaur)
"https://www.youtube.com/watch?v=j44nP2J23Jk", # Austin Powers
"https://www.youtube.com/watch?v=b4mJtqqfMrQ", # Data
]
[chk]
type = "random"
parents = ["stdin", "discord", "irc"]
prefix = "?chk"
responses = ["ack"]
[pvn]
parents = ["stdin", "discord", "irc"]
[echobox]
parents = ["stdin", "discord", "irc"]
[lua]
parents = ["stdin", "discord"]
code = """
function on_message (message)
message:reply("Lua says: " .. message:content())
end
"""
foo = "bar"
[lua2]
type = "lua"
parents = ["stdin", "discord"]
filters = [{ username = "David" }]
code = """
function on_message (message)
message:reply("Lua2 says: " .. message:content())
end
"""
[lua3]
type = "lua"
#children = ["lua", "irc"]
code = """
local clock = os.clock
function sleep(n) -- seconds
local t0 = clock()
while clock() - t0 <= n do end
end
while true do
sender:send({type = "message", channel = "#eightbar", message = "Hello world!"})
sleep(10)
end
"""
[autolink]
parents = ["stdin", "discord", "irc"]
[logger]
parents = ["stdin", "discord", "irc"]
#filters = [{ username = "Dave" }, { username = "Kevin" }]
[icced]
type = "random"
parents = ["stdin", "discord", "irc"]
pattern = "(?i)\\bicc?ed?\\b"
responses = ["Did some carbon-based lifeform just say **I C E**?"]
[trout]
type = "random"
parents = ["stdin", "discord", "irc"]
pattern = "^\\?slap (.*)"
responses = ["/me slaps $1 around a bit with a large trout", "/me slaps $1 around a bit with a large brick"]