I hereby claim:
- I am ejnshtein on github.
- I am ejnshtein (https://keybase.io/ejnshtein) on keybase.
- I have a public key whose fingerprint is F3D8 50FE 1A54 21A1 4EA4 1678 6B96 0FF3 DFAD 4D6B
To claim this, I am signing this object:
| const a = require('module'); | |
| (async () => { | |
| cons result = await a() | |
| console.log(result) | |
| })() | |
| // or | |
| a.then(result => console.log(result)) |
| const Telegraf = require('./telegraf') | |
| const { bottoken } = require('./conf.json') | |
| const bot = new Telegraf(bottoken) | |
| const pics = [ | |
| 'https://pp.userapi.com/c852032/v852032200/54df2/QYhx-gTOyHM.jpg', | |
| 'https://pp.userapi.com/c852032/v852032200/54e06/XthuKPlyWjY.jpg' | |
| ] | |
| const chatId = 'put here chat id' |
| const crypto = require('crypto') | |
| const decrypt = (text, secret, algorithm = 'aes256') => { | |
| const decipher = crypto.createDecipher(algorithm, secret) | |
| let decrypted = decipher.update(text, 'hex', 'utf8') | |
| decrypted += decipher.final('utf8') | |
| return decrypted | |
| } | |
| /////////////////// | |
| // const crypto = require('crypto') | |
| const encrypt = (text, secret, algorithm = 'aes256') => { |
| bot.start((ctx) => { | |
| if (ctx.chat.id == config.adminID) { | |
| } else | |
| ctx.reply('Привет! Проголодался? У нас есть чем накормить тебя!', makeKeyboard(['📖 Меню', '🛒 Корзина', '📍 Все рестораны'])) | |
| }) | |
| cosnt makeKeyboard = buttons => { | |
| const keyboard = [] | |
| let line = [] | |
| buttons.forEach(button => { |
| const Telegraf = require('telegraf') | |
| const bot = new Telegraf(config.bot.token) | |
| function sleep(timeout) { | |
| return new Promise(resolve => setTimeout(resolve, timeout)) | |
| } | |
| bot.command('debil', async ctx => { | |
| await sleep(5000) | |
| await ctx.reply('ok') |
| const puppeteer = require('puppeteer'); | |
| const fs = require('fs'); | |
| const os = require('os'); | |
| var anime = {}; | |
| async function run(searched) { | |
| searched = searched.replace(';',' '); | |
| // Setup pupeteer | |
| const browser = await puppeteer.launch({ | |
| headless: false, | |
| }); |
I hereby claim:
To claim this, I am signing this object: