Advertisement
Amm_

Untitled

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