const mysql = require('mysql');
const { VK, MarketAttachment,Attachment, Keyboard } = require('vk-io');
const vk = new VK();
let user = new VK();
const keyboard = Keyboard;
const http = require('http');
const request = require("prequest");
const requests = require("request");
const rq = require("prequest");
const fs = require("fs");;
const https = require('https');
const QuestionManager = require('vk-io-question');
const questionManager = new QuestionManager();
var randomstring = require("randomstring");
var Filter = require('bad-words'),
filter = new Filter();
const { snippets } = vk;
const plural = require('plural-ru');
user.setOptions({
token: 'здесь ваш токен'
});
var bot = {
accounts: {},
mysql: {
db: null,
connect: async function() {
bot.mysql.db = mysql.createPool({
host: 'хост',
user: 'пользователь',
password: 'пароль',
database: 'название базы',
charset: 'utf8mb4_general_ci',
connectionLimit: 100
});
/root/node_modules/vk-io/lib/index.js:9481
this.callbackService = options.callbackService
^
TypeError: Cannot read property 'callbackService' of undefined
at new VK (/root/node_modules/vk-io/lib/index.js:9481:40)
at Object.<anonymous> (/root/bot.js:3:12)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47