Advertisement
Amm_

Untitled

Mar 21st, 2016
317
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 (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. onCooldown = true;
  48. setTimeout(function() { onCooldown = false; }, 5 );
  49. return;
  50. }
  51. if (onCooldown) return;
  52. var nice_blog = [
  53. "bye guys",
  54. "be back later",
  55. "brb",
  56. ];
  57. nice_blog.forEach(function (item) {
  58. if (data.msg.toLowerCase().indexOf(item) !== -1) {
  59. onCooldown = true;
  60. setTimeout(function() { onCooldown = false; }, 5 )
  61. api.Messages.send("Ok, see you later!", data.channel);
  62. }
  63. });
  64. if (data.msg.toLowerCase().startsWith("wew") && data.msg.toLowerCase().indexOf("lad") === -1) {
  65. api.Messages.send("lad", data.channel);
  66. } else if (data.msg.toLowerCase().startsWith("lad") && data.msg.toLowerCase().indexOf("wew") === -1) {
  67. api.Messages.send("wew", data.channel);
  68. }
  69. if (data.msg.toLowerCase().startsWith("ayy") && data.msg.toLowerCase().indexOf("lmao") === -1) {
  70. api.Messages.send("lmao", data.channel);
  71. } else if (data.msg.toLowerCase().startsWith("lmao") && data.msg.toLowerCase().indexOf("ayy") === -1) {
  72. api.Messages.send("ayy", data.channel);
  73. }
  74. }
  75. module.exports = {
  76. meta_inf: {
  77. name: "SHITPOSTING",
  78. version: "1.0.0",
  79. description: "SHITPOSTING",
  80. author: "Wolvan"
  81. },
  82. load: function (_api) {
  83. api = _api;
  84. },
  85. start: function () {
  86. api.Events.on("userMsg", handleMsg);
  87. },
  88. stop: function () {
  89. api.Events.removeListener("userMsg", handleMsg);
  90. }
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement