From 112c1f37c18c6ae949fbfe0607b733b814ca58d8 Mon Sep 17 00:00:00 2001 From: ThatBen Date: Fri, 11 Apr 2025 15:19:03 +0200 Subject: [PATCH] Making the instruction messages more catchy --- .../Commands/CheckResponseHandler.cs | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/Tools/BiblioTech/Commands/CheckResponseHandler.cs b/Tools/BiblioTech/Commands/CheckResponseHandler.cs index c3cff1b1..8d20e5bf 100644 --- a/Tools/BiblioTech/Commands/CheckResponseHandler.cs +++ b/Tools/BiblioTech/Commands/CheckResponseHandler.cs @@ -1,4 +1,5 @@ -using BiblioTech.CodexChecking; +using System.Linq; +using BiblioTech.CodexChecking; using BiblioTech.Options; using Discord; @@ -27,15 +28,28 @@ namespace BiblioTech.Commands public async Task GiveCidToUser(string cid) { - await context.Followup("Please download this CID using your Codex node. " + - "Then provide the content of the downloaded file as argument to this command. " + - $"`{cid}`"); + await context.Followup( + FormatCatchyMessage("[💾] Please download this CID using your Codex node.", + $"👉 `{cid}`.", + "👉 Then provide the *content of the downloaded file* as argument to this command.")); } public async Task GiveDataFileToUser(string fileContent) { - await context.SendFile(fileContent, "Please download the attached file. Upload it to your Codex node, " + - "then provide the CID as argument to this command."); + await context.SendFile(fileContent, + FormatCatchyMessage("[💿] Please download the attached file.", + "👉 Upload it to your Codex node.", + "👉 Then provide the *CID* as argument to this command.")); + } + + private string FormatCatchyMessage(string title, params string[] content) + { + var entries = new List(); + entries.Add(title); + entries.Add("```"); + entries.AddRange(content); + entries.Add("```"); + return string.Join(Environment.NewLine, entries.ToArray()); } public async Task GiveRoleReward()