I love the idea behind it, but one thing isn't covered anywhere: How does the steambot send the messages?
I assume the following (by taking a quick peek at the js):
- A report comes in, it gets sent by a web protocol to the node.
- The bot processes the report, then sends it to all friends. (Don't know if it does an online check.)
Since I just assume that, I also assume the following (by peeking at the js a bit more):
- Friend requests are automatically accepted.
- Messages sent to the bot will log (guessing in the actual console of the node)
- Chatroom invites are automatically accepted and joined. Once in a chatroom it sends messages to the chatroom as well. (Not sure on that second part)
- Any announcement from groups the bot is in are logged.
- It checks every 5000 seconds for life and reconnects if need be.
Did I get close?
Anyway, based on these assumptions, and pardon me if I am totally off, I suggest the following:
- Add in a bit of documentation on how the bot actually works
- Remove the auto-accept friend requests (or mention it since it could be an issue if you have a person add the bot randomly and they get your admin messages)
- Add information on what the bot does with messages it gets sent, chatrooms, announcements, etc.
- Decrease the keep-alive timer to 3600 (once every hour) and log if it fails.
- Disable the !report from showing up in chat.
- (If possible, this being just a feature suggestion) If a message has a certain prefix (like !g or something) it sends the message to the server (minus the prefix)
- (This also being a feature suggestion) Integrate a method for multiple servers (so if the previous gets added you can send a message to a specific server)
- (Another feature suggestion) Send the report to all logged in admins in the server (in case they don't have the bot added, or have steam notifications disabled, w/e)
That all being said and done, I'm going to test it out soon
Alright, after testing it a bit I see a few things:
Overall:
- The instructions (when using CentOS 6.5 64bit) are somewhat incomplete as when you use yum to install nodejs it installs the 10.x version. I just realized that you have it utilize the local copy you download, but if you wanted to do it right you would copy the new nodejs into the bin folder so that it works globally rather than having to specify ./node rather than node (because we installed node to the system and linux people will realize that)
- Relating to the above: When using npm it throws the error that node-steam must have node version 12.x and doesn't install (or maybe it does but the error seems like it doesn't.)
app.js:
- Whenever a chat is initiated or a user starts typing the console gets a message saying "Received message: " and is blank.
- Whenever a friend is added it doubles the message
Addon:
- I feel like an idiot cause I put the addon in the wrong location. More info coming soon on my thoughts on the game portion..
- (Using the screenshot and video since I haven't gotten ingame to work) The vgui seems a little... Off. The text in the report should be at the top of the box, not the middle. And not sure what the small box on the side is.