Fixed a few fun bugs
Signed-off-by: Emotion <emotion@emotionchild.com>
This commit is contained in:
parent
145eee4337
commit
6f2ad42b90
3 changed files with 23 additions and 24 deletions
|
@ -1,6 +1,5 @@
|
|||
#nullable disable
|
||||
using Ellie.Common.Yml;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Ellie.Common;
|
||||
|
||||
|
@ -112,9 +111,9 @@ public sealed class Creds : IBotCredentials
|
|||
""")]
|
||||
public string CoinmarketcapApiKey { get; set; }
|
||||
|
||||
// [Comment(@"https://polygon.io/dashboard/api-keys api key. Free plan allows for 5 queries per minute.
|
||||
// Used for stocks related commands.")]
|
||||
// public string PolygonIoApiKey { get; set; }
|
||||
// [Comment(@"https://polygon.io/dashboard/api-keys api key. Free plan allows for 5 queries per minute.
|
||||
// Used for stocks related commands.")]
|
||||
// public string PolygonIoApiKey { get; set; }
|
||||
|
||||
[Comment("""Api key used for Osu related commands. Obtain this key at https://osu.ppy.sh/p/api""")]
|
||||
public string OsuApiKey { get; set; }
|
||||
|
|
|
@ -2,7 +2,7 @@ using System.Net.Http.Json;
|
|||
using System.Text;
|
||||
using Ellie.Common.ModuleBehaviors;
|
||||
|
||||
namespace NadekoBot.Modules.Administration.Self;
|
||||
namespace Ellie.Modules.Administration.Self;
|
||||
|
||||
public sealed class CheckForUpdatesService : IEService, IReadyExecutor
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ public sealed partial class Music : EllieModule<IMusicService>
|
|||
{
|
||||
N = 0, No = 0, None = 0,
|
||||
T = 1, Track = 1, S = 1, Song = 1,
|
||||
Q = 2, Queue = 1, Playlist = 2, Pl = 2
|
||||
Q = 2, Queue = 2, Playlist = 2, Pl = 2
|
||||
}
|
||||
|
||||
public const string MUSIC_ICON_URL = "https://i.imgur.com/nhKS3PT.png";
|
||||
|
@ -110,10 +110,10 @@ public sealed partial class Music : EllieModule<IMusicService>
|
|||
try
|
||||
{
|
||||
var embed = _eb.Create()
|
||||
.WithOkColor()
|
||||
.WithAuthor(GetText(strs.queued_track) + " #" + (index + 1), MUSIC_ICON_URL)
|
||||
.WithDescription($"{trackInfo.PrettyName()}\n{GetText(strs.queue)} ")
|
||||
.WithFooter(trackInfo.Platform.ToString());
|
||||
.WithOkColor()
|
||||
.WithAuthor(GetText(strs.queued_track) + " #" + (index + 1), MUSIC_ICON_URL)
|
||||
.WithDescription($"{trackInfo.PrettyName()}\n{GetText(strs.queue)} ")
|
||||
.WithFooter(trackInfo.Platform.ToString());
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(trackInfo.Thumbnail))
|
||||
embed.WithThumbnailUrl(trackInfo.Thumbnail);
|
||||
|
|
Loading…
Reference in a new issue