mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-05-27 11:40:05 +00:00
Making the instruction messages more catchy
This commit is contained in:
parent
c88b9d920e
commit
112c1f37c1
@ -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<string>();
|
||||
entries.Add(title);
|
||||
entries.Add("```");
|
||||
entries.AddRange(content);
|
||||
entries.Add("```");
|
||||
return string.Join(Environment.NewLine, entries.ToArray());
|
||||
}
|
||||
|
||||
public async Task GiveRoleReward()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user