Nicklason / tf2-automatic

A free and open source, fully automated TF2 trading bot, advertising on backpack.tf using prices from prices.tf
https://tf2automatic.com
MIT License
82 stars 41 forks source link

npm start error #363

Closed SlyK10 closed 4 years ago

SlyK10 commented 4 years ago

npm ERR! missing script: start

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\lalito\AppData\Roaming\npm-cache_logs\2020-03-05T00_12_04_277Z-debug.log

C:\Users\lalito\Documents\GitHub\tf2-automatic>

i can't start the bot for this problem, helpp

idinium96 commented 4 years ago

Please ensure you've done all the steps in the wiki. https://github.com/Nicklason/tf2-automatic/wiki/Installation https://github.com/Nicklason/tf2-automatic/wiki/Configuration https://github.com/Nicklason/tf2-automatic/wiki/Running-the-bot

Also, ensure the template.env file is saved as .env, not as .env.env or etc.

SlyK10 commented 4 years ago

i do

idinium96 commented 4 years ago

Can you give a screenshot of your tf2-automatic folder?

SlyK10 commented 4 years ago

sure aaaaaaaaaa

idinium96 commented 4 years ago

What's that tf2-automatic.env file? 🤔

Enable "Show file extensions" and rename it .env https://www.file-extensions.org/article/show-and-hide-file-extensions-in-windows-10

SlyK10 commented 4 years ago

ready but still not working

idinium96 commented 4 years ago

Try run the bot using node dist/app.js in cmd.

SlyK10 commented 4 years ago

aah, i dont have pm2, I had to use another form of configuration for pm2 and I thought it worked

idinium96 commented 4 years ago

https://github.com/Nicklason/tf2-automatic/wiki/PM2

SlyK10 commented 4 years ago

when i use pm2 startup dont work, [PM2][ERROR] Init system not found C:\Users\Julian\AppData\Roaming\npm\node_modules\pm2\lib\API\Startup.js:210 throw new Error('Init system not found');

idinium96 commented 4 years ago

Please read. read

SlyK10 commented 4 years ago

you can help me with this??

SlyK10 commented 4 years ago

SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse () at new Bot (C:\Users\Julian\Desktop\tf2-automatic\dist\classes\Bot.js:74:72) at C:\Users\Julian\Desktop\tf2-automatic\dist\classes\BotManager.js:75:32 at C:\Users\Julian\Desktop\tf2-automatic\dist\classes\BotManager.js:83:17 at C:\Users\Julian\Desktop\tf2-automatic\node_modules\async\dist\async.js:2159:44 at replenish (C:\Users\Julian\Desktop\tf2-automatic\node_modules\async\dist\async.js:445:21) at iterateeCallback (C:\Users\Julian\Desktop\tf2-automatic\node_modules\async\dist\async.js:429:21) at C:\Users\Julian\Desktop\tf2-automatic\node_modules\async\dist\async.js:326:20 at tryCatcher (C:\Users\Julian\Desktop\tf2-automatic\node_modules\bluebird\js\release\util.js:16:23) at Promise.successAdapter [as _fulfillmentHandler0] (C:\Users\Julian\Desktop\tf2-automatic\node_modules\bluebird\js\release\nodeify.js:22:30) at Promise._settlePromise (C:\Users\Julian\Desktop\tf2-automatic\node_modules\bluebird\js\release\promise.js:601:21) at Promise._settlePromise0 (C:\Users\Julian\Desktop\tf2-automatic\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (C:\Users\Julian\Desktop\tf2-automatic\node_modules\bluebird\js\release\promise.js:729:18) at _drainQueueStep (C:\Users\Julian\Desktop\tf2-automatic\node_modules\bluebird\js\release\async.js:93:12) at _drainQueue (C:\Users\Julian\Desktop\tf2-automatic\node_modules\bluebird\js\release\async.js:86:9) at Async._drainQueues (C:\Users\Julian\Desktop\tf2-automatic\node_modules\bluebird\js\release\async.js:102:5)

idinium96 commented 4 years ago

Ensure the "ALERTS": in ecosystem.json file is set in an array. If you want to enable notification on accepted trades: "ALERTS": ["trade"], If not: "ALERTS": ["none"],

SlyK10 commented 4 years ago

when I tried to change it it was already set to none

Nicklason commented 4 years ago

GitHub is for bugs and feature requests only, not for help setting up the bot. If you need help setting up the bot then just follow the wiki, if you still need help then you can ask in the discord server.