• Данный материал предоставлен сайтом исключительно в ознакомительных целях.
    Администрация не несет ответственности за его содержимое. По всем жалобам пишите на почту abusevhguru@yandex.ru

Помогите с ботом!

Dr_vidjet

Новичок
Сообщения
0
Реакции
0

Dr_vidjet

  • 0
  • 0
через него должно все запускатся , посмотри в самом app.js должен быть реквест этого bot.js он просто может быть закоментирован
Там возник у меня один вопрос. Напиши пожалуйста мне в вк: bunt1717. Там проще поговорить будет
 

mihadm

Пользователь
Сообщения
63
Реакции
3

mihadm

  • 63
  • 3
Здравствуйте уважаемые пользователи форума.
Помогите пожалуйста с запуском бота.
после запуска бота pm2 start bot.js
В логах пишет

0|bot | at Object.Module._extensions..js (module.js:478:10)
0|bot | /var/www/html/bot/node_modules/steam-totp/index.js:22
0|bot | exports.getTimeOffset((err, offset, latency) => {
0|bot | ^^
0|bot | SyntaxError: Unexpected token =>
0|bot | at exports.runInThisContext (vm.js:73:16)
0|bot | at Module._compile (module.js:443:25)
0|bot | at Object.Module._extensions..js (module.js:478:10)
0|bot | at Module.load (module.js:355:32)
0|bot | at Function.Module._load (module.js:310:12)
0|bot | at Module.require (module.js:365:17)
0|bot | at require (module.js:384:17)
0|bot | at Object.<anonymous> (/var/www/html/bot/bot.js:2:17)
0|bot | at Module._compile (module.js:460:26)
0|bot | at Object.Module._extensions..js (module.js:478:10)

0|bot | /var/www/html/bot/node_modules/steam-totp/index.js:22
0|bot | exports.getTimeOffset((err, offset, latency) => {
0|bot | ^^
0|bot | SyntaxError: Unexpected token =>
0|bot | at exports.runInThisContext (vm.js:73:16)
0|bot | at Module._compile (module.js:443:25)
0|bot | at Object.Module._extensions..js (module.js:478:10)
0|bot | at Module.load (module.js:355:32)
0|bot | at Function.Module._load (module.js:310:12)
0|bot | at Module.require (module.js:365:17)
0|bot | at require (module.js:384:17)
0|bot | at Object.<anonymous> (/var/www/html/bot/bot.js:2:17)
0|bot | at Module._compile (module.js:460:26)
0|bot | at Object.Module._extensions..js (module.js:478:10)
0|bot | /var/www/html/bot/node_modules/steam-totp/index.js:22
0|bot | exports.getTimeOffset((err, offset, latency) => {
0|bot | ^^
0|bot | SyntaxError: Unexpected token =>
0|bot | at exports.runInThisContext (vm.js:73:16)
0|bot | at Module._compile (module.js:443:25)
0|bot | at Object.Module._extensions..js (module.js:478:10)
0|bot | at Module.load (module.js:355:32)
0|bot | at Function.Module._load (module.js:310:12)
0|bot | at Module.require (module.js:365:17)
0|bot | at require (module.js:384:17)
0|bot | at Object.<anonymous> (/var/www/html/bot/bot.js:2:17)
0|bot | at Module._compile (module.js:460:26)
0|bot | at Object.Module._extensions..js (module.js:478:10)
Подскажите пожалуйста с чего тут начинать исправлять.
 

gamaleev0071

Местный
Сообщения
65
Реакции
10

gamaleev0071

  • 65
  • 10
cb
Здравствуйте уважаемые пользователи форума.
Помогите пожалуйста с запуском бота.
после запуска бота pm2 start bot.js
В логах пишет

0|bot | at Object.Module._extensions..js (module.js:478:10)
0|bot | /var/www/html/bot/node_modules/steam-totp/index.js:22
0|bot | exports.getTimeOffset((err, offset, latency) => {
0|bot | ^^
0|bot | SyntaxError: Unexpected token =>
0|bot | at exports.runInThisContext (vm.js:73:16)
0|bot | at Module._compile (module.js:443:25)
0|bot | at Object.Module._extensions..js (module.js:478:10)
0|bot | at Module.load (module.js:355:32)
0|bot | at Function.Module._load (module.js:310:12)
0|bot | at Module.require (module.js:365:17)
0|bot | at require (module.js:384:17)
0|bot | at Object.<anonymous> (/var/www/html/bot/bot.js:2:17)
0|bot | at Module._compile (module.js:460:26)
0|bot | at Object.Module._extensions..js (module.js:478:10)

0|bot | /var/www/html/bot/node_modules/steam-totp/index.js:22
0|bot | exports.getTimeOffset((err, offset, latency) => {
0|bot | ^^
0|bot | SyntaxError: Unexpected token =>
0|bot | at exports.runInThisContext (vm.js:73:16)
0|bot | at Module._compile (module.js:443:25)
0|bot | at Object.Module._extensions..js (module.js:478:10)
0|bot | at Module.load (module.js:355:32)
0|bot | at Function.Module._load (module.js:310:12)
0|bot | at Module.require (module.js:365:17)
0|bot | at require (module.js:384:17)
0|bot | at Object.<anonymous> (/var/www/html/bot/bot.js:2:17)
0|bot | at Module._compile (module.js:460:26)
0|bot | at Object.Module._extensions..js (module.js:478:10)
0|bot | /var/www/html/bot/node_modules/steam-totp/index.js:22
0|bot | exports.getTimeOffset((err, offset, latency) => {
0|bot | ^^
0|bot | SyntaxError: Unexpected token =>
0|bot | at exports.runInThisContext (vm.js:73:16)
0|bot | at Module._compile (module.js:443:25)
0|bot | at Object.Module._extensions..js (module.js:478:10)
0|bot | at Module.load (module.js:355:32)
0|bot | at Function.Module._load (module.js:310:12)
0|bot | at Module.require (module.js:365:17)
0|bot | at require (module.js:384:17)
0|bot | at Object.<anonymous> (/var/www/html/bot/bot.js:2:17)
0|bot | at Module._compile (module.js:460:26)
0|bot | at Object.Module._extensions..js (module.js:478:10)
Подскажите пожалуйста с чего тут начинать исправлять.
синтаксическая ошибка , обнови nodejs до последней версии
 

mihadm

Пользователь
Сообщения
63
Реакции
3

mihadm

  • 63
  • 3
cb

синтаксическая ошибка , обнови nodejs до последней версии
Спасибо за ответ!
Но теперь такое:
0|bot | Error: Cannot find module 'steamcommunity'
0|bot | at Function.Module._resolveFilename (module.js:543:15)
0|bot | at Function.Module._load (module.js:470:25)
0|bot | at Module.require (module.js:593:17)
0|bot | at require (internal/module.js:11:18)
0|bot | at Object.<anonymous> (/var/www/html/bot/bot.js:12:22)
0|bot | at Module._compile (module.js:649:30)
0|bot | at Object.Module._extensions..js (module.js:660:10)
0|bot | at Module.load (module.js:561:32)
0|bot | at tryModuleLoad (module.js:501:12)
0|bot | at Function.Module._load (module.js:493:3)
 

mihadm

Пользователь
Сообщения
63
Реакции
3

mihadm

  • 63
  • 3
cb

синтаксическая ошибка , обнови nodejs до последней версии
Хотя все модули установлены:
npm install steam
npm install steam-community
npm install steam-user
npm install fs
npm install steam-totp
npm install crypto
npm install steam-weblogon
npm install steam-web-api-key
npm install steam-tradeoffers@2.2.0
npm install mysql
npm install steamcommunity-mobile-confirmations
npm install socket.io
npm install express
npm install http-auth
npm install http
npm install redis
npm install .bin - (Ошибка при установке)
npm install supervisor
npm install fs-extra
npm install scribe-js
npm install requestify
 

gamaleev0071

Местный
Сообщения
65
Реакции
10

gamaleev0071

  • 65
  • 10
npm install steam-community
т.е у тебя создается папка steam-community
а в подключениях у тебя steamcommunity
 
Сверху