-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add chapter on chat messages #50
Comments
I was actually curious about this and figured it out myself. If you like I can give the code for it with some examples of commands, etc. |
Here are some snippets. My chat log formatting is a bit different however you can change it. Added 2 functions, 1 for giving all your items of a specific game to the bot and the other being to take all the item from the bot in a specific game. The chat listener at least in this code block ignores everything that isnt considered admin of the bot. Still need to do an array for the admin list but for now it works.
|
Thanks @Zendrex! If you feel like it, you can write the chapter around your code. No worries if you don't have time, though, I'll definitely get around to this in the next couple weeks. |
If I get some extra time on my hands I will go ahead and fork the repo and work on some docs for it. |
hello this is not working, i define the manager but it says loadinventory is not a function |
@kebaburmum Try |
I solved it already but I have a new problem. |
@kebaburmum Specify const logOnOptions = {
accountName: config.login.username,
password : config.login.password,
twoFactorCode: SteamTotp.generateAuthCode(config.login.shared_secret),
rememberPassword: true
} |
Alright got it, it! Thank you @DentFuse |
@DentFuse I dont know how good you are, but you seems like a experienced guy with node.js. at the chapter 2.3 - Sending trade offers, is there any way to send a specific item for their keys? And maybe how to create a chat command to process the offer? |
@kebaburmum Refer to this to understand chat messages and commands. Read the API docs and think of how you can achieve what you want. |
@DentFuse Hello I havent figured it out, but I saw a quite interesting things there. Is it somehow possible at this chapter https://github.com/Steam-Bot-Basics/node-steam-guide/blob/master/Chapter%203%20-%20User%20Interaction/Chapter%203.4%20-%20Commenting%20on%20Profile%20%26%20Removing%20Friends/README.md for example when you write !remove, the bot will remove you, but is it possible somehow that you can tell me how to for example remove other users? like !remove and here ill put steam id. It would be really cool |
As I said im really new so pls take it easy on me |
Both handling and sending
The text was updated successfully, but these errors were encountered: