corral

boots

Aug 31st, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. var x = "";
  2. var b = (new Date()).toUTCString()
  3.  
  4. var message=function(e,x){
  5. var a = ['Raiden-18','Gin no Saji','Hyakushou Kizoku','Juushin Enbu','Souten no Koumori','Stray Dog','Demons of Shanghai','Arslan Senki','Hagane no Renkinjutsushi'];
  6. var random = a[Math.floor(Math.random()*a.length)];
  7. if(x.is_me){
  8. return;
  9. }
  10. if(x.message=="@"+profile.name||x.message=="@"+profile.name + " "||x.message==profile.name){
  11. $.ajax({
  12. type: "POST",
  13. data: {message: "/me says: she sells seashells by the seashore"}
  14. });
  15. }
  16. else if(x.message=="@topic"){
  17. $.ajax({
  18. type: "POST",
  19. data: {message:"/me" + room.description}
  20. });
  21. }
  22. else if(x.message=="idk"){
  23. $.ajax({
  24. type: "POST",
  25. data: {message:"/me ┐( ̄- ̄;)┌"}
  26. });
  27. }
  28. else if(x.message=="@time"){
  29. $.ajax({
  30. type: "POST",
  31. data: {message:"/me current time: "+ b}
  32. });
  33. }
  34. else if(x.message=="@manga"){
  35. $.ajax({
  36. type: "POST",
  37. data: {message:"/me try this nice manga!: "+ random}
  38. });
  39. }
  40. }
  41. $(window).on('room.chat.message',message);
Add Comment
Please, Sign In to add comment