Giter Club home page Giter Club logo

tf2-automatic's Introduction

tf2-automatic

THIS REPOSITORY IS ARCHIVED. PLEASE USE TF2AUTOBOT INSTEAD!

A free and open source fully automated TF2 trading bot advertising on www.backpack.tf using prices from www.prices.tf

GitHub package version Build Status GitHub issues GitHub forks GitHub stars Discord

Before you install the bot, there are a few things you need to have taken care off before you will be able to run the bot.

  • You need a separate Steam account with a mobile authenticator. I suggest using the Steam Desktop Authenticator to authenticate the account and get the secret keys used to automate generating 2FA codes and managing mobile confirmations.
  • NodeJS version 8 or more
  • Typescript 3.7 or above

Please refer to the wiki for setting up the bot. For additional help and questions, please ask in the TF2 Automatic Discord server or create an issue.

Download and installation

You can clone or download the bot by clicking on the green button in the top right, follow the installation guide for more instructions.

Configuration

Once you have downloaded the source and installed the necessary packages, you can move on to configuring the bot. Follow the configuration guide.

tf2-automatic's People

Contributors

cubityfirst avatar danocmx avatar hhanuska avatar icekwibby avatar idinium96 avatar lexidor avatar mekalboy avatar nicklason avatar viggojonasson avatar zeckatz avatar zeusjunior avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tf2-automatic's Issues

Error: spawn ENOMEM

Help me ok.

0|bot | crash: Automatic.version: 1.7.26; node: v8.10.0 linux x64; Contact: 76561198846789568
0|bot | crash: Stack trace:
0|bot | { Error: spawn ENOMEM
0|bot | at _errnoException (util.js:1022:11)
0|bot | at ChildProcess.spawn (internal/child_process.js:323:11)
0|bot | at Object.exports.spawn (child_process.js:502:9)
0|bot | at Function.spawn (/bots/tf2automatic/node_modules/cross-spawn/index.js:87:19)
0|bot | at spawnPhantom (/bots/tf2automatic/node_modules/webshot/lib/webshot.js:201:32)
0|bot | at spawn (/bots/tf2automatic/node_modules/webshot/lib/webshot.js:105:14)
0|bot | at /bots/tf2automatic/node_modules/webshot/lib/webshot.js:117:16
0|bot | at FSReqWrap.cb [as oncomplete] (fs.js:312:19) code: 'ENOMEM', errno: 'ENOMEM', syscall: 'spawn' }

Bot creates an offer with metal even though there are enough keys

!price buzz
M_BOT: I am buying a The Buzz Killer for 20 ref and selling for 1 key. I have 2 / 1 (last updated 08-11-2018 23:26:46 +0000).
M_SERVER ✅ trade.tf: !buy The Buzz Killer
M_BOT: Please wait while I process your offer! You will be offered 1 The Buzz Killer for your 1 key.
Your offer has been made, please wait while I accept the mobile confirmation.
And I get an offer:
New offer #3362178254 from M_BOT. They offer: The Buzz Killer for my 39.89 metal

Solved

How do I change the bot name?

Plez do this nick

}
else if (message.match("!avatar") && steamID == ownerID) {
message = message.replace("!avatar ", "");
var image = message
community.uploadAvatar(image)
}

}
else if (message.match("!name") && steamID == ownerID) {
message = message.replace("!name ", "");
var realname = message
client.setPersona(1, realname)
var realname = realname.toString();
}
to your bot

TypeError: Cannot read property 'id' of undefined

23-08-2018 17:56:15 - error: tf2-automatic crashed! Please create an issue with the following log:
crash: Automatic.version: 1.7.26; node: v8.11.3 linux arm; Contact: 76561198802391456
crash: Stack trace:
TypeError: Cannot read property 'id' of undefined
at Listings. (/home/pi/tf2-automatic/node_modules/bptf-listings/lib/requests.js:161:25)
at Request._callback (/home/pi/tf2-automatic/node_modules/bptf-listings/lib/http.js:27:26)
at Request.self.callback (/home/pi/tf2-automatic/node_modules/bptf-listings/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/home/pi/tf2-automatic/node_modules/bptf-listings/node_modules/request/request.js:1157:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Gunzip. (/home/pi/tf2-automatic/node_modules/bptf-listings/node_modules/request/request.js:1079:12)
at Object.onceWrapper (events.js:313:30)
23-08-2018 17:56:15 - error: Create an issue here: https://github.com/Nicklason/tf2-automatic/issues/new

Option to disallow overpay

A small suggestion:

If possible it would be nice to have an option within the config file that would allow the bot owners to allow/disallow overpay on the bot trades.

Bot accepted more items than it should have

Hi there!

My bot has recently sent a trade that I believe shouldn't have because the purchased items would exceed the defined stock. This happened with the !sell command, cannot confirm if this happens also via trade offer.

Reply of the bot to the !price command (as you can see, stock was set to two): I am buying a Battle-Worn Robot Taunt Processor for 0.55 ref and selling for 0.66 ref. I have 23 / 2 (last updated 05-12-2018 14:19:43 +0000).
Trade: https://tf2automatic.com/trades?id=5c08417bd990a12e9785862a

05-12-2018 11:20:57 - info: Message from Scuram (76561198146073716): !sell 23 Battle-Worn Robot Taunt Processor
05-12-2018 11:20:57 - debug: Adding requested offer to queue
05-12-2018 11:20:57 - debug: Found an offer in the queue, processing it now.
05-12-2018 11:20:57 - info: Handling requested offer from 76561198146073716
05-12-2018 11:20:59 - info: Message sent to Scuram (76561198146073716): Please wait while I process your offer! You will be offered 12.77 ref for your 23 Battle-Worn Robot Taunt Processor(s).

I believe this happened also to other tf2automatic owners and was forwarded on Discord but I've decided to report it here to make it easier to spot rather than on channels logs.

issue

crash: Automatic.version: 1.10.4; node: v10.10.0 win32 x64; Contact: 76561198860391071
crash: Stack trace:
{ Error: EMFILE: too many open files, open 'temp/listings.json'
at Object.openSync (fs.js:436:3)
at Object.readFileSync (fs.js:341:35)
at Object.exports.init (C:\Users\ПК\Desktop\tf2-automatic-master\app\prices.js:32:46)
at C:\Users\ПК\Desktop\tf2-automatic-master\app\client.js:209:20
at C:\Users\ПК\Desktop\tf2-automatic-master\node_modules\async\dist\async.js:3866:24
at replenish (C:\Users\ПК\Desktop\tf2-automatic-master\node_modules\async\dist\async.js:998:17)
at iterateeCallback (C:\Users\ПК\Desktop\tf2-automatic-master\node_modules\async\dist\async.js:983:17)
at C:\Users\ПК\Desktop\tf2-automatic-master\node_modules\async\dist\async.js:958:16
at C:\Users\ПК\Desktop\tf2-automatic-master\node_modules\async\dist\async.js:3871:13
at C:\Users\ПК\Desktop\tf2-automatic-master\app\backpacktf.js:52:13
errno: -4066,
syscall: 'open',
code: 'EMFILE',
path: 'temp/listings.json' }

Make the Bot bump only active listings

Well its really when i have buy orders for 50+ unusual taunts but I want to buy unique things but have pure enough for them. It would be cool if i dont have to force remove them all, please add this asap

[Enhancement] Update message sent when offer is active

After the new Steam UI rolled out, it would probably be more user-friendly and nicer to replace

Automatic.message(offer.partner, 'The offer is now active! You can accept it here: https://steamcommunity.com/tradeoffer/' + offerid + '/'); @ https://github.com/Nicklason/tf2-automatic/blob/master/app/trade.js#L254

with

Automatic.message(offer.partner, 'The offer is now active! You can accept it by clicking 'View trade offer' above);

https://gyazo.com/98980338ed4b65cb1b0bfb83657850d1

Stock always=1

[2:29]M: !update name=Genuine Bonk Helm&stock=2
[2:29]M_BOT: Updated Genuine Bonk Helm.
[2:29]M: !price Genuine Bonk Helm
[2:29]M_BOT: I am buying a Genuine Bonk Helm for 26 ref and selling for 1 key. I have 0 / 1 (last pdated 18-01-2019 00:29:26 +0000).
[2:31]M: !update name=Genuine Bonk Helm&stock=4
[2:31]M_BOT: Updated Genuine Bonk Helm.
[2:31]M: !price Genuine Bonk Helm
[2:31]M_BOT: I am buying a Genuine Bonk Helm for 26 ref and selling for 1 key. I have 0 / 1 (last pdated 18-01-2019 00:31:08 +0000).

Add option to make buy order for painted

PLS BAN METoday at 12:07 AM
Boiz
Got lit suggestion
Add option to make buy order for painted so e.g
!add name=A Hat To Kill For&buy_metal=2&sell_keys=69&paint=After Eight

Issue you said me to create xD

5|automati | 26-07-2018 16:23:30 - error: tf2-automatic crashed! Please create an issue with the following log:
5|automati | crash: Automatic.version: 1.7.22; node: v10.7.0 linux x64; Contact: 76561198846789568
5|automati | crash: Stack trace:
5|automati | ReferenceError: community is not defined
5|automati | at offerAccepted (/bots/tf2-automatic/app/trade.js:1063:5)
5|automati | at receivedOfferChanged (/bots/tf2-automatic/app/trade.js:986:9)
5|automati | at handleChangedOffers (/bots/tf2-automatic/app/trade.js:128:9)
5|automati | at Object.exports.init (/bots/tf2-automatic/app/trade.js:55:5)
5|automati | at ready (/bots/tf2-automatic/app/client.js:114:11)
5|automati | at /bots/tf2-automatic/node_modules/async/dist/async.js:3888:9
5|automati | at /bots/tf2-automatic/node_modules/async/dist/async.js:473:16
5|automati | at replenish (/bots/tf2-automatic/node_modules/async/dist/async.js:1006:25)
5|automati | at iterateeCallback (/bots/tf2-automatic/node_modules/async/dist/async.js:995:17)
5|automati | at /bots/tf2-automatic/node_modules/async/dist/async.js:969:16

Issue

3|automati | at /bots/bot/node_modules/tf2automatic/lib/requests.js:182:9
3|automati | at Request. (/bots/bot/node_modules/tf2automatic/lib /api.js:60:9)
3|automati | at Request._callback (/bots/bot/node_modules/tf2automatic/lib/h ttp.js:28:26)
3|automati | at Request.self.callback (/bots/bot/node_modules/tf2automatic/n ode_modules/request/request.js:185:22)
3|automati | at Request.emit (events.js:182:13)
3|automati | at Request.EventEmitter.emit (domain.js:442:20)
3|automati | at Request. (/bots/bot/node_modules/tf2automatic/nod e_modules/request/request.js:1157:10)
3|automati | at Request.emit (events.js:182:13)
3|automati | 08-08-2018 18:38:43 - error: Create an issue here: https://github.c om/Nicklason/tf2-automatic/issues/new
3|automati | Error: Cannot log onto steamcommunity.com without first being conne cted to Steam network
3|automati | at SteamUser.webLogOn (/bots/tf2-automatic-master/node_modules/ steam-user/components/web.js:9:9)
3|automati | at Object.refreshSession (/bots/tf2-automatic-master/app/automa tic.js:80:30)
3|automati | at /bots/tf2-automatic-master/app/trade.js:547:23
3|automati | at process._tickCallback (internal/process/next_tick.js:68:7)
3|automati | 10-08-2018 13:57:58 - error: An error occurred while initializing t he packages: tf2-items (Failed to get a valid response).

error

29-10-2018 17:10:09 - error: tf2-automatic crashed! Please create an issue with the following log:
crash: Automatic.version: 1.10.3; node: v10.10.0 win32 x64; Contact: null
crash: Stack trace:
TypeError: callback is not a function
at Object.Automatic.updateRepo (C:\Users\ПК\Desktop\tf2-automatic-master\app\automatic.js:193:9)
at C:\Users\ПК\Desktop\tf2-automatic-master\app\automatic.js:293:27
at C:\Users\ПК\Desktop\tf2-automatic-master\app\automatic.js:307:13
at Request._callback (C:\Users\ПК\Desktop\tf2-automatic-master\app\utils.js:86:13)
at Request.self.callback (C:\Users\ПК\Desktop\tf2-automatic-master\node_modules\request\request.js:186:22)
at Request.emit (events.js:182:13)
at Request. (C:\Users\ПК\Desktop\tf2-automatic-master\node_modules\request\request.js:1163:10)
at Request.emit (events.js:182:13)
at IncomingMessage. (C:\Users\ПК\Desktop\tf2-automatic-master\node_modules\request\request.js:1085:12)
at Object.onceWrapper (events.js:273:13)
29-10-2018 17:10:09 - error: Create an issue here: https://github.com/Nicklason/tf2-automatic/issues/new

File must be non empty?

2|automati | crash: Automatic.version: 1.10.6; node: v8.10.0 linux x64; Contact: 76561198176024095
2|automati | crash: Stack trace:
2|automati | TypeError: "file" argument must be a non-empty string
2|automati | at normalizeSpawnArguments (child_process.js:383:11)
2|automati | at Object.exports.spawn (child_process.js:496:38)
2|automati | at Function.spawn (/root/tf2-automatic/node_modules/cross-spawn/index.js:87:19)
2|automati | at spawnPhantom (/root/tf2-automatic/node_modules/webshot/lib/webshot.js:201:32)
2|automati | at spawn (/root/tf2-automatic/node_modules/webshot/lib/webshot.js:105:14)
2|automati | at /root/tf2-automatic/node_modules/webshot/lib/webshot.js:117:16
2|automati | at FSReqWrap.cb [as oncomplete] (fs.js:312:19)

I got an error, i don't actually understand xde

PLX HELP

1|automatic | Error: spawn ENOMEM
1|automatic | at _errnoException (util.js:992:11)
1|automatic | at ChildProcess.spawn (internal/child_process.js:323:11)
1|automatic | at Object.exports.spawn (child_process.js:502:9)
1|automatic | at Function.spawn (/bots/tf2automatic/node_modules/webshot/node_modules/cross-spawn/index.js:87:19)
1|automatic | at spawnPhantom (/bots/tf2automatic/node_modules/webshot/lib/webshot.js:201:32)
1|automatic | at spawn (/bots/tf2automatic/node_modules/webshot/lib/webshot.js:105:14)
1|automatic | at /bots/tf2automatic/node_modules/webshot/lib/webshot.js:117:16
1|automatic | at FSReqWrap.cb [as oncomplete] (fs.js:312:19)
1|automatic | 08-09-2018 11:33:36 - error: tf2-automatic crashed! Please create an issue with the following log:
1|automatic | crash: Automatic.version: 1.7.26; node: v8.11.4 linux x64; Contact: 76561198846789568
1|automatic | crash: Stack trace:
1|automatic | { Error: spawn ENOMEM
1|automatic | at _errnoException (util.js:992:11)
1|automatic | at ChildProcess.spawn (internal/child_process.js:323:11)
1|automatic | at Object.exports.spawn (child_process.js:502:9)
1|automatic | at Function.spawn (/bots/tf2automatic/node_modules/webshot/node_modules/cross-spawn/index.js:87:19)
1|automatic | at spawnPhantom (/bots/tf2automatic/node_modules/webshot/lib/webshot.js:201:32)
1|automatic | at spawn (/bots/tf2automatic/node_modules/webshot/lib/webshot.js:105:14)
1|automatic | at /bots/tf2automatic/node_modules/webshot/lib/webshot.js:117:16
1|automatic | at FSReqWrap.cb [as oncomplete] (fs.js:312:19) code: 'ENOMEM', errno: 'ENOMEM', syscall: 'spawn' }

Add command to stop the bot

Please add !shutdown command, so maybe if the owner has many outdated listings, cannot update them and isnt home to turn off the bot

Cannot convert undefined or null to object

crash: Automatic.version: 1.9.0; node: v10.9.0 win32 x64; Contact: 76561198856342890
crash: Stack trace:
TypeError: Cannot convert undefined or null to object
at values ()
at Schema.getQuality (C:\Users\acer\Desktop\bot\tf2 automatic\node_modules\tf2-items\lib\schema.js:98:17)
at Object.getQuality (C:\Users\acer\Desktop\bot\tf2 automatic\app\items.js:120:25)
at Function.getItem (C:\Users\acer\Desktop\bot\tf2 automatic\app\offer.js:74:32)
at Object.createDictionary (C:\Users\acer\Desktop\bot\tf2 automatic\app\items.js:53:28)
at update (C:\Users\acer\Desktop\bot\tf2 automatic\app\inventory.js:81:24)
at save (C:\Users\acer\Desktop\bot\tf2 automatic\app\inventory.js:71:5)
at C:\Users\acer\Desktop\bot\tf2 automatic\app\inventory.js:62:18
at SteamCommunity. (C:\Users\acer\Desktop\bot\tf2 automatic\node_modules\steamcommunity\components\users.js:484:5)
at Request._callback (C:\Users\acer\Desktop\bot\tf2 automatic\node_modules\steamcommunity\components\http.js:67:15)

Crash error

Error code:

0|automati | 02-08-2018 09:49:50 - error: tf2-automatic crashed! Please create an issue with the following log:
0|automati | crash: Automatic.version: 1.7.23; node: v10.7.0 linux x64; Contact: 76561198840991984
0|automati | crash: Stack trace:
0|automati | ReferenceError: community is not defined
0|automati | at sentOfferChanged (/root/tradebot/app/trade.js:1024:9)
0|automati | at handleChangedOffers (/root/tradebot/app/trade.js:132:9)
0|automati | at Object.exports.init (/root/tradebot/app/trade.js:55:5)
0|automati | at ready (/root/tradebot/app/client.js:114:11)
0|automati | at /root/tradebot/node_modules/async/dist/async.js:3888:9
0|automati | at /root/tradebot/node_modules/async/dist/async.js:473:16
0|automati | at replenish (/root/tradebot/node_modules/async/dist/async.js:1006:25)
0|automati | at iterateeCallback (/root/tradebot/node_modules/async/dist/async.js:995:17)
0|automati | at /root/tradebot/node_modules/async/dist/async.js:969:16
0|automati | at /root/tradebot/node_modules/async/dist/async.js:3885:13
0|automati | 02-08-2018 09:49:50 - error: Create an issue here: https://github.com/Nicklason/tf2-automatic/issues/new

Tf2-automatic crashing

here's my issue

15-02-2019 22:46:55 - debug: Attempting to connect to PM2...
15-02-2019 22:47:05 - debug: Successfully connected to PM2!
15-02-2019 22:47:05 - info: tf2-automatic v1.11.0 starting
15-02-2019 22:47:05 - info: Connecting to Steam...
15-02-2019 22:47:05 - error: tf2-automatic crashed! Please create an issue with the following log:
crash: Automatic.version: 1.11.0; node: v10.15.1 win32 x64; Contact: null
crash: Stack trace:
TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be one of type string, TypedArray, or DataView. Received type undefined
at new Hmac (internal/crypto/hash.js:88:11)
at Object.createHmac (crypto.js:133:10)
at Object.exports.generateAuthCode.exports.getAuthCode (C:\Users\Andrew\Desktop\tf2-automatic-master\tf2-automatic-master\node_modules\steam-totp\index.js:44:20)
at C:\Users\Andrew\Desktop\tf2-automatic-master\tf2-automatic-master\app\login.js:23:48
at IncomingMessage.res.on (C:\Users\Andrew\Desktop\tf2-automatic-master\tf2-automatic-master\node_modules\steam-totp\index.js:129:4)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1103:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
15-02-2019 22:47:05 - error: Create an issue here: https://github.com/Nicklason/tf2-automatic/issues/new
15-02-2019 22:50:36 - debug: Attempting to connect to PM2...
15-02-2019 22:50:37 - debug: Successfully connected to PM2!
15-02-2019 22:50:37 - info: tf2-automatic v1.11.0 starting
15-02-2019 22:50:37 - info: Connecting to Steam...
15-02-2019 22:50:37 - error: tf2-automatic crashed! Please create an issue with the following log:
crash: Automatic.version: 1.11.0; node: v10.15.1 win32 x64; Contact: null
crash: Stack trace:
TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be one of type string, TypedArray, or DataView. Received type undefined
at new Hmac (internal/crypto/hash.js:88:11)
at Object.createHmac (crypto.js:133:10)
at Object.exports.generateAuthCode.exports.getAuthCode (C:\Users\Andrew\Desktop\tf2-automatic-master\tf2-automatic-master\node_modules\steam-totp\index.js:44:20)
at C:\Users\Andrew\Desktop\tf2-automatic-master\tf2-automatic-master\app\login.js:23:48
at IncomingMessage.res.on (C:\Users\Andrew\Desktop\tf2-automatic-master\tf2-automatic-master\node_modules\steam-totp\index.js:129:4)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1103:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
15-02-2019 22:50:37 - error: Create an issue here: https://github.com/Nicklason/tf2-automatic/issues/new

I'm assuming i did something wrong any help would be great thanks

Can't update item that contains "Mk.II"

!price Strange Gold Botkiller Sniper Rifle Mk.II
[13:20]KOLOBOK: I could not find any items in my pricelist that contains "Strange Gold Botkiller Sniper Rifle http://Mk.II", I might not be trading the item you are looking for.

!price Strange Gold Botkiller Sniper
[13:26]KOLOBOK: I am buying a Strange Gold Botkiller Sniper Rifle Mk.II for 28 ref and selling for 1 key. I have 2 / 4 (last updated 09-11-2018 03:04:42 +0000).

utils.second is not a function

17:04:39 - error: backpack.tf Automatic crashed! Please create an issue with the following log:
crash: Automatic.version: 1.3.3; node: v10.11.0 win32 x64; Contact: 76561198866655074
crash: Stack trace::
TypeError: utils.seconds is not a function
at removeOldOffers (C:\Users\herni\Desktop\sandvich\app\trade.js:1356:27)
at TradeOfferManager.savePollData (C:\Users\herni\Desktop\sandvich\app\trade.js:1345:16)
at TradeOfferManager.emit (events.js:182:13)
at getOffers (C:\Users\herni\Desktop\sandvich\node_modules\steam-tradeoffer-manager\lib\polling.js:268:9)
at Helpers.checkNeededDescriptions (C:\Users\herni\Desktop\sandvich\node_modules\steam-tradeoffer-manager\lib\index.js:500:4)
at Async.map (C:\Users\herni\Desktop\sandvich\node_modules\steam-tradeoffer-manager\lib\assets.js:171:4)
at C:\Users\herni\Desktop\sandvich\node_modules\steam-tradeoffer-manager\node_modules\async\dist\async.js:1140:9
at C:\Users\herni\Desktop\sandvich\node_modules\steam-tradeoffer-manager\node_modules\async\dist\async.js:473:16
at iteratorCallback (C:\Users\herni\Desktop\sandvich\node_modules\steam-tradeoffer-manager\node_modules\async\dist\async.js:1064:13)
at C:\Users\herni\Desktop\sandvich\node_modules\steam-tradeoffer-manager\node_modules\async\dist\async.js:969:16
17:04:39 - error: Create an issue here: https://bitbucket.org/jessecar/backpack.tf-automatic/issues/new
Press any key to continue . . .

I have coppied only trade.js and all the moduls needed, any help?

Bot does not retry accepting offers from owner

24-10-2018 02:23:16 - info: Offer #3345850737 received from 76561198020822150
24-10-2018 02:23:16 - info: Offer #3345850737 is from an owner, accepting
24-10-2018 02:23:16 - info: Message sent to M_SERVER ✅ trade.tf (76561197994727567): Offer from owner, accepting
24-10-2018 02:23:17 - warn: Offer #3345850737 could not be accepted: Not Logged In
Of course would be great if bot could accept every offer, but if we have this bug, please, make bot retry to accept the offer after he refresh the session. Thanks

Crash Unexpectedly

This is the error code.

0|automati | 02-08-2018 03:24:54 - error: tf2-automatic crashed! Please create an issue with the following log:
0|automati | crash: Automatic.version: 1.7.23; node: v10.7.0 linux x64; Contact: 76561198840991984
0|automati | crash: Stack trace:
0|automati | ReferenceError: community is not defined
0|automati | at sentOfferChanged (/root/tradebot/app/trade.js:1024:9)
0|automati | at handleChangedOffers (/root/tradebot/app/trade.js:132:9)
0|automati | at Object.exports.init (/root/tradebot/app/trade.js:55:5)
0|automati | at ready (/root/tradebot/app/client.js:114:11)
0|automati | at /root/tradebot/node_modules/async/dist/async.js:3888:9
0|automati | at /root/tradebot/node_modules/async/dist/async.js:473:16
0|automati | at replenish (/root/tradebot/node_modules/async/dist/async.js:1006:25)
0|automati | at iterateeCallback (/root/tradebot/node_modules/async/dist/async.js:995:17)
0|automati | at /root/tradebot/node_modules/async/dist/async.js:969:16
0|automati | at /root/tradebot/node_modules/async/dist/async.js:3885:13
0|automati | 02-08-2018 03:24:54 - error: Create an issue here: https://github.com/Nicklason/tf2-automatic/issues/new

Offer sent by the bot too short delay

Really???? Only 1 minute? It's just too short, trade offers when accepted can take up to 3 minutes to be finished?? So when I trade with one of those bots, I accept the trade and randomly it says OhH nOoOoEs! ThE oFfEr Is No LoNgEr AvAiLaBlE. ReAsOn: ThE oFfEr hAs bEeN aCtIvE fOr A wHiLe.

It's just super annoying! Please fix this!

Tf2 automatic crash

crash: Automatic.version: 1.7.29; node: v10.9.0 win32 x64; Contact: 76561198856342890
crash: Stack trace:
TypeError: Cannot read property 'def_index' of undefined
at getDefindex (C:\Users\acer\Desktop\bot\tf2 automatic\app\offer.js:204:45)
at Function.getItem (C:\Users\acer\Desktop\bot\tf2 automatic\app\offer.js:57:23)
at Object.createDictionary (C:\Users\acer\Desktop\bot\tf2 automatic\app\items.js:44:28)
at updateOrders (C:\Users\acer\Desktop\bot\tf2 automatic\app\backpacktf.js:223:51)
at Timeout._onTimeout (C:\Users\acer\Desktop\bot\tf2 automatic\app\backpacktf.js:216:9)
at ontimeout (timers.js:424:11)
at tryOnTimeout (timers.js:288:5)
at listOnTimeout (timers.js:251:5)
at Timer.processTimers (timers.js:211:10)

Bot crashes when an accepted trade includes non-TF2 items

I believe this was reported on Discord a while ago but posting here just in case.

As stated in the title, whenever the bot accepts a trade that includes non-TF2 items (tested with Steam Cards and Dota 2 items) the bot will crash. Doesn't matter if the bot receives the items or is the one sending the items.

Can't test if the bot would accept a non-TF2 item on a trade as long as the prices of the TF2 items involved are correct and this could cause a crash.

14-12-2018 03:28:07 - info: Message sent to Senakhtenre (76561198009485070): Success! Your offer went through successfully.
14-12-2018 03:28:07 - trade: Offer #3394277708 successfully accepted
14-12-2018 03:28:07 - debug: Sorting inventory
14-12-2018 03:28:09 - error: tf2-automatic crashed! Please create an issue with the following log:
crash: Automatic.version: 1.10.10; node: v10.13.0 linux x64; Contact: 76561198143595654
crash: Stack trace:
TypeError: Cannot read property 'def_index' of undefined
at getDefindex (/home/Senak/tf2-automatic/app/offer.js:205:45)
at Function.getItem (/home/Senak/tf2-automatic/app/offer.js:57:23)
at Object.createDictionary (/home/Senak/tf2-automatic/app/items.js:53:28)
at /home/Senak/tf2-automatic/app/trade.js:1184:32
at manager._addDescriptions (/home/Senak/tf2-automatic/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:639:6)
at TradeOfferManager._addDescriptions (/home/Senak/tf2-automatic/node_modules/steam-tradeoffer-manager/lib/assets.js:67:3)
at SteamCommunity.manager._community.httpRequestGet (/home/Senak/tf2-automatic/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:635:17)
at Request._callback (/home/Senak/tf2-automatic/node_modules/steamcommunity/components/http.js:67:15)
at Request.self.callback (/home/Senak/tf2-automatic/node_modules/steamcommunity/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)

Add command to unfriend people

} else if (command == 'unfriend') {
client.chatMessage(steamID64,"Removing you from friends...");
client.removeFriend(steamID64);
community.postUserComment(steamID64, "If you ever wish to trade again, just add me into friends! 💖")

} else if (command == 'help') {
let reply = 'Here's a list of all my commands: !help, !message , !how2trade, !stock, !price , !buy , !sell , !unfriend <I´ll remove you from friends>';
if (Automatic.isOwner(steamID64)) {
reply += ', !add, !remove, !update, !profit, !removefriends, !use, !name, !avatar, !version, !restart, !updaterepo';

} else if (command == 'restart' && Automatic.isOwner(steamID64)) {
const restarting = Automatic.restart();
Automatic.message(steamID64, 'Restarting the bot. Be right back :D');
if (restarting === false) {
Automatic.message(steamID64, 'The bot is not being managed by PM2, follow this guide to set it up: https://github.com/Nicklason/tf2-automatic/wiki/Setup-on-Linux#pm2');
return;

-1.66 profit????

nicklason this happened to me is it normal??
i lose 3.44
in last 2 days

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.