Advertisement
Guest User

Untitled

a guest
Aug 25th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. const { VK, Keyboard } = require('vk-io');
  2. const bot = new VK();
  3.  
  4. const utils = {
  5. random: (x, y) => { return y ? Math.round(Math.random() * (y - x)) + x : Math.round(Math.random() * x) },
  6. pick: (array) => { return array[utils.random(0, array.length - 1)] }
  7. }
  8.  
  9. bot.setOptions({ 'pollingGroupId': 160265679, 'apiMode': 'parallel' });
  10. bot.setToken('3c249f001932fd781baf72f3d22de95a77bde8dd949dbd6a6951e562d8d55f866cc5e2acf6b7bf2655bf0');
  11.  
  12. const { updates } = bot;
  13.  
  14. const hearts = ['??', '??', '??', '??', '??', '??', '??', '????', '??', '??', '??', '??', '??', '??', '??', '??', '??', '??', '???+?', '??', '??', '??', '??', '??', '?', '??', '??', '??', '??', '??', '?', '?', '?', '??', '??', '??', '?', '??', '??', '??', '??', '??', '??', '??', '??', '??', '??', '??', '??', '??'];
  15. const messages = `ГАВНО))))))))))))),ЖОПА)))))))))))))))))),ЭЩКЕРЕ)),БОМБИЛА КРУТОЙ БОТ))))),ЧТО ТЫ ДЕЛАЕШЬ АААААААА,ХАХАХАХАХА,ПРИВЕТ))))))))))))))))),ЧТО ДЕЛАЕМ?????????,??????????????????????????????????`.split(',');
  16. const buttons = `йцукенгшщзхъъфывапролджэячсмитьбюqwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*()-_=\\|/.,<>[]{}"':;?~\`№`.split('');
  17. const colors = [Keyboard.PRIMARY_COLOR, Keyboard.NEGATIVE_COLOR, Keyboard.POSITIVE_COLOR];
  18. const attachments = ['photo-160265679_456239304'];
  19.  
  20. updates.startPolling();
  21. updates.on('message', async (message) => {
  22. if(message.isOutbox) return;
  23. if(!message.isChat) return message.send('неа!!!!! атаковать можно только в беседе. добавь меня в беседу и упомяни меня!').catch((err) => {});
  24.  
  25. let a = setInterval(async () => {
  26. message.send(utils.pick(messages).repeat(25), {
  27. 'keyboard': Keyboard.keyboard([
  28. [
  29. Keyboard.textButton({
  30. 'label': utils.pick(buttons),
  31. 'color': utils.pick(colors)
  32. }),
  33. Keyboard.textButton({
  34. 'label': utils.pick(buttons),
  35. 'color': utils.pick(colors)
  36. }),
  37. Keyboard.textButton({
  38. 'label': utils.pick(buttons),
  39. 'color': utils.pick(colors)
  40. }),
  41. Keyboard.textButton({
  42. 'label': utils.pick(buttons),
  43. 'color': utils.pick(colors)
  44. })
  45. ],
  46. [
  47. Keyboard.textButton({
  48. 'label': utils.pick(buttons),
  49. 'color': utils.pick(colors)
  50. }),
  51. Keyboard.textButton({
  52. 'label': utils.pick(buttons),
  53. 'color': utils.pick(colors)
  54. }),
  55. Keyboard.textButton({
  56. 'label': utils.pick(buttons),
  57. 'color': utils.pick(colors)
  58. }),
  59. Keyboard.textButton({
  60. 'label': utils.pick(buttons),
  61. 'color': utils.pick(colors)
  62. })
  63. ],
  64. [
  65. Keyboard.textButton({
  66. 'label': utils.pick(buttons),
  67. 'color': utils.pick(colors)
  68. }),
  69. Keyboard.textButton({
  70. 'label': utils.pick(buttons),
  71. 'color': utils.pick(colors)
  72. }),
  73. Keyboard.textButton({
  74. 'label': utils.pick(buttons),
  75. 'color': utils.pick(colors)
  76. }),
  77. Keyboard.textButton({
  78. 'label': utils.pick(buttons),
  79. 'color': utils.pick(colors)
  80. })
  81. ],
  82. [
  83. Keyboard.textButton({
  84. 'label': utils.pick(buttons),
  85. 'color': utils.pick(colors)
  86. }),
  87. Keyboard.textButton({
  88. 'label': utils.pick(buttons),
  89. 'color': utils.pick(colors)
  90. }),
  91. Keyboard.textButton({
  92. 'label': utils.pick(buttons),
  93. 'color': utils.pick(colors)
  94. }),
  95. Keyboard.textButton({
  96. 'label': utils.pick(buttons),
  97. 'color': utils.pick(colors)
  98. })
  99. ],
  100. [
  101. Keyboard.textButton({
  102. 'label': utils.pick(buttons),
  103. 'color': utils.pick(colors)
  104. }),
  105. Keyboard.textButton({
  106. 'label': utils.pick(buttons),
  107. 'color': utils.pick(colors)
  108. }),
  109. Keyboard.textButton({
  110. 'label': utils.pick(buttons),
  111. 'color': utils.pick(colors)
  112. }),
  113. Keyboard.textButton({
  114. 'label': utils.pick(buttons),
  115. 'color': utils.pick(colors)
  116. })
  117. ],
  118. [
  119. Keyboard.textButton({
  120. 'label': utils.pick(buttons),
  121. 'color': utils.pick(colors)
  122. }),
  123. Keyboard.textButton({
  124. 'label': utils.pick(buttons),
  125. 'color': utils.pick(colors)
  126. }),
  127. Keyboard.textButton({
  128. 'label': utils.pick(buttons),
  129. 'color': utils.pick(colors)
  130. }),
  131. Keyboard.textButton({
  132. 'label': utils.pick(buttons),
  133. 'color': utils.pick(colors)
  134. })
  135. ],
  136. [
  137. Keyboard.textButton({
  138. 'label': utils.pick(buttons),
  139. 'color': utils.pick(colors)
  140. }),
  141. Keyboard.textButton({
  142. 'label': utils.pick(buttons),
  143. 'color': utils.pick(colors)
  144. }),
  145. Keyboard.textButton({
  146. 'label': utils.pick(buttons),
  147. 'color': utils.pick(colors)
  148. }),
  149. Keyboard.textButton({
  150. 'label': utils.pick(buttons),
  151. 'color': utils.pick(colors)
  152. })
  153. ],
  154. [
  155. Keyboard.textButton({
  156. 'label': utils.pick(buttons),
  157. 'color': utils.pick(colors)
  158. }),
  159. Keyboard.textButton({
  160. 'label': utils.pick(buttons),
  161. 'color': utils.pick(colors)
  162. }),
  163. Keyboard.textButton({
  164. 'label': utils.pick(buttons),
  165. 'color': utils.pick(colors)
  166. }),
  167. Keyboard.textButton({
  168. 'label': utils.pick(buttons),
  169. 'color': utils.pick(colors)
  170. })
  171. ],
  172. [
  173. Keyboard.textButton({
  174. 'label': utils.pick(buttons),
  175. 'color': utils.pick(colors)
  176. }),
  177. Keyboard.textButton({
  178. 'label': utils.pick(buttons),
  179. 'color': utils.pick(colors)
  180. }),
  181. Keyboard.textButton({
  182. 'label': utils.pick(buttons),
  183. 'color': utils.pick(colors)
  184. }),
  185. Keyboard.textButton({
  186. 'label': utils.pick(buttons),
  187. 'color': utils.pick(colors)
  188. })
  189. ],
  190. [
  191. Keyboard.textButton({
  192. 'label': utils.pick(buttons),
  193. 'color': utils.pick(colors)
  194. }),
  195. Keyboard.textButton({
  196. 'label': utils.pick(buttons),
  197. 'color': utils.pick(colors)
  198. }),
  199. Keyboard.textButton({
  200. 'label': utils.pick(buttons),
  201. 'color': utils.pick(colors)
  202. }),
  203. Keyboard.textButton({
  204. 'label': `СЕКРЕТ`,
  205. 'color': utils.pick(colors)
  206. })
  207. ]
  208. ]),
  209. 'attachment': utils.pick(attachments)
  210. }).catch((err) => {});
  211. }, 600);
  212.  
  213. setTimeout(async () => {
  214. clearInterval(a);
  215. message.send('атака закончена, конфе пизда, by ДАЛЬНОБОЙЩИК ПО БЕСЕДАМ').catch((err) => {});
  216. }, 25000);
  217. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement