N
N
New_Coder_20222022-03-15 16:09:49
Node.js
New_Coder_2022, 2022-03-15 16:09:49

What should I do if I get "internal/modules/cjs/loader.js:965 throw err;" when running the script?

I am writing a game bot in VK, Bot
script


console.log (`Aura Bot, launched successfully!`)
console.log (`Script developer: Timofey`)
console.log (`Script coder: Timofey`)
const { VK } = require ( `vk-io`);
const vk = new VK();
const commands = [];
const markup = (markup);
let setting = require(`/database/setting.json`)
let users = require(`/database/users.json`)
let mapkup = require(`/database/Markup.json`)
setOptions(token: `setting.json `,pollingGroupId:210581835,)

cmd.hear(/^(?:Profile|prof| Profile)$/i,async (message,bot) => {
let text = `
text += {message.user.name}, profile
text += Nickname: ${message.user.tag}\n
text += ID: ${message.user.uid}\n
text += VK URL: vk.com/${message.user.id}\n
text += ✨ Privilege: ${message.user.privileg}\ n
text += Status: ${message.user.stat}\n
text += Clan: ${message.user.clan}\n
text += Balance: ${message.user.balance}\n
text += Bitcoins : ${message.user.btc}\n

text += \n⚕ Property:
${cars[message.user.cars - 1].name}
${homes[message.user.homes - 1].name}
$ {airplanes[message.user.airplanes - 1].name}
${businesses[message.user.biz - 1].name}
${businesses2[message.user.biz2 - 1].name]}\n
text += \n Registration date: ${message.user.regDate}\n`
});

cmd.hear(/^(?:Bot|Stats| Statistics)$/i, async (message,bot) => {
let text = `${message.user.name},stats
[] Bot: @aura_bot_vk (Aura Bot|Game Bot)
[] Total Balance: ${utils.sp()message.user.balance}
[] Total Bitcoin Balance: ${utils.sp()message.user.btc}
[] Users in Bot: ${ utils.sp()message.user}`
});

cmd.hear(/^(?:Balance|balance| Balance)$/i, async (message,bot) => {
let text = `${message.user.name},your balance
Balance: ${message.user .balance}`
});

cmd.hear(/^(?:Bitcoin|Bitcoin|Bitcoin)$/i, async (message,bot) => {
let text = `${message.user.name},your bitcoin balance
Bitcoins: ${message. user.btc}`
});
let keyboard_toster = Markup.keyboard([
[
Markup.button(' Profile', 'positive')
],
[
Markup.button(' Statistics', 'negative')
],
[
Markup.button(` Balance`, `primary` )
],
[
Markup.button(` Bitcoins`,`White`)
],
[
Markup.button(`Help`, `positive`)
])

cmd.hear(/^(?:Help|help|Help)$/ i,async (message,bot) => {
let text = `${message.user.name},you are in the "Help" section
Useful:
Profile - view your profile
Balance - view your
balance
Statistics - find out information about the bot
Help - view the commands of the bot
Report - write a complaint/suggestion`
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question