refactor: remove fate notification remnants

This commit is contained in:
goat 2020-01-31 00:09:43 +09:00
parent ea4b696a43
commit 0d27e971fc
2 changed files with 0 additions and 23 deletions

View file

@ -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;

View file

@ -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; }
}
}