SteamBot is a bot written in C# for the purpose of interacting with Steam Chat and Steam Trade. As of right now, about 6 contributors have all added to the bot. The bot is publicly available, and is available under the MIT License.
If you've recently just cloned this repository, there are a few things you need to do.
- Run
git submodule init
in order to initalize the submodule configuration file. - Run
git submodule update
to pull the latest version of the submodules that are included (namely, SteamKit2). - Build the program. Since SteamKit2 is licensed under the LGPL, and SteamBot should be released under the MIT license, SteamKit2's code cannot be included in SteamBot. This includes executables. We'll probably make downloads available on github.
- Continue on like normal.
- First, you need to configure your bots.
- Edit the file
settings.json
in\SteamBot\bin\Debug
. - Put your API key in there with the bots usernames and passwords - This is important, as the bot will not work without it.
- You can run multiple bots at the same time by having multiple elements in the
Bots
array.
- Next you need to actually edit the bot to make it do what you want.
- You mainly only need to edit the file
TradeEnterTradeListener.cs
, as it contains events for everything you need. - Just add your code to each of the events. It explains what each of them do in the code comments.
- Look at Usage below to see some usefull functions.
Here some useful functions you can use in TradeEnterTradeListener:
The master class referring back to the current trade.
Add an item by its id
property into the specified slot in the trade.
Same as AddItem, but you specify the defindex of the item instead of the id.
Removes the specified item from the trade.
Sets the trade ready or not ready according to the boolean.
Accepts the trade.
ends a message to the other user over trade chat.
If it's a bug, open an Issue; if you have a fix, open a Pull Request. A list of contributors (add yourself if you want to): - Jessecar96 (project lead) - geel9 - Dr. Cat, MD or redjazz96
SteamBot is licensed under the MIT license. Check out LICENSE for more details.
Check out CONTRIBUTING.md.