Beispiel #1
0
 public async Task UnAlt(IUser user)
 {
     await Score.MarkAltOf(Context.Client, user.Id, null);
     await ReplyAsync($"Marked {user.Mention} as an alt of nobody.");
 }
Beispiel #2
0
 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}.");
 }
Beispiel #3
0
 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")}.");
 }
Beispiel #4
0
 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.");
 }
Beispiel #5
0
 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%.");
 }
Beispiel #6
0
 public async Task Confirm(SocketGuildUser user)
 {
     await SocialScoreWatcher.UpdateUserAsync(Context.Client, user,
         await Score.GetScoreDataAsync(Context.Client, user.Id), true);
 }
Beispiel #7
0
 public async Task Daily()
 {
     var (scoreData, amount, bonus) = await Score.DailyAsync(Context.Client, Context.User.Id);
     await ReplyAsync(GetDailyStr(scoreData, amount, bonus));
 }
Beispiel #8
0
 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.");
 }