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