]> git.lizzy.rs Git - furrybot.git/blobdiff - random.lua
Add uwu command
[furrybot.git] / random.lua
index d095746dc5351e0c6358a0a07f81eb71c2340400..c03418dce4a65fa6ce1cbe1223ecf8b9df5c353f 100644 (file)
@@ -18,6 +18,35 @@ function furrybot.commands.choose(name, ...)
        end
 end
 
+function furrybot.commands.uwu()
+       local msg = ""
+
+       local m = math.random(10)
+
+       for i = 1, m do
+               local u_list = {"u", "ü", "o", "ö"}
+
+               local u = u_list[math.random(#u_list)]
+               local w = "w"
+
+               if math.random() < 0.5 then
+                       u = u:upper()
+               end
+
+               if math.random() < 0.5 then
+                       w = w:upper()
+               end
+
+               msg = msg .. u .. w .. u
+
+               if i ~= m then
+                       msg = msg .. " "
+               end
+       end
+
+       furrybot.send(msg, furrybot.colors.system)
+end
+
 return function(_http, _env, _storage)
        http, env, storage = _http, _env, _storage
 end