private void UpdateDotaSub(bool onOff, SocketUser user) { var rotnBotUser = _rotnBotUserService.GetUser(user); rotnBotUser.DotaNotificationsOn = onOff; _rotnBotUserService.AddOrUpdateUser(rotnBotUser); }
public async Task SetMySteamId([Summary("The user's steam Id")] string steamId) { if (steamId.Length > 10) { long steamId64; if (long.TryParse(steamId, out steamId64)) { steamId = Convert64BitSteamID(steamId64); } } RotnBotUser rotnBotUser = _rotnBotUserService.GetUser(Context.Message.Author); rotnBotUser.SteamUserId = steamId; _rotnBotUserService.AddOrUpdateUser(rotnBotUser); await ReplyAsync("Steam ID set. For " + Context.Message.Author.ToString()); }
public async Task MyPointsAsync() { RotnBotUser user = _rotnBotUserService.GetUser(Context.Message.Author); await ReplyAsync($"{Context.Message.Author}, you have {user.Points} points"); }