3urobeat / steam-comment-service-bot

📡 The most advanced Steam Account Manager Bot with mass coordinated comments/likes/favs/follows and plugin support
https://steamcommunity.com/id/3urobeatscommentbot
GNU General Public License v3.0
274 stars 40 forks source link

controller.js #19

Closed zacharykkkk closed 4 years ago

zacharykkkk commented 4 years ago

[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?

3urobeat commented 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.

zacharykkkk commented 4 years ago

alright fixed! thanks. i've met with another error. :(

TypeError: Cannot read property 'time' of undefined at SteamUser. (C:\comment\src\bot.js:241:429) at SteamUser.emit (events.js:310:20) at SteamUser._emitIdEvent (C:\comment\node_modules\steam-user\components\utility.js:28:12) at SteamUser. (C:\comment\node_modules\steam-user\components\chatroom.js:56:8) at C:\comment\node_modules\steam-user\components\classes\HandlerManager.js:37:12 at Array.forEach () at HandlerManager.emit (C:\comment\node_modules\steam-user\components\classes\HandlerManager.js:36:12) at SteamUser._handleMessage (C:\comment\node_modules\steam-user\components\messages.js:545:24) at SteamUser._handleNetMessage (C:\comment\node_modules\steam-user\components\messages.js:480:7) at SteamUser.processMulti (C:\comment\node_modules\steam-user\components\messages.js:572:9)

3urobeat commented 4 years ago

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.

zacharykkkk commented 4 years ago

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

3urobeat commented 4 years ago

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.

zacharykkkk commented 4 years ago

-

3urobeat commented 4 years ago

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.

zacharykkkk commented 4 years ago

No worries brother. appreciate it your help! :)

3urobeat commented 4 years ago

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.

3urobeat commented 4 years ago

Hey, just wanting to ask back if you fixed the issue, if it has fixed itself or if the issue still persists.

zacharykkkk commented 4 years ago

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.

3urobeat commented 4 years ago

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 ^^

zacharykkkk commented 4 years ago

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.

3urobeat commented 4 years ago

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.

3urobeat commented 4 years ago

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

3urobeat commented 4 years ago

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.