Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elsif m.match("PRIVMSG #{channel} :-passthebomb")
- passthebomb=true
- passcount=0
- bomber=m[1,m.index("!")-1]
- s.puts "PRIVMSG #{channel} :Passthebomb game started! #{bomber} has the bomb!"
- elsif m.match("PRIVMSG #{channel} :-pass ")
- if passthebomb and m[1,m.index("!")-1]==bomber
- passcount==passcount+1
- bomber=m[m.index(":-pass ") + 7 .. m.length]
- s.puts "PRIVMSG #{channel} :#{bomber} PRIVMSG #{channel} has the bomb now!"
- else
- s.puts "PRIVMSG #{channel} :You don't have the bomb."
- end
- elsif passcount==4 and rand(4)+1==3
- s.puts "KICK #{channel} #{bomber} :BOOM! Bomb exploded!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement