Closed the-sharp-shooter closed 12 years ago
You have to manually change the code in Program.cs. This should probably be changed.
This issue isn't really helpful. Please read CONTRIBUTING.md before submitting an issue. :P
@Philipp15b he shouldn't have to do that if he configures settings.json correctly.
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?
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.
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 )
Add me on steam if you want help.
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 ?