Advertisement
GatheringDust

CytubeBot FMK Command

Dec 19th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "fmk": function(bot, username, data, fromIRC){
  2.     if(fromIRC)
  3.     return
  4.    
  5.     var a = [] //insert own array
  6.    
  7.     if(data.indexOf("users") != -1){
  8.         a = bot.userlist //I haven't tested if this is correct yet. Once I do a bit more work on this I'll edit the paste if it needs changing
  9.     }
  10.  
  11.     function roll(){
  12.         var i = a[Math.floor(Math.random() * a.length)]
  13.         return i
  14.     }
  15.  
  16.     var f = roll()
  17.     if(f === username){
  18.         f += "    fuck yourself message goes here"
  19.     }
  20.  
  21.     var m = roll()
  22.     if(m === username){
  23.         m += "    marry yourself message goes here"    
  24.     }
  25.     var k = roll()
  26.     if(k === username){
  27.         k += "    kill yourself message goes here"
  28.     }
  29.    
  30.     bot.sendChatMsg("[Fuck Marry Kill]\n`  Fuck: `" + f + \n + "` Marry: `" + m + \n + "`  Kill: `" + k)
  31.     return
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement