Giter Club home page Giter Club logo

steam-comment-service-bot's Introduction

Manage accounts and request tons of comments, favs, likes & follows by texting a bot network!
See how to set up the bot and customize it below.

YouTube nodejs Star Steam Group Donate

Click on a badge to learn more. Table of Contents:

IntroductionSetup & Configuration GuideWikiGet HelpLicense

Showcase

 

Introduction

Features:

  • Request profile, group, screenshot, artwork, guide or discussion comments directly from the Steam Chat
  • Manage hundreds of Steam accounts with ease and control them from one terminal and Steam Chat
  • No need of having a Steam Client installed - perfect for hosting on a server
  • Apply cooldowns to users and customize various settings (including multi language support!)
  • Advertise your Steam group and automatically invite users to it
  • Use proxies to spread requests over multiple IPs
  • Completely VAC safe as it does not directly interact with any games
  • Extend the bot's functionality with plugins

You can see and test out my 24/7 hosted comment bot in action by clicking here!

If you would like to rather follow a video than these written instructions, click:

 

🚀 Setup & Configuration Guide:

Follow the Wiki's Setup Guide by clicking here to get started!
This process is pretty simple and should not take you long!

 

💡 Additional Information:

Sponsor Star

If you like this project please consider donating a dollar by clicking on the Sponsor badge and by giving this repository a Star at the top! Thank you so much!

 

The Wiki

The Wiki of this repository holds a lot of valuable information, please check it out!
You'll find pages on how to add proxies to drastically increase the amount of possible comments, how to integrate the bot into your own application, adding your own language, documentation on errors, the config, advancedconfig and much more.

Questions, Bugs, Issues & Betas

If you have any questions, please feel free to open a Q&A discussion!
If you encountered a bug or wish a feature to be added, please open an issue!
If you are interested in beta builds of this project, visit the beta-testing branch.
If you are interested in the active development progress, visit the projects section.

Contributing

You would like to contribute to the project itself?
Great! No matter if it's fixing a few typos or adding a whole feature - every contribution is welcome.

The contributing page is located in the project's wiki, please click here to get redirected!

License

This project and all code included is distributed under the GPL-3.0 license.
If you want to use code from this repository in your project, feel free to do so as long as you include a URL as comment above the code block to the file in this repository!
When using this project as a whole you are only allowed to edit the config files. You are not allowed to edit any files in a way that would remove credit to myself, the author.

Credits & Donations

Thank you DoctorMcKay for creating the steam-user and steamcommunity libraries which this project heavily depends on!

Thank you so much to every single one who donated a dollar or two; there are now too many names to list them one by one! ❤️

 

Stargazers over time

steam-comment-service-bot's People

Contributors

3urobeat avatar 8c avatar blueberryy avatar dependabot[bot] avatar derdeathraven avatar isyuricunha avatar lesikedelweiss avatar mikelobam avatar sashascurtu 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

steam-comment-service-bot's Issues

[BETA Error] Error when inviting new friend to group

This error was raised in beta, does not seem to affect master versions.

[2020-04-16 12:52:02] [Main] Added User: 76561198260031749
H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\helpers.js:17
let keys = Object.keys(input);
^

TypeError: Cannot convert undefined or null to object
at Function.keys ()
at Object.exports.steamID (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\helpers.js:17:21)
at SteamUser.inviteToGroup (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\friends.js:408:29)
at SteamUser.bot.on (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\bot.js:304:108)
at SteamUser.emit (events.js:189:13)
at SteamUser._emitIdEvent (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\utility.js:28:12)
at forEach (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\friends.js:828:9)
at Array.forEach ()
at SteamUser. (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\friends.js:806:23)

Bot crashes when trying to use certain stdout functions

As soon as I start the bot in the background for example with npm forever or pm2 the bot will instantly crash with the following error:

/"pathtosteambot"/updater.js:23
process.stdout.clearLine()
^

TypeError: process.stdout.clearLine is not a function
at logger (/home/steambot/updater.js:23:24)
at Object. (/home/steambot/updater.js:287:1)
at Module._compile (internal/modules/cjs/loader.js:1123:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:972:32)
at Function.Module._load (internal/modules/cjs/loader.js:872:14)
at Module.require (internal/modules/cjs/loader.js:1012:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/home/steambot/start.js:55:5)
at Module._compile (internal/modules/cjs/loader.js:1123:30)
error: Forever detected script exited with code: 1

You should be able to reproduce the error, here a quick instruction for npm forever:

  1. Run Node JS Server At Background Continuously With Forever
    https://www.dev2qa.com/how-to-run-node-js-server-in-background/

I have an idea

I have an idea, how it will not be noticeable that the cheat, you can delay the bots so that they do not write simultaneously

help pls

Oops, an error occured! Details:
[Bot 0] postUserComment error: Error: To post this comment, your account must have Steam Guard enabled.
Please try again in a moment!

Get error

PS D:\steam-comment-service-bot-master> npm install

[email protected] postinstall D:\steam-comment-service-bot-master\node_modules\protobufjs
node scripts/postinstall

npm WARN [email protected] No repository field.

added 152 packages from 192 contributors and audited 152 packages in 7.156s

14 packages are looking for funding
run npm fund for details

found 1 low severity vulnerability
run npm audit fix to fix them, or npm audit for details
PS D:\steam-comment-service-bot-master> npm audit
=== npm audit security report ===

                             Manual Review
         Some vulnerabilities require your attention to resolve

      Visit https://go.npm.me/audit-guide for additional guidance

Low Prototype Pollution

Package lodash

Patched in No patch available

Dependency of steamcommunity

Path steamcommunity > async > lodash

More info https://npmjs.com/advisories/1523

found 1 low severity vulnerability in 152 scanned packages
1 vulnerability requires manual review. See the full report for details.

HOW DO I FIX?

dnt working

when i put node start.js i get an error pls help :
SyntaxError: C:\Users\Acer\Desktop\steam-comment-service-bot-master\steam-comment-service-bot-master\logininfo.json: Unexpected token } in JSON at position 58
at JSON.parse ()
�[90m at Object.Module._extensions..json (internal/modules/cjs/loader.js:961:27)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:790:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:703:12)�[39m
�[90m at Module.require (internal/modules/cjs/loader.js:830:19)�[39m
�[90m at require (internal/modules/cjs/helpers.js:68:18)�[39m
at Object. (C:\Users\Acer\Desktop\steam-comment-service-bot-master\steam-comment-service-bot-master\start.js:6:19)
�[90m at Module._compile (internal/modules/cjs/loader.js:936:30)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:790:32)�[39m

image

controller.js

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

Donation

I got some coins I'd like to donate got a btc address?

hey mate help me out here

Describe the bug
I did everything you did in the video nothing more or less
SyntaxError: C:\Users\olena\OneDrive\Desktop\commentbot\steam-comment-service-bot-master\logininfo.json: Unexpected token } in JSON at position 57
Please post the complete error here!
PS C:\Users\olena\OneDrive\Desktop\commentbot\steam-comment-service-bot-master> node start.js
internal/modules/cjs/loader.js:1175
throw err;
^

SyntaxError: C:\Users\olena\OneDrive\Desktop\commentbot\steam-comment-service-bot-master\logininfo.json: Unexpected token } in JSON at position 57
at parse ()
�[90m at Object.Module._extensions..json (internal/modules/cjs/loader.js:1172:22)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:986:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:879:14)�[39m
�[90m at Module.require (internal/modules/cjs/loader.js:1026:19)�[39m
�[90m at require (internal/modules/cjs/helpers.js:72:18)�[39m
at Object. (C:\Users\olena\OneDrive\Desktop\commentbot\steam-comment-service-bot-master\src\controller.js:6:19)
�[90m at Module._compile (internal/modules/cjs/loader.js:1138:30)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:986:32)�[39m
PS C:\Users\olena\OneDrive\Desktop\commentbot\steam-comment-service-bot-master>

error

events.js:174
throw er; // Unhandled 'error' event
^

Error: InvalidPassword
at SteamUser. (/home/ubuntu/environment/steam-comment-service-bot/node_modules/steam-user/components/logon.js:468:16)
at handlers.forEach (/home/ubuntu/environment/steam-comment-service-bot/node_modules/steam-user/components/classes/HandlerManager.js:37:12)
at Array.forEach ()
at HandlerManager.emit (/home/ubuntu/environment/steam-comment-service-bot/node_modules/steam-user/components/classes/HandlerManager.js:36:12)
at SteamUser._handleMessage (/home/ubuntu/environment/steam-comment-service-bot/node_modules/steam-user/components/messages.js:545:24)
at SteamUser._handleNetMessage (/home/ubuntu/environment/steam-comment-service-bot/node_modules/steam-user/components/messages.js:480:7)
at SteamUser.processMulti (/home/ubuntu/environment/steam-comment-service-bot/node_modules/steam-user/components/messages.js:572:9)
at SteamUser. (/home/ubuntu/environment/steam-comment-service-bot/node_modules/steam-user/components/messages.js:566:16)
at handlers.forEach (/home/ubuntu/environment/steam-comment-service-bot/node_modules/steam-user/components/classes/HandlerManager.js:37:12)
at Array.forEach ()
Emitted 'error' event at:
at SteamUser. (/home/ubuntu/environment/steam-comment-service-bot/node_modules/steam-user/components/logon.js:471:9)
at handlers.forEach (/home/ubuntu/environment/steam-comment-service-bot/node_modules/steam-user/components/classes/HandlerManager.js:37:12)
[... lines matching original stack trace ...]
at Array.forEach ()

Error: Cannot find module './logininfo.json'

PS C:\Users\Alex\Desktop\profilcomentgo\steam-comment-service-bot-master> node start.js
internal/modules/cjs/loader.js:983
throw err;
^

Error: Cannot find module './logininfo.json'
Require stack:

  • C:\Users\Alex\Desktop\profilcomentgo\steam-comment-service-bot-master\start.js
    �[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)�[39m
    �[90m at Function.Module._load (internal/modules/cjs/loader.js:862:27)�[39m
    �[90m at Module.require (internal/modules/cjs/loader.js:1042:19)�[39m
    �[90m at require (internal/modules/cjs/helpers.js:77:18)�[39m
    at Object. (C:\Users\Alex\Desktop\profilcomentgo\steam-comment-service-bot-master\start.js:6:19)
    �[90m at Module._compile (internal/modules/cjs/loader.js:1156:30)�[39m
    �[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)�[39m
    �[90m at Module.load (internal/modules/cjs/loader.js:1000:32)�[39m
    �[90m at Function.Module._load (internal/modules/cjs/loader.js:899:14)�[39m
    �[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)�[39m {
    code: �[32m'MODULE_NOT_FOUND'�[39m,
    requireStack: [
    �[32m'C:\Users\Alex\Desktop\profilcomentgo\steam-comment-service-bot-master\start.js'�[39m
    ]
    }
    PS C:\Users\Alex\Desktop\profilcomentgo\steam-comment-service-bot-master>

!info crashes node process

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.

Bots

Hello does this need all bots to be nonlimited or is there anyway to make my main acct add those bots automatically and then send comments on main then unfriend

Steam Guard error, Account already logged in

Error/Element that doesn't work
Please include the full error you get or if you get none, describe precisely what happened.
poza
I have this issue where my accounts are not used anywhere else but onle the first one can login with steam guard. After the login error, I have a config.json error in which case I need to replace the file with a new one.
image

Additional information
Please add any other information here if you have some.

After trying to restart it
image

Every time it will give a random error when crashing but 2/3 bots are sending comments, but not all 3 at once. The #0 bot will always comment while the #1 and #2 will alternate.

image
Should I try bots without steamguard at all?

All comments have been sent. Failed: 0/X

The bot sends the following messages after !comment
Seems to be random how many you will get

All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5
All comments have been sent. Failed: 0/5

Please help, logininfo.json

Hi all, I've been having this issue ever since the update.
Whenever I start the bot I get prompted with:

SyntaxError: C:\Users\Maytix\Desktop\steam-comment-service-bot-master\logininfo.json: Unexpected string in JSON at position 125
at parse ()
�[90m at Object.Module._extensions..json (internal/modules/cjs/loader.js:1219:22)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:1034:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:923:14)�[39m
�[90m at Module.require (internal/modules/cjs/loader.js:1074:19)�[39m
�[90m at require (internal/modules/cjs/helpers.js:72:18)�[39m
at Object. (C:\Users\Maytrix\Desktop\steam-comment-service-bot-master\src\controller.js:6:19)
�[90m at Module._compile (internal/modules/cjs/loader.js:1185:30)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:1034:32)�[39m

Open to all suggestions xD

Stupid bootup limited checker crashes the bot from time to time (🖕)

Describe the bug
How many accounts are limited checker is broken and constantly crashes the bot if it is in the mood for it.

Full error

H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\src\controller.js:324
    if (Object.keys(communityobject).length == (Object.keys(logininfo).length - updater.skippedaccounts.length) && botobject[Object.keys(botobject).length - 1].limitations != undefined && module.exports.accisloggedin == true) {      
                                                                                                                                                                ^

TypeError: Cannot read property 'limitations' of undefined
    at Timeout._onTimeout (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\src\controller.js:324:161)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)

Additional context
Please add any other information here if you have some.
Seriously fuck that check. I get agression seeing it.

Bot can crash on comment request after automatic reconnect with limited error

Describe the bug
Bot crashes sometimes when trying to process a requested comment after having lost connection to Steam.

Full error

[2020-07-15 01:11:01] [Bot 1] Lost connection to Steam. EResult: 3 | Message: NoConnection
[2020-07-15 01:11:01] [Main] Lost connection to Steam. EResult: 3 | Message: NoConnection
[2020-07-15 01:11:01] [Bot 3] Lost connection to Steam. EResult: 3 | Message: NoConnection
[2020-07-15 01:11:01] [Bot 4] Lost connection to Steam. EResult: 3 | Message: NoConnection
[2020-07-15 01:11:01] [Bot 2] Lost connection to Steam. EResult: 3 | Message: NoConnection
[2020-07-15 01:13:32] [Bot 1] Account logged in! Waiting for websession...
[2020-07-15 01:13:58] [Bot 1] Got websession and set cookies.
[2020-07-15 01:13:58] [Bot 1] Accepting offline friend & group invites...
[2020-07-15 01:14:07] [Bot 3] Account logged in! Waiting for websession...
[2020-07-15 01:14:14] [Bot 3] Got websession and set cookies.
[2020-07-15 01:14:14] [Bot 3] Accepting offline friend & group invites...
[2020-07-15 01:14:47] [Bot 2] Account logged in! Waiting for websession...
[2020-07-15 01:14:53] [Bot 2] Got websession and set cookies.
[2020-07-15 01:14:53] [Bot 2] Accepting offline friend & group invites...
[2020-07-15 01:14:59] [Bot 4] Account logged in! Waiting for websession...
[2020-07-15 01:15:00] [Bot 4] Got websession and set cookies.
[2020-07-15 01:15:00] [Bot 4] Accepting offline friend & group invites...
[2020-07-15 01:15:33] [Main] Account logged in! Waiting for websession...
[2020-07-15 01:15:34] [Main] Got websession and set cookies.
[2020-07-15 01:15:34] [Main] Accepting offline friend & group invites...
[2020-07-15 01:15:59] [Main] Friend message from 76561198801098870: !comment 2
/home/pi/Desktop/steam-comment-service-bot-master/src/bot.js:380
              if (controller.botobject[i].limitations.limited == true && !Object.keys(controller.botobject[i].myFriends).includes(steam64id)) {
                                                      ^

TypeError: Cannot read property 'limited' of null
    at SteamUser.<anonymous> (/home/pi/Desktop/steam-comment-service-bot-master/src/bot.js:380:55)
    at SteamUser.emit (events.js:180:13)
    at SteamUser._emitIdEvent (/home/pi/Desktop/steam-comment-service-bot-master/node_modules/steam-user/components/utility.js:28:12)
    at SteamUser.<anonymous> (/home/pi/Desktop/steam-comment-service-bot-master/node_modules/steam-user/components/chatroom.js:56:8)
    at handlers.forEach (/home/pi/Desktop/steam-comment-service-bot-master/node_modules/steam-user/components/classes/HandlerManager.js:37:12)
    at Array.forEach (<anonymous>)
    at HandlerManager.emit (/home/pi/Desktop/steam-comment-service-bot-master/node_modules/steam-user/components/classes/HandlerManager.js:36:12)
    at SteamUser._handleMessage (/home/pi/Desktop/steam-comment-service-bot-master/node_modules/steam-user/components/messages.js:543:24)
    at SteamUser._handleNetMessage (/home/pi/Desktop/steam-comment-service-bot-master/node_modules/steam-user/components/messages.js:478:7)
    at SteamUser.processMulti (/home/pi/Desktop/steam-comment-service-bot-master/node_modules/steam-user/components/messages.js:570:9)

Id of owner

Error/Element that doesn't work
Please include the full error you get or if you get none, describe precisely what happened.

Additional information
Please add any other information here if you have some.
hi i have another error when i put my id on ownerid i get this error

   if ((matches = input.match(/^STEAM_([0-5]):([0-1]):([0-9]+)$/))) {
                         ^

TypeError: input.match is not a function
at new SteamID (C:\Users\sergi\Desktop\steam-comment-service-bot-master\node_modules\steamid\index.js:72:23)
at C:\Users\sergi\Desktop\steam-comment-service-bot-master\src\controller.js:375:29
at Array.forEach ()
at Timeout. (C:\Users\sergi\Desktop\steam-comment-service-bot-master\src\controller.js:374:24)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)

PrivacyState Error, add error catch

[Bot 0] postUserComment error: Error: socket hang up
/home/pi/Desktop/steam-comment-service-bot-master/bot.js:122
if(user.privacyState !== "public") return bot.chatMessage(steamID, "Your profile seems to be private. Please edit your privacy settings on your profile and try again!") });
^

TypeError: Cannot read property 'privacyState' of undefined

TypeError: Cannot read property 'time' of undefined

So I got my last issue solved (thanks 👍 ) but I ran into an issue not long after. When I tried to get the comment bot to comment, it crashed instantly and gave me this message. I'd really appreciate any help.

C:\Users\Maytrix\Desktop\steam-comment-service-bot-master\src\bot.js:153
if ((Date.now() - lastcomment[lastcommentsteamID].time) < (config.commentcooldown * 60000)) { //check if user has cooldown applied
^

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

invalidpassword

Describe the bug
i started the script and it said you have to wait 8 seconds then
then i got this error:
Full error
PS C:\Users\choswiz\Desktop\steam-comment-service-bot-master> node start.js

[2020-06-14 19:40:46] What's new: Fixed bot corrupting the config and crashing on restart due to simultaneous writes.
[2020-06-14 19:40:46] Logging in... Estimated wait time: 8 seconds.
events.js:292
throw er; // Unhandled 'error' event
^

Error: InvalidPassword
at SteamUser. (C:\Users\choswiz\Desktop\steam-comment-service-bot-master\node_modules\steam-user\components\logon.js:468:16)
at C:\Users\choswiz\Desktop\steam-comment-service-bot-master\node_modules\steam-user\components\classes\HandlerManager.js:37:12
at Array.forEach ()
at HandlerManager.emit (C:\Users\choswiz\Desktop\steam-comment-service-bot-master\node_modules\steam-user\components\classes\HandlerManager.js:36:12)
at SteamUser._handleMessage (C:\Users\choswiz\Desktop\steam-comment-service-bot-master\node_modules\steam-user\components\messages.js:545:24)
at SteamUser._handleNetMessage (C:\Users\choswiz\Desktop\steam-comment-service-bot-master\node_modules\steam-user\components\messages.js:480:7)
at SteamUser.processMulti (C:\Users\choswiz\Desktop\steam-comment-service-bot-master\node_modules\steam-user\components\messages.js:572:9)
at SteamUser. (C:\Users\choswiz\Desktop\steam-comment-service-bot-master\node_modules\steam-user\components\messages.js:566:16)
at C:\Users\choswiz\Desktop\steam-comment-service-bot-master\node_modules\steam-user\components\classes\HandlerManager.js:37:12
at Array.forEach ()
Emitted 'error' event on SteamUser instance at:
at SteamUser. (C:\Users\choswiz\Desktop\steam-comment-service-bot-master\node_modules\steam-user\components\logon.js:471:9)
at C:\Users\choswiz\Desktop\steam-comment-service-bot-master\node_modules\steam-user\components\classes\HandlerManager.js:37:12
[... lines matching original stack trace ...]
at Array.forEach () {
eresult: 5
}

Additional context
thanks for helping mate i really appreciate your work

Offline add function to lastcomment writer broken

[Main] Added user while I was offline! User: 123456789
/home/pi/Desktop/steam-comment-service-bot-master/bot.js:67
lastcomment[new SteamID(Object.keys(bot.myFriends)[i].getSteam3RenderedID()).getSteamID64()] = { //add user to lastcomment file in order to also unfriend him when he never used !comment
^

TypeError: Object.keys(...)[i].getSteam3RenderedID is not a function
at SteamUser.bot.on (/home/pi/Desktop/steam-comment-service-bot-master/bot.js:67:67)

Help Me Please to fix this error (Invalid Password)

Error: InvalidPassword
at SteamUser. (D:\Download\steam-comment-service-bot-master\steam-comment-service-bot-master\node_modules\steam-user\components\logon.js:468:16)
at D:\Download\steam-comment-service-bot-master\steam-comment-service-bot-master\node_modules\steam-user\components\classes\HandlerManager.js:37:12
at Array.forEach ()
at HandlerManager.emit (D:\Download\steam-comment-service-bot-master\steam-comment-service-bot-master\node_modules\steam-user\components\classes\HandlerManager.js:36:12)
at SteamUser._handleMessage (D:\Download\steam-comment-service-bot-master\steam-comment-service-bot-master\node_modules\steam-user\components\messages.js:545:24)
at SteamUser._handleNetMessage (D:\Download\steam-comment-service-bot-master\steam-comment-service-bot-master\node_modules\steam-user\components\messages.js:480:7)
at SteamUser.processMulti (D:\Download\steam-comment-service-bot-master\steam-comment-service-bot-master\node_modules\steam-user\components\messages.js:572:9)
at SteamUser. (D:\Download\steam-comment-service-bot-master\steam-comment-service-bot-master\node_modules\steam-user\components\messages.js:566:16)
at D:\Download\steam-comment-service-bot-master\steam-comment-service-bot-master\node_modules\steam-user\components\classes\HandlerManager.js:37:12
at Array.forEach ()
Emitted 'error' event on SteamUser instance at:
at SteamUser. (D:\Download\steam-comment-service-bot-master\steam-comment-service-bot-master\node_modules\steam-user\components\logon.js:471:9)
at D:\Download\steam-comment-service-bot-master\steam-comment-service-bot-master\node_modules\steam-user\components\classes\HandlerManager.js:37:12
[... lines matching original stack trace ...]
at Array.forEach () {
eresult: 5
}

Half of the accounts loaded up ... the others gone...

so basically i've added about 10 account into logininfo.json

loaded up... only 5 of them appear on the window shell... the others gone..
any idea?

checked all my commas,password,accs,steamguard enabled,etc everything completely ready but
its does not appear on window shell..

Download time

Problem:
Cloning this repo take a good amount of time all because of the massive 20 mb gif.

Fix:
Use an external source for the gif.

Have a Good Day!

comment

Why as I write !comment 3, I get 1 comment?

What's this?

Could you explain how your code works in a video on Youtube?

Updater botobject undefined & config key checker

Please read the comment for a quick fix if your bot should crash because of this error!

Describe the bug
The 12 hour update checker crashes when trying to logOut bots in botobject

Full error
[2020-05-01 06:15:35] Starting the automatic updater...
/home/pi/Desktop/steam-comment-service-bot-master/updater.js:46
Object.keys(controller.botobject).forEach((e) => {
^

TypeError: Cannot read property 'botobject' of undefined
at Timeout.setTimeout [as _onTimeout] (/home/pi/Desktop/steam-comment-service-bot-master/updater.js:46:56)
at ontimeout (timers.js:466:11)
at tryOnTimeout (timers.js:304:5)
at Timer.listOnTimeout (timers.js:267:5)

Additional context
Restarting the bot then crashes when trying to check for existing config keys

Full error
[2020-05-01 11:58:35] Starting the automatic updater...
Updating bot.js...
Updating start.js...
Updating package.json...
Updating package-lock.json...
Updating config.json...
/home/pi/Desktop/steam-comment-service-bot-master/updater.js:146
if (!Object.keys(config).includes(e)) {
^

TypeError: Cannot convert undefined or null to object
at Function.keys ()
at Object.keys.forEach.e (/home/pi/Desktop/steam-comment-service-bot-master/updater.js:146:49)
at Array.forEach ()
at IncomingMessage.res.on (/home/pi/Desktop/steam-comment-service-bot-master/updater.js:145:53)
at IncomingMessage.emit (events.js:185:15)
at endReadableNT (_stream_readable.js:1106:12)
at process._tickCallback (internal/process/next_tick.js:178:19)

Bug, bots do not work correctly after comment

Not all bots leave comments when they leave comments the next time errors get out

[Main] Friend message from [U:1:838512512]: !comment
[Main] postUserComment error: Error: HTTP error 429
[Bot 1] postUserComment error: Error: HTTP error 429
[Bot 2] postUserComment error: Error: HTTP error 429
[Bot 3] postUserComment error: Error: HTTP error 429
[Bot 4] postUserComment error: Error: HTTP error 429
[Bot 5] postUserComment error: Error: HTTP error 429
[Bot 6] postUserComment error: Error: HTTP error 429
[Bot 7] postUserComment error: Error: HTTP error 429
[Bot 8] postUserComment error: Error: HTTP error 429

syntax error

Describe the bug
i started the script by typing node start.js
Full error
this is the error that i've got

PS C:\Users\choswiz\Desktop\steam-comment-service-bot-master> node start.js
internal/modules/cjs/loader.js:1175
throw err;
^

SyntaxError: C:\Users\choswiz\Desktop\steam-comment-service-bot-master\logininfo.json: Unexpected string in JSON at position 168
at parse ()
�[90m at Object.Module._extensions..json (internal/modules/cjs/loader.js:1172:22)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:986:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:879:14)�[39m
�[90m at Module.require (internal/modules/cjs/loader.js:1026:19)�[39m
�[90m at require (internal/modules/cjs/helpers.js:72:18)�[39m
at Object. (C:\Users\choswiz\Desktop\steam-comment-service-bot-master\src\controller.js:6:19)
�[90m at Module._compile (internal/modules/cjs/loader.js:1138:30)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:986:32)�[39m

Additional context
there's nothing else that's imp ig idk

thank you

Cannot read property 0

good morning and i wish you have a nice day i've got new isue and hope you can find the solution =)

TypeError: Cannot read property '0' of undefined
at Timeout._onTimeout (C:\Users\fractal\Desktop\steam-comment-service-bot-master\src\controller.js:178:41)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)

Add error catch or and general add to lastcomment function

/home/steam-comment-service-bot-master/bot.js:106
if ((Date.now() - lastcomment[new SteamID(steamID.getSteam3RenderedID()).getSteamID64()].time) < (config.commentcooldown * 60000)) { //check if user has cooldown applied
^

TypeError: Cannot read property 'time' of undefined
at SteamUser. (/home/steam-comment-service-bot-master/bot.js:106:102)

Invalid Password

I've followed all the steps correctly but it still gives me "Invalid password" in the powershell. I wrote the password within the quotation marks and thats it.

[2020-08-08 18:19:09] What's new: Added proxy support. Added webserver to request comments with URL. Fixed a lot of bugs and made other changes. (see more on GitHub)

[2020-08-08 18:19:09] Evaluating estimated login time...
[2020-08-08 18:19:09] Logging in... Estimated wait time: 10 seconds.
[2020-08-08 18:19:09] Loading logininfo for each account...
[2020-08-08 18:19:12] Starting bot.js for bot0...
[2020-08-08 18:19:13] group64id of yourgroup is stored in cache.json...
[2020-08-08 18:19:13] [Main] Trying to log in without proxy...
Error while trying to log in bot0: Error: InvalidPassword

Aborting because the first bot account always needs to be logged in!
Please correct what caused the error and try again.

unexpected token in json at position 560

i did all steps you showed on the video and when i type node start.js it sais c:\users\fractal\desktop\steam-comment-service-bot-master\config.json: unexpected token in json at position 560
�[90m at Object.Module._extensions..json (internal/modules/cjs/loader.js:1167:22)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:977:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:877:14)�[39m
�[90m at Module.require (internal/modules/cjs/loader.js:1019:19)�[39m
�[90m at require (internal/modules/cjs/helpers.js:77:18)�[39m
at Object. (C:\Users\fractal\Desktop\steam-comment-service-bot-master\src\controller.js:7:16)
�[90m at Module._compile (internal/modules/cjs/loader.js:1133:30)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:977:32)�[39m
PS C:\Users\fractal\Desktop\steam-comment-service-bot-master>

idk

Error/Element that doesn't work
Please include the full error you get or if you get none, describe precisely what happened.

Additional information
Please add any other information here if you have some.

SyntaxError: C:\Users\sergi\Desktop\steam-comment-service-bot-master\logininfo.json: Unexpected string in JSON at position 55
at JSON.parse ()
at Object.Module._extensions..json (internal/modules/cjs/loader.js:961:27)
at Module.load (internal/modules/cjs/loader.js:790:32)
at Function.Module._load (internal/modules/cjs/loader.js:703:12)
at Module.require (internal/modules/cjs/loader.js:830:19)
at require (internal/modules/cjs/helpers.js:68:18)
at Object. (C:\Users\sergi\Desktop\steam-comment-service-bot-master\src\controller.js:12:17)
at Module._compile (internal/modules/cjs/loader.js:936:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
at Module.load (internal/modules/cjs/loader.js:790:32)

steamID not defined in friend request accept function

/home/pi/Desktop/steam-comment-service-bot-master/bot.js:223
logger([${thisbot}] Added User: + new SteamID(steamID.getSteam3RenderedID()).getSteamID64())
^

ReferenceError: steamID is not defined
at SteamUser.bot.on (/home/pi/Desktop/steam-comment-service-bot-master/bot.js:223:56)

Unexpected token in JSON at position 55

hello firstly when i wrote npm install it gave the error in 1st screensho
firsterr
error2

t and when i wrote node start.js, i gave the error in 2nd screenshot please can you help

???????

SyntaxError: C:\Users\Win10User\Desktop\zarabianie\steam-comment-service-bot\config.json: Unexpected number in JSON at position 595
at JSON.parse ()
�[90m at Object.Module._extensions..json (internal/modules/cjs/loader.js:961:27)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:790:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:703:12)�[39m
�[90m at Module.require (internal/modules/cjs/loader.js:830:19)�[39m
�[90m at require (internal/modules/cjs/helpers.js:68:18)�[39m
at Object. (C:\Users\Win10User\Desktop\zarabianie\steam-comment-service-bot\src\controller.js:7:16)
�[90m at Module._compile (internal/modules/cjs/loader.js:936:30)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:790:32)�[39m
PS C:\Users\Win10User\Desktop\zarabianie\steam-comment-service-bot>

Messaging child bot crashes the process

Describe the bug
Messaging a child bot crashes the node process

Full error

H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\src\bot.js:512
          bot.chatMessage(steamID, `This is one account running in a bot cluster.\nPlease add the main bot (Profile ID: ${new SteamID(controller.botobject[0].String(steamID)).getSteamID64()}) and send him a !help message.\nIf you want to check out what this is about, type: !about`)
                                                                                                                                                              ^

TypeError: controller.botobject[0].String is not a function
    at SteamUser.<anonymous> (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\src\bot.js:512:159)
    at SteamUser.emit (events.js:310:20)
    at SteamUser._emitIdEvent (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\utility.js:28:12)
    at SteamUser.<anonymous> (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\chatroom.js:61:8)
    at H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\classes\HandlerManager.js:37:12
    at Array.forEach (<anonymous>)
    at HandlerManager.emit (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\classes\HandlerManager.js:36:12)
    at SteamUser._handleMessage (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\messages.js:555:24)
    at SteamUser._handleNetMessage (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\messages.js:490:7)
    at SteamUser.processMulti (H:\Sonstiges\Steam\Steam Bots\steam-comment-service-bot\node_modules\steam-user\components\messages.js:582:9)

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.