Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (message.StartsWith(".sbp"))
- {
- string[] buycmd = message.Split(' ');
- string filebuyprice = buycmd[1];
- Bot.SteamFriends.SendChatMessage(OtherSID, type, "Changed my buy price to " + filebuyprice);
- if (buycmd.Length > 1)
- {
- string json = File.ReadAllText("settings.json");
- dynamic jsonObj = Newtonsoft.Json.JsonConvert.DeserializeObject(json);
- jsonObj["Bots"][0]["BuyPricePerKey"] = filebuyprice;
- string output = Newtonsoft.Json.JsonConvert.SerializeObject(jsonObj, Newtonsoft.Json.Formatting.Indented);
- File.WriteAllText("settings.json", output);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement