Closed steel4me closed 4 years ago
Hi, thanks for opening an issue! This is a bug that already occurred with the comment command a few versions back and one I thought I had fixed. I will implement the failcheck from the other issue you mentioned in the info command in the next version aswell. (Is this even an understable sentence? lol)
(It already did it's magic in your log btw :D :[2020-06-06 12:02:55] Missing user (xXxXxXxXxXxXxXxXx) from lastcomment.json! Writing to prevent error...
)
I'm not sure when the update will arrive but you can see the development progress here: https://github.com/HerrEurobeat/steam-comment-service-bot/projects/2 and here: https://github.com/HerrEurobeat/steam-comment-service-bot/tree/beta-testing
In the meantime you could try requesting a comment and then typing !info to see what will happen.
(didn't mean to move the issue to Not now, was a misclick)
Hi, thanks for opening an issue! This is a bug that already occurred with the comment command a few versions back and one I thought I had fixed. I will implement the failcheck from the other issue you mentioned in the info command in the next version aswell. (Is this even an understable sentence? lol)
(It already did it's magic in your log btw :D :
[2020-06-06 12:02:55] Missing user (xXxXxXxXxXxXxXxXx) from lastcomment.json! Writing to prevent error...
)I'm not sure when the update will arrive but you can see the development progress here: https://github.com/HerrEurobeat/steam-comment-service-bot/projects/2 and here: https://github.com/HerrEurobeat/steam-comment-service-bot/tree/beta-testing
In the meantime you could try requesting a comment and then typing !info to see what will happen.
Thx for fast reply, really schnell ;) Thats what i already did, !comment 12 and after that !owner !restart and then !info, all from same chat window.
Haha yeah I'm working on the project right now so I instantly saw the issue notification on my phone ^^
I'm not sure why the bot sometimes forgets to write someone to the lastcomment.json or basically were the issue comes from at all. Thats why I can only implement a failcheck instead of actually fixing the bug itself...
Bugs are Bugs ;) Main Part (commenting profiles) works really great. Thx again, take your time. Im just playing around now with your bot.
Just one offtopic question: start.js starts updater.js, so i dont have to pull manually? ;)
Yep, start.js is a selfmade starting script that can restart the whole bot (including changes made by the automatic updater) without restarting your node process.
Boot order: start.js -> updater.js -> controller.js -> bot.js (each account gets its own bot.js)
THX, cu around next days / weeks, i will come back ;)
Describe the bug !info crashes node process
Full error `[2020-06-06 12:02:00] Logging in... Estimated wait time: 9.43 seconds.
------------------------------------------ xXxXxXxXxXxXxXxXx version 2.6.4 by 3urobeat logged in. Using Mode 2: 11 child accounts logged in. Playing status: !help Ready after 28.85 seconds! ------------------------------------------
[2020-06-06 12:02:55] [Main] Friend message from xXxXxXxXxXxXxXxXx: !comment 12 [2020-06-06 12:02:55] Missing user (xXxXxXxXxXxXxXxXx) from lastcomment.json! Writing to prevent error... [2020-06-06 12:02:56] [Main] 12 Comment(s) requested. Comment on xXxXxXxXxXxXxXxXx: +rep nice person! [2020-06-06 12:03:01] [Bot 1] Comment on xXxXxXxXxXxXxXxXx: I hope you had a great day so far! [2020-06-06 12:03:06] [Bot 2] Comment on xXxXxXxXxXxXxXxXx: I wish you a nice week! [2020-06-06 12:03:11] [Bot 3] Comment on xXxXxXxXxXxXxXxXx: +rep very friendly player [2020-06-06 12:03:16] [Bot 4] Comment on xXxXxXxXxXxXxXxXx: +rep very helpful teammate [2020-06-06 12:03:21] [Bot 5] Comment on xXxXxXxXxXxXxXxXx: I hope you had a great day so far! [2020-06-06 12:03:26] [Bot 6] Comment on xXxXxXxXxXxXxXxXx: +rep very friendly player [2020-06-06 12:03:31] [Bot 7] Comment on xXxXxXxXxXxXxXxXx: Have a great week! [2020-06-06 12:03:36] [Bot 8] Comment on xXxXxXxXxXxXxXxXx: +rep nice person! [2020-06-06 12:03:41] [Bot 9] Comment on xXxXxXxXxXxXxXxXx: +rep very friendly player [2020-06-06 12:03:46] [Bot 10] Comment on xXxXxXxXxXxXxXxXx: Have a great week! [2020-06-06 12:03:51] [Bot 11] Comment on xXxXxXxXxXxXxXxXx: +rep very helpful teammate [2020-06-06 12:04:33] [Main] Friend message from xXxXxXxXxXxXxXxXx: !about [2020-06-06 12:05:10] [Main] Friend message from xXxXxXxXxXxXxXxXx: !restart Restarting application...
[2020-06-06 12:05:12] Logging in... Estimated wait time: 10.57 seconds.
------------------------------------------ xXxXxXxXxXxXxXxXx version 2.6.4 by 3urobeat logged in. Using Mode 2: 11 child accounts logged in. Playing status: !help Ready after 33.34 seconds! ------------------------------------------
[2020-06-06 12:05:35] [Main] Friend message from xXxXxXxXxXxXxXxXx: !owner [2020-06-06 12:11:27] [Main] Friend message from xXxXxXxXxXxXxXxXx: !info commentbot/src/bot.js:267 bot.chatMessage(steamID,
3urobeat's Comment Bot [Version ${extdata.version}] (More info: !about)\nUptime: ${Number(Math.round(((new Date() - controller.bootstart) / 3600000)+'e'+2)+'e-'+2)} hours\nAccounts logged in: ${Object.keys(controller.communityobject).length}\n\nYour steam id: ${new SteamID(steamID.getSteam3RenderedID()).getSteamID64()}\nYour last comment request: ${new Date(lastcomment[lastcommentsteamID].time)}
) ^TypeError: Cannot read property 'time' of undefined at SteamUser. (commentbot/src/bot.js:267:429)
at SteamUser.emit (events.js:223:5)
at SteamUser._emitIdEvent (commentbot/node_modules/steam-user/components/utility.js:28:12)
at SteamUser. (commentbot/node_modules/steam-user/components/chatroom.js:56:8)
at commentbot/node_modules/steam-user/components/classes/HandlerManager.js:37:12
at Array.forEach ()
at HandlerManager.emit (commentbot/node_modules/steam-user/components/classes/HandlerManager.js:36:12)
at SteamUser._handleMessage (commentbot/node_modules/steam-user/components/messages.js:545:24)
at SteamUser._handleNetMessage (commentbot/node_modules/steam-user/components/messages.js:480:7)
at SteamUser.processMulti (commentbot/node_modules/steam-user/components/messages.js:572:9)1`
Additional context Thank you very much for this bot! Nice work! Just for info i use Linux with latest nodejs and i just did a git clone of your nice project.
I found another closed issue with same error, i will try that. Just thought you fixed it in some commit.