示例#1
0
        public async Task TrackGatariRecent(CommandContext commandContext,
                                            [Description("Gatari username"), RemainingText] string nickname)
        {
            GUser guser = null;

            if (!gapi.TryGetUser(nickname, ref guser))
            {
                await commandContext.RespondAsync($"Couldn't find user {nickname} on gatari.");

                return;
            }

            await tracking.AddGatariTrackRecentAsync(guser);

            await commandContext.RespondAsync($"User's {(guser is null ? "" : $"[{guser.abbr}]")} {guser.username} recent scores are being tracked.");