Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. elsif m.match("PRIVMSG #{channel} :-passthebomb")
  2. passthebomb=true
  3. passcount=0
  4. bomber=m[1,m.index("!")-1]
  5. s.puts "PRIVMSG #{channel} :Passthebomb game started! #{bomber} has the bomb!"
  6.  
  7. elsif m.match("PRIVMSG #{channel} :-pass ")
  8. if passthebomb and m[1,m.index("!")-1]==bomber
  9. passcount==passcount+1
  10. bomber=m[m.index(":-pass ") + 7 .. m.length]
  11. s.puts "PRIVMSG #{channel} :#{bomber} PRIVMSG #{channel} has the bomb now!"
  12. else
  13. s.puts "PRIVMSG #{channel} :You don't have the bomb."
  14. end
  15.  
  16. elsif passcount==4 and rand(4)+1==3
  17. s.puts "KICK #{channel} #{bomber} :BOOM! Bomb exploded!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement