public async Task UnAlt(IUser user) { await Score.MarkAltOf(Context.Client, user.Id, null); await ReplyAsync($"Marked {user.Mention} as an alt of nobody."); }
public async Task Alt(IUser user, IUser user2) { await Score.MarkAltOf(Context.Client, user.Id, user2.Id); await ReplyAsync($"Marked {user.Mention} as an alt of {user2.Mention}."); }
public async Task Alt(IUser user) { var scoreData = await Score.GetScoreDataAsync(Context.Client, user.Id); await ReplyAsync($"{user.Mention} is an alt of {(scoreData.AltOfUserId.HasValue ? MentionUtils.MentionUser(scoreData.AltOfUserId.Value) : "nobody")}."); }
public async Task AutoDaily(bool enabled) { await Score.SetHasDisabledAutoDaily(Context.Client, Context.User.Id, !enabled); await ReplyAsync($"Set auto daily to {enabled}. Auto daily automatically calls g!daily when you try to call a gem command and do not possess the necessary gems."); }
public async Task ThresholdWarning(bool enabled) { await Score.SetHasDisabledThresholdWarning(Context.Client, Context.User.Id, !enabled); await ReplyAsync($"Set threshold warnings to {enabled}. Threshold warnings warn you when your inertia drops below 10%."); }
public async Task Confirm(SocketGuildUser user) { await SocialScoreWatcher.UpdateUserAsync(Context.Client, user, await Score.GetScoreDataAsync(Context.Client, user.Id), true); }
public async Task Daily() { var (scoreData, amount, bonus) = await Score.DailyAsync(Context.Client, Context.User.Id); await ReplyAsync(GetDailyStr(scoreData, amount, bonus)); }
public async Task Transfer(IUser user1, IUser user2) { await Score.SwapUsers(Context.Client, user1.Id, user2.Id); await ReplyAsync( $"Swapped {MentionUtils.MentionUser(user1.Id)}'s user data with {MentionUtils.MentionUser(user2.Id)}'s."); }