mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
10 lines
333 B
C#
10 lines
333 B
C#
namespace NadekoBot.Services;
|
|
|
|
public static class RedisImageExtensions
|
|
{
|
|
private const string OldCdnUrl = "nadeko-pictures.nyc3.digitaloceanspaces.com";
|
|
private const string NewCdnUrl = "cdn.nadeko.bot";
|
|
|
|
public static Uri ToNewCdn(this Uri uri)
|
|
=> new(uri.ToString().Replace(OldCdnUrl, NewCdnUrl));
|
|
} |