From 0d27e971fc8b8ae0250fc9bfa420b2fd5c14fef7 Mon Sep 17 00:00:00 2001 From: goat Date: Fri, 31 Jan 2020 00:09:43 +0900 Subject: [PATCH] refactor: remove fate notification remnants --- Dalamud/DiscordBot/DiscordBotManager.cs | 22 ------------------- .../DiscordBot/DiscordFeatureConfiguration.cs | 1 - 2 files changed, 23 deletions(-) diff --git a/Dalamud/DiscordBot/DiscordBotManager.cs b/Dalamud/DiscordBot/DiscordBotManager.cs index 5371e6db5..d4939d29e 100644 --- a/Dalamud/DiscordBot/DiscordBotManager.cs +++ b/Dalamud/DiscordBot/DiscordBotManager.cs @@ -81,28 +81,6 @@ namespace Dalamud.DiscordBot { return Task.CompletedTask; } - public async Task ProcessFate(int id) { - if (this.config.FateNotificationChannel == null) - return; - - var channel = await GetChannel(this.config.FateNotificationChannel); - - dynamic fateInfo = XivApi.GetFate(id).GetAwaiter().GetResult(); - - this.dalamud.Framework.Gui.Chat.Print("Watched Fate spawned: " + (string) fateInfo.Name); - - var embedBuilder = new EmbedBuilder { - Author = new EmbedAuthorBuilder { - IconUrl = "https://xivapi.com" + (string) fateInfo.Icon, - Name = "Fate spawned: " + (string) fateInfo.Name - }, - Color = new Color(0xa73ed1), - Timestamp = DateTimeOffset.Now - }; - - await channel.SendMessageAsync(embed: embedBuilder.Build()); - } - public async Task ProcessCfPop(JObject contentFinderCondition) { if (!this.IsConnected) return; diff --git a/Dalamud/DiscordBot/DiscordFeatureConfiguration.cs b/Dalamud/DiscordBot/DiscordFeatureConfiguration.cs index dcf86dd22..551f3d8ad 100644 --- a/Dalamud/DiscordBot/DiscordFeatureConfiguration.cs +++ b/Dalamud/DiscordBot/DiscordFeatureConfiguration.cs @@ -44,7 +44,6 @@ namespace Dalamud.DiscordBot public ChannelConfiguration CfNotificationChannel { get; set; } public ChannelConfiguration CfPreferredRoleChannel { get; set; } - public ChannelConfiguration FateNotificationChannel { get; set; } public ChannelConfiguration RetainerNotificationChannel { get; set; } } }