Пример #1
0
        private async Task ReadText(string path)
        {
            Logging.Log($"Reading {path} !");
            Embed embed;

            try
            {
                string helpTextStr = File.ReadAllText(path);
                embed = EmbedHelper.BuildEmbedFromText(helpTextStr);
            }
            catch (Exception e)
            {
                Logging.Log($"Error reading {path} !");
                Logging.Log(e);
                await Context.Channel.SendMessageAsync($"<@{Context.User.Id}> Error supplying help!");

                return;
            }

            try
            {
                await Context.Channel.SendMessageAsync($"<@{Context.User.Id}>", embed : embed);
            }
            catch
            {
                Logging.Log($"(!help) I'm muted ;_;");
            }
        }