vrobot4/source/modules/fun.rb

62 lines
3.2 KiB
Ruby
Raw Normal View History

class Mod_Fun < Vrobot4::Module::Module
def self.type() "Fun" end
2017-08-09 02:57:31 -07:00
Vrobot4::Module.add_module_type self
2017-08-09 00:52:34 -07:00
def initialize info
super
register :c_carmack, "carmack", "mmmmmmmmmm"
register :c_revenant, "revenant", "AAAAAAAAA"
register :c_wan, "wan", "wan!"
register :c_nyan, "nyan", "nyan~"
register :c_box, "box", "S H I T P O S T I N G"
register :c_zdoom, "zdoom", "ZDoom™"
register :c_marble, "marble", "mararuaruaruaruarb"
register :c_what, "what", "What the fuck did you just fucking say about"
end
2019-02-23 16:18:39 -08:00
def c_carmack (m, argv) m.reply ?m * (rand(24) + 5) end
def c_revenant(m, argv) m.reply ?A * (rand(24) + 3) end
def c_wan (m, argv) m.reply "wan! " * (rand(10) + 1) end
def c_nyan (m, argv) m.reply "nyan " * (rand(10) + 1) + ?~ end
def c_box m, argv
2019-02-23 16:18:39 -08:00
text = argv + ?\n
raise ArgumentError, "String too long" if argv.length > 30
if argv.length > 2 then for i in (1..argv.length - 2)
2019-02-23 16:18:39 -08:00
text << argv[i] + ?\s * (argv.length - 2) + argv.reverse[i] + ?\n
end end
text << argv.reverse
2017-08-08 04:33:30 -07:00
m.reply_b text
end
def c_zdoom m, argv
2019-02-23 16:18:39 -08:00
m.reply "ZDoom" + ?™ * (rand(15) + 1)
end
def c_marble m, argv
2020-01-16 17:46:18 -08:00
if argv.empty? then n = rand(20)
else n = argv.to_i end
2019-02-23 16:18:39 -08:00
if m.serv.flags.include? ?L and n > 200 then n = 200
2020-01-16 17:46:18 -08:00
elsif n > 1900 then n = 1900 end
2019-02-23 16:18:39 -08:00
text = ?m
2020-01-16 17:46:18 -08:00
n.times do ||
2019-02-23 16:18:39 -08:00
text << [?a, ?r, ?u].sample
end
2019-02-23 16:18:39 -08:00
text << ?b
m.reply text
end
def c_what m, argv
2019-02-23 16:18:39 -08:00
if m.serv.flags.include? ?L
m.reply "What the fuck did you just fucking say about me, you little bitch?"
else
m.reply "What the fuck did you just fucking say about me, you little bitch? I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life. You're fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways, and that's just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit. If only you could have known what unholy retribution your little \"clever\" comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You're fucking dead, kiddo."
end
end
end
## EOF