diff --git a/EliteBGS/MainWindow.xaml b/EliteBGS/MainWindow.xaml
index 92284f6..4412c87 100644
--- a/EliteBGS/MainWindow.xaml
+++ b/EliteBGS/MainWindow.xaml
@@ -184,7 +184,10 @@
-
+
+
+
+
transactions = parser.Parse(entries, options);
+ Commanders.ItemsSource = parser.Commanders;
+ if (Commanders.Items.Count > 0) {
+ Commanders.SelectedIndex = 0;
+ }
+
// Filter the transactions down to the given time frame
transactions = transactions
.Where(t => t.CompletedAtDateTime >= start && t.CompletedAtDateTime <= end)
@@ -673,10 +678,15 @@ public partial class MainWindow : MetroWindow {
return;
}
+ string commander = "EDBGS";
+ if (Commanders.SelectedIndex >= 0) {
+ commander = Commanders.SelectedItem.ToString();
+ }
+
foreach (var hook in hooks) {
try {
foreach (var chunk in chunks) {
- DiscordPoster.PostToDiscord(hook, chunk);
+ DiscordPoster.PostToDiscord(hook, chunk, commander);
}
Log(string.Format("successfully posted to discord webhook `{0}`", hook.Name));
} catch (Exception ex) {