mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
refactor: remove fate notification remnants
This commit is contained in:
parent
ea4b696a43
commit
0d27e971fc
2 changed files with 0 additions and 23 deletions
|
|
@ -81,28 +81,6 @@ namespace Dalamud.DiscordBot {
|
||||||
return Task.CompletedTask;
|
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) {
|
public async Task ProcessCfPop(JObject contentFinderCondition) {
|
||||||
if (!this.IsConnected)
|
if (!this.IsConnected)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ namespace Dalamud.DiscordBot
|
||||||
|
|
||||||
public ChannelConfiguration CfNotificationChannel { get; set; }
|
public ChannelConfiguration CfNotificationChannel { get; set; }
|
||||||
public ChannelConfiguration CfPreferredRoleChannel { get; set; }
|
public ChannelConfiguration CfPreferredRoleChannel { get; set; }
|
||||||
public ChannelConfiguration FateNotificationChannel { get; set; }
|
|
||||||
public ChannelConfiguration RetainerNotificationChannel { get; set; }
|
public ChannelConfiguration RetainerNotificationChannel { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue