Closed zacharykkkk closed 4 years ago
Hey, thanks for opening an issue!
It seems like something in your logininfo.json is formatted wrong. Is your logininfo.json formatted just like in the example?
{
"bot0": ["username0", "password0"],
"bot1": ["username1", "password1"],
"bot2": ["username2", "password2"]
}
Be sure not to share your username and password though.
alright fixed! thanks. i've met with another error. :(
TypeError: Cannot read property 'time' of undefined
at SteamUser.
Hey, good to hear that the first error is fixed. Could you please provide a bit more information about when the second error pops up? It seems like it is coming from the !info command, therefore it would be interesting if the error was caused when you used the command or if it already comes up on startup?
Please try to unfriend your main bot and send him a friend request again. That should fix the error for now.
i tried unfriending but doesn't work. here's the top error. whenever i type !comment and it gets stuck
C:\comment\src\bot.js:153 if ((Date.now() - lastcomment[lastcommentsteamID].time) < (config.commentcooldown * 60000)) { //check if user has cooldown applied
Hm, weird. Another person messaged me yesterday with that error but I couldn't reproduce it. Could you please send me the content of your lastcomment.json file (located in the 'src' folder)? That could help me to understand what's going on. No worries, it only contains ID's, nothing log in relevant.
Maybe you could try refriending your bot again. The error seems to be caused because your entry is missing in the lastcomment.json and sending your bot a friend request should write you to it.
-
Okay, well thats pretty long and a bit too long for me to find the error there.
Can you delete everything so that only this: {}
is in the file and then restart the bot?
I'm sorry that I can't help you right out of the box but I just don't know from where the error is being caused.
No worries brother. appreciate it your help! :)
Did you try what happens when you remove everything from the lastcomment.json except of {}
and restart the bot?
When I do the same the bot instantly writes all his friends to the lastcomment.json again and I can request a comment without errors.
Hey, just wanting to ask back if you fixed the issue, if it has fixed itself or if the issue still persists.
hey still having issues. i can only comment when the bot is logging into my accounts. once the bot has successfully logged in to all my accounts, they'll have an error.
Hey, sorry that I didn't answer. Someone else now also has that error and I will try to push a patch asap. I hope that you haven't abandoned the bot yet ^^
no worries brother. still hoping to use the bot as soon as it's fixed. ;)
anyway is there a feature for all the bots to join a particular steam group? tried configuring bot group or groupid64 and still doesn't work.
Configuring the botsgroupid with a group64id should enable the feature. The main bot should then invite all other bots to the group. Make sure the main bot can send group invites. I want to change this feature so that every bot joins that group instead of being invited because this would be easier.
Hey, I think I need you to test if this "duct tape solution" fixes the problem.
Please replace everything in your bot.js file (located in the 'src'
folder) with this: https://raw.githubusercontent.com/HerrEurobeat/steam-comment-service-bot/beta-testing/src/bot.js and report back if requesting a comment worked. Thanks!
Edit: wrong link
Sorry that I waited so long before pushing the fix to master but here it finally is.
If you are still recieving this message, please start your bot so that it updates automatically, try it out and close this issue if it works.
Thanks!
Fixed in commit 29a0d82.
[2020-05-03 05:31:59] Logging in... Estimated wait time: 1.76 minutes.
------------------------------------------ C:\comment\src\controller.js:171 logger(
\x1b[96m${logininfo.bot0[0]}\x1b[0m version ${extdata.version} by 3urobeat logged in.
, true) ^TypeError: Cannot read property '0' of undefined at Timeout._onTimeout (C:\comment\src\controller.js:171:41) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)
got this error. any idea how to fix it?