Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmd.hear(/^(?:Курсор)\s?(.*)?$/i, async (message, bot) => {
  2. message.user.up.cursor = 1;
  3. message.user.up.cursor_count += 1;
  4. message.user.balance -= 100;
  5. message.user.click += 0.5;
  6. return bot(`✔ Вы купили улучшение 'Курсор'.
  7. 💻 За один клик вы получаете: ${message.user.click}` , {
  8.  
  9.     attachment: "photo161880759_456240904"
  10. },
  11.         {
  12.             keyboard:JSON.stringify(
  13.         {
  14.             "one_time": false,
  15.             "buttons": [
  16.             [{
  17.                 "action": {
  18.                 "type": "text",
  19.                 "payload": "{\"button\": \"1\"}",
  20.                 "label": "💻 Улучшения к кликам"
  21.         },
  22.             "color": "positive"
  23.         },
  24.         {
  25.                 "action": {
  26.                 "type": "text",
  27.                 "payload": "{\"button\": \"2\"}",
  28.                 "label": "Магазин"
  29.         },
  30.             "color": "primary"
  31.         },
  32.         {
  33.                 "action": {
  34.                 "type": "text",
  35.                 "payload": "{\"button\": \"3\"}",
  36.                 "label": "Назад"
  37.         },
  38.             "color": "primary"
  39.         }
  40. ]
  41.         ]
  42.             })
  43. });
  44. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement