Beispiel #1
0
        public async Task ListTags()
        {
            var guildAcc = GlobalGuildAccounts.GetGuildAccount(Context.Guild.Id);
            var emb      = TagFunctions.BuildTagListEmbed(guildAcc);

            await ReplyAsync("", false, emb);
        }
Beispiel #2
0
        public async Task RemoveTag(string tagName)
        {
            var guildAcc = GlobalGuildAccounts.GetGuildAccount(Context.Guild.Id);
            var response = TagFunctions.RemoveTag(tagName, guildAcc);

            await ReplyAsync(response);
        }
Beispiel #3
0
        public async Task ListTags()
        {
            var userAcc = GlobalUserAccounts.GetUserAccount(Context.User.Id);
            var emb     = TagFunctions.BuildTagListEmbed(userAcc);

            await ReplyAsync("", false, emb);
        }
Beispiel #4
0
        public async Task RemoveTag(string tagName)
        {
            var userAcc  = GlobalUserAccounts.GetUserAccount(Context.User.Id);
            var response = TagFunctions.RemoveTag(tagName, userAcc);

            await ReplyAsync(response);
        }
Beispiel #5
0
        public async Task UpdateTag(string tagName, [Remainder] string tagContent)
        {
            var guildAcc = GlobalGuildAccounts.GetGuildAccount(Context.Guild.Id);
            //tagContent.Replace("@everyone", "@\u200beveryone").Replace("@here", "@\u200bhere");
            var response = TagFunctions.UpdateTag(tagName, tagContent, guildAcc);

            await ReplyAsync(response);
        }
Beispiel #6
0
        public async Task AddTag(string tagName, [Remainder] string tagContent)
        {
            var userAcc = GlobalUserAccounts.GetUserAccount(Context.User.Id);

            tagContent.Replace("@everyone", "@\u200beveryone").Replace("@here", "@\u200bhere");
            var response = TagFunctions.AddTag(tagName, tagContent, userAcc);

            await ReplyAsync(response);
        }
Beispiel #7
0
        public async Task ShowTag(string tagName = "")
        {
            if (string.IsNullOrWhiteSpace(tagName))
            {
                await ReplyAsync("You need to use this with some more input...\n" +
                                 "Try the `help ptag` command to get more information on how to use this command.");

                return;
            }
            var userAcc  = GlobalUserAccounts.GetUserAccount(Context.User.Id);
            var response = TagFunctions.GetTag(tagName, userAcc);

            await ReplyAsync(response);
        }