From 567c6f87bf25177b67546250dbfdc7fcd5a397e8 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Fri, 10 Feb 2017 15:26:06 +0100 Subject: [PATCH] SoundcloudClientId is no longer mandatory in order to play soundcloud songs. (thanks to samvaio <3) --- src/NadekoBot/Services/Impl/BotCredentials.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/NadekoBot/Services/Impl/BotCredentials.cs b/src/NadekoBot/Services/Impl/BotCredentials.cs index fdd0a1fa..47906e8c 100644 --- a/src/NadekoBot/Services/Impl/BotCredentials.cs +++ b/src/NadekoBot/Services/Impl/BotCredentials.cs @@ -25,7 +25,17 @@ namespace NadekoBot.Services.Impl public string LoLApiKey { get; } public string OsuApiKey { get; } - public string SoundCloudClientId { get; } + private string _soundcloudClientId; + public string SoundCloudClientId { + get { + return string.IsNullOrWhiteSpace(_soundcloudClientId) + ? "d0bd7768e3a1a2d15430f0dccb871117" + : _soundcloudClientId; + } + set { + _soundcloudClientId = value; + } + } public DBConfig Db { get; } public int TotalShards { get; }