Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 911 forks source link

HelpCmd / AddCmd / RemoveCmd don't work! #92

Closed the-sharp-shooter closed 11 years ago

the-sharp-shooter commented 11 years ago

I am admin of the bot but when I try to use any of the help, add or remove commands it doesn't work. Either by steam chat or trade chat.

Any help ?

Philipp15b commented 11 years ago

You have to manually change the code in Program.cs. This should probably be changed.

teliosdev commented 11 years ago

This issue isn't really helpful. Please read CONTRIBUTING.md before submitting an issue. :P

teliosdev commented 11 years ago

@Philipp15b he shouldn't have to do that if he configures settings.json correctly.

Philipp15b commented 11 years ago

I think he wants to use admin commands only for admins and a regular user handler for all other users which is not possible with the current implementation, right?

cwhelchel commented 11 years ago

It's not really clear what exactly you're trying to do, but I assume that you mean the commands for the AdminUserHandler are not working correctly.

Make sure your settings.json has a bot configured with the BotControlClass to be SteamBot.AdminUserHandler. The relevant line look like this:

"BotControlClass": "SteamBot.AdminUserHandler",

If you're trying a more complicated setup where users are handled differently (as @Philipp15b is suggesting) then to code will have to be changed. Either the AdminUserHandler changes to handle two separate types of users or the UserHandler stuff changes to allow multiple handlers per bot.

the-sharp-shooter commented 11 years ago

Changing BotControlClass to be SteamBot.AdminUserHandler solved it. Thanks cwhelchel.

@Philipp15b, I was expecting to have exactly that, which would make the most sense, but at least I knwo how it works now, so thank you guys!

And sorry for my post, it's my first time working on something like this, and my first day of C# and Visual Studio so thanks for your patience.

(just another thing, I'm willing to pay someone to work a little arround this program for my community, to crate a system that I'm thinking about, can I contact any of you guys ? let me know ;D )

teliosdev commented 11 years ago

Add me on steam if you want help.