Advertisement
Guest User

Untitled

a guest
Mar 21st, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. var api;
  2. var onCooldown = true;
  3.  
  4. function handleMsg(data) {
  5. if (data.msg.toLowerCase().startsWith("!meme")) {
  6. var responses = [
  7. "Keek Moneybags",
  8. "thicc",
  9. "fat Penny tits",
  10. "Jarg draw muh ohsee",
  11. "muh OC",
  12. "mayo sea",
  13. "Sharks draw bara",
  14. "Let's quest!",
  15. "*drink",
  16. "*pet",
  17. "yay",
  18. "you meme loving fucks",
  19. "Square up",
  20. "smh tbh fam",
  21. "*tosses flash bang grenade*",
  22. "Hopes and Dreams and Thighs",
  23. "I s2g",
  24. "I'm a qt!",
  25. "fite me",
  26. "oh no",
  27. "lewdie",
  28. "Coco Pummel",
  29. "Waffuls a lewdie",
  30. "femAsriel's thunder thighs",
  31. "moneysisters",
  32. "I'm a robot!",
  33. "flashbangs for Cows!",
  34. "H cup crotchtits",
  35. "kissu",
  36. "Can't stop the helicopter!",
  37. "ha gotem",
  38. "CocoBot is not for lewd",
  39. "bestest dreshus",
  40. "*horse noises*",
  41. "Panic!",
  42. "Sharks let's art trade",
  43. "Locku a lewdie",
  44.  
  45. ];
  46. api.Messages.send(responses[Math.floor(Math.random() * responses.length)], data.channel);
  47. }
  48. if (onCooldown) return;
  49. var nice_blog = [
  50. "bye guys",
  51. "be back later",
  52. "brb",
  53. ];
  54. nice_blog.forEach(function (item) {
  55. if (data.msg.toLowerCase().indexOf(item) !== -1) {
  56. onCooldown = true;
  57. setTimeout(function() { onCooldown = false; }, 5 )
  58. api.Messages.send("Ok, see you later!", data.channel);
  59. }
  60. });
  61. if (data.msg.toLowerCase().startsWith("wew") && data.msg.toLowerCase().indexOf("lad") === -1) {
  62. api.Messages.send("lad", data.channel);
  63. } else if (data.msg.toLowerCase().startsWith("lad") && data.msg.toLowerCase().indexOf("wew") === -1) {
  64. api.Messages.send("wew", data.channel);
  65. }
  66. if (data.msg.toLowerCase().startsWith("ayy") && data.msg.toLowerCase().indexOf("lmao") === -1) {
  67. api.Messages.send("lmao", data.channel);
  68. } else if (data.msg.toLowerCase().startsWith("lmao") && data.msg.toLowerCase().indexOf("ayy") === -1) {
  69. api.Messages.send("ayy", data.channel);
  70. }
  71. }
  72. module.exports = {
  73. meta_inf: {
  74. name: "SHITPOSTING",
  75. version: "1.0.0",
  76. description: "SHITPOSTING",
  77. author: "Wolvan"
  78. },
  79. load: function (_api) {
  80. api = _api;
  81. },
  82. start: function () {
  83. api.Events.on("userMsg", handleMsg);
  84. },
  85. stop: function () {
  86. api.Events.removeListener("userMsg", handleMsg);
  87. }
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement