|
|
|
@ -244,11 +244,9 @@ public abstract class ExportCommandBase : DiscordCommandBase
|
|
|
|
|
// Print the result
|
|
|
|
|
using (console.WithForegroundColor(ConsoleColor.White))
|
|
|
|
|
{
|
|
|
|
|
await console
|
|
|
|
|
.Output
|
|
|
|
|
.WriteLineAsync(
|
|
|
|
|
$"Successfully exported {channels.Count - errorsByChannel.Count} channel(s)."
|
|
|
|
|
);
|
|
|
|
|
await console.Output.WriteLineAsync(
|
|
|
|
|
$"Successfully exported {channels.Count - errorsByChannel.Count} channel(s)."
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Print errors
|
|
|
|
@ -258,11 +256,9 @@ public abstract class ExportCommandBase : DiscordCommandBase
|
|
|
|
|
|
|
|
|
|
using (console.WithForegroundColor(ConsoleColor.Red))
|
|
|
|
|
{
|
|
|
|
|
await console
|
|
|
|
|
.Error
|
|
|
|
|
.WriteLineAsync(
|
|
|
|
|
$"Failed to export {errorsByChannel.Count} the following channel(s):"
|
|
|
|
|
);
|
|
|
|
|
await console.Error.WriteLineAsync(
|
|
|
|
|
$"Failed to export {errorsByChannel.Count} the following channel(s):"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var (channel, error) in errorsByChannel)
|
|
|
|
@ -324,51 +320,33 @@ public abstract class ExportCommandBase : DiscordCommandBase
|
|
|
|
|
// Support Ukraine callout
|
|
|
|
|
if (!IsUkraineSupportMessageDisabled)
|
|
|
|
|
{
|
|
|
|
|
console
|
|
|
|
|
.Output
|
|
|
|
|
.WriteLine(
|
|
|
|
|
"┌────────────────────────────────────────────────────────────────────┐"
|
|
|
|
|
);
|
|
|
|
|
console
|
|
|
|
|
.Output
|
|
|
|
|
.WriteLine(
|
|
|
|
|
"│ Thank you for supporting Ukraine <3 │"
|
|
|
|
|
);
|
|
|
|
|
console
|
|
|
|
|
.Output
|
|
|
|
|
.WriteLine(
|
|
|
|
|
"│ │"
|
|
|
|
|
);
|
|
|
|
|
console
|
|
|
|
|
.Output
|
|
|
|
|
.WriteLine(
|
|
|
|
|
"│ As Russia wages a genocidal war against my country, │"
|
|
|
|
|
);
|
|
|
|
|
console
|
|
|
|
|
.Output
|
|
|
|
|
.WriteLine(
|
|
|
|
|
"│ I'm grateful to everyone who continues to │"
|
|
|
|
|
);
|
|
|
|
|
console
|
|
|
|
|
.Output
|
|
|
|
|
.WriteLine(
|
|
|
|
|
"│ stand with Ukraine in our fight for freedom. │"
|
|
|
|
|
);
|
|
|
|
|
console
|
|
|
|
|
.Output
|
|
|
|
|
.WriteLine(
|
|
|
|
|
"│ │"
|
|
|
|
|
);
|
|
|
|
|
console
|
|
|
|
|
.Output
|
|
|
|
|
.WriteLine(
|
|
|
|
|
"│ Learn more: https://tyrrrz.me/ukraine │"
|
|
|
|
|
);
|
|
|
|
|
console
|
|
|
|
|
.Output
|
|
|
|
|
.WriteLine(
|
|
|
|
|
"└────────────────────────────────────────────────────────────────────┘"
|
|
|
|
|
);
|
|
|
|
|
console.Output.WriteLine(
|
|
|
|
|
"┌────────────────────────────────────────────────────────────────────┐"
|
|
|
|
|
);
|
|
|
|
|
console.Output.WriteLine(
|
|
|
|
|
"│ Thank you for supporting Ukraine <3 │"
|
|
|
|
|
);
|
|
|
|
|
console.Output.WriteLine(
|
|
|
|
|
"│ │"
|
|
|
|
|
);
|
|
|
|
|
console.Output.WriteLine(
|
|
|
|
|
"│ As Russia wages a genocidal war against my country, │"
|
|
|
|
|
);
|
|
|
|
|
console.Output.WriteLine(
|
|
|
|
|
"│ I'm grateful to everyone who continues to │"
|
|
|
|
|
);
|
|
|
|
|
console.Output.WriteLine(
|
|
|
|
|
"│ stand with Ukraine in our fight for freedom. │"
|
|
|
|
|
);
|
|
|
|
|
console.Output.WriteLine(
|
|
|
|
|
"│ │"
|
|
|
|
|
);
|
|
|
|
|
console.Output.WriteLine(
|
|
|
|
|
"│ Learn more: https://tyrrrz.me/ukraine │"
|
|
|
|
|
);
|
|
|
|
|
console.Output.WriteLine(
|
|
|
|
|
"└────────────────────────────────────────────────────────────────────┘"
|
|
|
|
|
);
|
|
|
|
|
console.Output.WriteLine("");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|