public async Task UpdateWowSpec(SocketUser user, [Summary("The current spec you are playing in World of Warcraft")][Remainder] string spec)
            {
                if (spec.ToLower() != "tank" || spec.ToLower() != "dps" || spec.ToLower() != "healer")
                {
                    await ReplyAsync("Sorry the accepted specs are: ``Tank``, ``DPS``, ``Healer``");
                }
                else
                {
                    switch (spec.ToLower())
                    {
                    case "dps":
                        spec = "DPS";
                        break;

                    case "tank":
                        spec = "Tank";
                        break;

                    case "healer":
                        spec = "Healer";
                        break;

                    default:
                        break;
                    }
                    UserAccounts.AccountUpdate(user, spec, UserAccounts.UpdateType.WowMainSpec);
                    await ReplyAsync("", false, EmbedHandler.CreateEmbed("Account Updated", $"**The Current Main Spec Has Been Set To: __{spec}__**", EmbedHandler.EmbedMessageType.Success, true));
                }
            }
 public async Task UpdateIstrial(SocketUser user, [Summary("The current alt you have in World of Warcraft")][Remainder] string returning)
 {
     if (returning.ToLower() != "true" && returning.ToLower() != "false")
     {
         await ReplyAsync("Error: Accepted values: True / False");
     }
     else
     {
         UserAccounts.AccountUpdate(user, returning, UserAccounts.UpdateType.IsTrial);
         await ReplyAsync("", false, EmbedHandler.CreateEmbed("Account Updated", $"**The Trial Status Has Been Set To: __{returning}__**", EmbedHandler.EmbedMessageType.Success, true));
     }
 }
Exemple #3
0
        public async Task Reporter([Summary("The user who you're reporting. (@ them)")] SocketUser reportedUser, [Summary("The reason you're reporting them.")][Remainder] string reason)
        {
            ISocketMessageChannel channel = (ISocketMessageChannel)Context.Guild.GetChannel(514112072326578207);
            var requestingUser            = (SocketGuildUser)Context.User;

            if (UtilService.IsOfficer(requestingUser.Roles))
            {
                UserAccounts.AccountUpdate(reportedUser, "1", UserAccounts.UpdateType.AdminReport);
            }
            else
            {
                UserAccounts.AccountUpdate(reportedUser, "1", UserAccounts.UpdateType.UserReport);
            }
            UserAccounts.AccountUpdate(Context.User, "1", UserAccounts.UpdateType.ReportMade);
            await channel.SendMessageAsync("", false, UtilService.Report(reportedUser, Context.User, (SocketChannel)Context.Channel, reason));
        }
        public async Task MissedRaid(SocketUser user, [Remainder] string reason = "")
        {
            ISocketMessageChannel channel = (ISocketMessageChannel)Context.Guild.GetChannel(514112072326578207);

            if (String.IsNullOrEmpty(reason))
            {
                UserAccounts.AccountUpdate(user, "1", UserAccounts.UpdateType.MissedRaidNoReason);
                await channel.SendMessageAsync("", false, UtilService.Report(Context.User, user, (SocketChannel)Context.Channel, $"**Missed Raid**\n\n**Reason Given**: **__NONE__**"));
                await ReplyAsync($"Account Updated for {user.Username}");
            }
            else
            {
                UserAccounts.AccountUpdate(user, "1", UserAccounts.UpdateType.MissedRaidWithReason);
                await channel.SendMessageAsync("", false, UtilService.Report(Context.User, user, (SocketChannel)Context.Channel, $"**Missed Raid**\n\n**Reason Given**: {reason}"));
                await ReplyAsync($"Account Updated for {user.Username}");
            }
        }
 public async Task UpdateMain(SocketUser user, [Summary("The name of your main on World of Warcraft")][Remainder] string main)
 {
     UserAccounts.AccountUpdate(user, main, UserAccounts.UpdateType.WowMain);
     await ReplyAsync("", false, EmbedHandler.CreateEmbed("Account Updated", $"**The Main Has Been Set To: __{main}__**", EmbedHandler.EmbedMessageType.Success, true));
 }
 public async Task UpdateWowAltSpec(SocketUser user, [Summary("The current alt you have in World of Warcraft")][Remainder] string spec)
 {
     UserAccounts.AccountUpdate(user, spec, UserAccounts.UpdateType.WowAltSpec);
     await ReplyAsync("", false, EmbedHandler.CreateEmbed("Account Updated", $"**The WoW Alt's Spec Has Been Set To: __{spec}__**", EmbedHandler.EmbedMessageType.Success, true));
 }
 public async Task UpdateWowGuildRank(SocketUser user, [Summary("The current rank you have in World of Warcraft")][Remainder] string rank)
 {
     UserAccounts.AccountUpdate(user, rank, UserAccounts.UpdateType.GuildRank);
     await ReplyAsync("", false, EmbedHandler.CreateEmbed("Account Updated", $"**The Guild Rank Has Been Set To: __{rank}__**", EmbedHandler.EmbedMessageType.Success, true));
 }