@@ -52,6 +52,7 @@
|
|||||||
<li><strong>Open Trivia Database</strong> (opentdb.com) — trivia questions for Trivia</li>
|
<li><strong>Open Trivia Database</strong> (opentdb.com) — trivia questions for Trivia</li>
|
||||||
<li><strong>The Cat API</strong> (thecatapi.com) — random cat images for the cat command</li>
|
<li><strong>The Cat API</strong> (thecatapi.com) — random cat images for the cat command</li>
|
||||||
<li><strong>nekos.best</strong> (nekos.best) — hug GIFs for the hug command</li>
|
<li><strong>nekos.best</strong> (nekos.best) — hug GIFs for the hug command</li>
|
||||||
|
<li><strong>Pixabay</strong> (pixabay.com) — images for the image command</li>
|
||||||
</ul>
|
</ul>
|
||||||
<hr>
|
<hr>
|
||||||
<h2>4. Data Retention</h2>
|
<h2>4. Data Retention</h2>
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ SkyBot is a Valour.gg bot built with .NET 10.
|
|||||||
<li>hangman — channel-wide game of hangman with optional category (<code>hg <letter or word></code> to guess)</li>
|
<li>hangman — channel-wide game of hangman with optional category (<code>hg <letter or word></code> to guess)</li>
|
||||||
<li>wordle — channel-wide Wordle; guess the 5-letter word in 6 tries (<code>wg <word></code> to guess)</li>
|
<li>wordle — channel-wide Wordle; guess the 5-letter word in 6 tries (<code>wg <word></code> to guess)</li>
|
||||||
<li>trivia — channel-wide trivia question with 30 seconds to answer (<code>tg <A/B/C/D></code> to guess)</li>
|
<li>trivia — channel-wide trivia question with 30 seconds to answer (<code>tg <A/B/C/D></code> to guess)</li>
|
||||||
|
<li>image — fetch a random image matching your search (aliases: <code>img</code>)</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3>Chill</h3>
|
<h3>Chill</h3>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -86,6 +87,7 @@ available under the same license.
|
|||||||
<ul>
|
<ul>
|
||||||
<li>.NET 10</li>
|
<li>.NET 10</li>
|
||||||
<li>A Valour bot token</li>
|
<li>A Valour bot token</li>
|
||||||
|
<li>A <a href="https://pixabay.com/api/docs/">Pixabay API key</a> (free) — required for the <code>image</code> command</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2>Installation</h2>
|
<h2>Installation</h2>
|
||||||
<p>Fork this repository, then:</p>
|
<p>Fork this repository, then:</p>
|
||||||
@@ -100,6 +102,7 @@ provided <code>SkyBot.csproj</code> file.
|
|||||||
<h2>Configuration</h2>
|
<h2>Configuration</h2>
|
||||||
<p>Create a <code>.env</code> file in the root directory of the project with your bot token:</p>
|
<p>Create a <code>.env</code> file in the root directory of the project with your bot token:</p>
|
||||||
<pre><code>TOKEN=your-bot-token-here
|
<pre><code>TOKEN=your-bot-token-here
|
||||||
|
PIXABAY_API_KEY=your-pixabay-api-key-here
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<p>Then open <code>Config.cs</code> and update the following values:</p>
|
<p>Then open <code>Config.cs</code> and update the following values:</p>
|
||||||
<pre><code>public static readonly long OwnerId = your-owner-id-here;
|
<pre><code>public static readonly long OwnerId = your-owner-id-here;
|
||||||
|
|||||||
@@ -79,10 +79,11 @@ namespace SkyBot.Commands
|
|||||||
}
|
}
|
||||||
|
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.AppendLine($"**{target.Name}**");
|
sb.AppendLine($"**{target.Name.Trim()}**");
|
||||||
sb.AppendLine($"User ID: `{target.UserId}`");
|
sb.AppendLine($"User ID: `{target.UserId}`");
|
||||||
sb.AppendLine($"Member ID: `{target.Id}`");
|
sb.AppendLine($"Member ID: `{target.Id}`");
|
||||||
sb.AppendLine($"Nickname: `{(string.IsNullOrWhiteSpace(target.Nickname) ? "None" : target.Nickname)}`");
|
sb.AppendLine($"Nickname: `{(string.IsNullOrWhiteSpace(target.Nickname) ? "None" : target.Nickname)}`");
|
||||||
|
sb.AppendLine($"Subscription: `{(string.IsNullOrWhiteSpace(target.User.SubscriptionType) ? "None" : target.User.SubscriptionType)}`");
|
||||||
sb.AppendLine($"Status: `{(string.IsNullOrWhiteSpace(target.Status) ? "None" : target.Status)}`");
|
sb.AppendLine($"Status: `{(string.IsNullOrWhiteSpace(target.Status) ? "None" : target.Status)}`");
|
||||||
sb.AppendLine($"Primary Role: `{target.PrimaryRole?.Name ?? "None"}`");
|
sb.AppendLine($"Primary Role: `{target.PrimaryRole?.Name ?? "None"}`");
|
||||||
sb.AppendLine($"Roles: `{string.Join(", ", target.Roles.Select(r => r.Name))}`");
|
sb.AppendLine($"Roles: `{string.Join(", ", target.Roles.Select(r => r.Name))}`");
|
||||||
|
|||||||
Reference in New Issue
Block a user