Skip to content

Instantly share code, notes, and snippets.

@Xe Xe/orig.lua
Last active Dec 19, 2017

Embed
What would you like to do?
Russian roulette script for Tetra
Command("ROULETTE", function(source) local rdm = math.floor(100000000 * math.random() % 6) if rdm == 2 then client.Kill(source, "ROULETTE: KILL: " .. source.Nick .. " " .. tostring(rdm)) return "BANG! " .. tostring(rdm) else return "click " .. tostring(rdm) end end)
Command("ROULETTE", function(source)
local rdm = math.floor(100000000 * math.random() % 6)
if rdm == 2 then
client.Kill(source, "ROULETTE: KILL: " .. source.Nick .. " " .. tostring(rdm))
return "BANG! " .. tostring(rdm)
else
return "click " .. tostring(rdm)
end
end)
23:04 < Cadeynyan> Chatbot: roulette
23:04 <+Chatbot> click 0
23:04 < Cadeynyan> Chatbot: roulette
23:04 <+Chatbot> click 5
23:05 < Cadeynyan> Chatbot: roulette
23:05 -!- Cadeynyan [cet@cean] has quit [Killed (Chatbot (ROULETTE: KILL: Cadeynyan 2))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.