1 const common = require("./common.js")
5 func: msg => msg.channel.send(`<@!${msg.author.id}> rolled a dice and got a ${1 + Math.floor(Math.random() * 6)}.`)
8 func: msg => msg.channel.send(`<@!${msg.author.id}> flipped a coin and got ${common.choose(["Heads", "Tails"])}.`)
12 furrybot.commands.rolldice = {
14 furrybot.ping_message(name, "rolled a dice and got a " .. furrybot.random(1, 6, furrybot.colors.system) .. ".", furrybot.colors.system)
18 furrybot.commands.coinflip = {
20 furrybot.ping_message(name, "flipped a coin and got " .. furrybot.choose({"Heads", "Tails"}, furrybot.colors.system) .. ".", furrybot.colors.system)
24 furrybot.commands.choose = {
25 func = function(name, ...)
28 furrybot.ping_message(name, "I choose " .. furrybot.choose(options, "", furrybot.colors.system) .. ".", furrybot.colors.system)
30 furrybot.error_message(name, "Not enough options")
35 furrybot.commands.uwu = {
39 local m = math.random(10)
42 local u_list = {"u", "ü", "o", "ö"}
44 local u = u_list[math.random(#u_list)]
47 if math.random() < 0.5 then
51 if math.random() < 0.5 then
55 msg = msg .. u .. w .. u
62 furrybot.send(msg, furrybot.colors.system)
66 furrybot.commands.extinct = {
67 func = function(name, species)
69 species = furrybot.uppercase(species .. (species:sub(#species, #species):lower() == "s" and "" or "s"))
70 furrybot.ping_message(name, species .. " are " .. (furrybot.strrandom(species, 420, 0, 1) == 0 and "not " or "") .. "extinct." , furrybot.colors.system)
72 furrybot.error_message(name, "You need to specify a species")
77 furrybot.commands.german = {
81 "Sprich Deutsch, du Hurensohn!",
82 "NEIN NEIN NEIN NEIN NEIN NEIN",
84 "Das war ein BEFEHL!",
85 "Das bleibt hier alles so wie das hier ist!",
87 "Digga was falsch bei dir",
88 "Lass mich deine Arschfalten sehen",
89 "Krieg mal deinen Ödipuskomplex unter Kontrolle",
90 "Meine Nudel ist 30cm lang und al dente",
91 "Wie die Nase eines Mannes, so auch sein Johannes.",
94 local msg = messages[math.random(#messages)]
95 local stripe = math.floor(#msg / 3)
97 furrybot.ping_message(name, msg:sub(1, stripe) .. C("red") .. msg:sub(stripe + 1, stripe * 2) .. C("yellow") .. msg:sub(stripe * 2 + 1, #msg), C("black"))
101 furrybot.commands.color = {
102 func = function(name)
103 local color = string.format("#%06x", math.random(16777216) - 1):upper()
105 furrybot.ping_message(name, "Here's your color: " .. C(color) .. color, furrybot.colors.system)
109 furrybot.commands.book = {
110 func = function(name)
112 "Johann Wolfgang von Goethe - Faust, Der Tragödie Erster Teil",
113 "Johann Wolfgang von Goethe - Faust, Der Tragödie Zweiter Teil",
114 "Karl Marx & Friedrich Engels - The Communist Manifesto",
115 "Brian Kernhigan & Dennis Ritchie - The C Programming Language",
116 "Heinrich Heine - Die Harzreise",
117 "Johann Wolfgang von Goethe - Die Leiden des jungen Werther",
118 "Friedrich Schiller - Die Jungfrau von Orleans",
119 "Theodor Fontane - Irrungen, Wirrungen",
120 "Friedrich Schiller - Die Räuber",
121 "Theodor Storm - Der Schimmelreiter",
122 "Josef von Eichendorff - Aus dem Leben eines Taugenichts",
123 "Richard Esplin - Advanced Linux Programming",
124 "Joey de Vries - Learn OpenGL",
125 "Gerard Beekmans - Linux From Scratch",
128 furrybot.ping_message(name, books[math.random(#books)], furrybot.colors.system)
132 furrybot.commands.video = {
133 func = function(name)
134 furrybot.ping_message(name, "https://youtube.com/watch?v=dQw4w9WgXcQ", furrybot.colors.system)