From f02ac7cd78492a9eb288111403c040adb9a4582a Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sun, 6 Aug 2017 17:34:52 +0200 Subject: [PATCH] renamed hitbox to smashcast --- .../Modules/Administration/MigrationCommands.cs | 2 +- .../Searches/Services/StreamNotificationService.cs | 4 ++-- .../Modules/Searches/StreamNotificationCommands.cs | 4 ++-- src/NadekoBot/Resources/CommandStrings.resx | 10 +++++----- .../Services/Database/Models/FollowedStream.cs | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/MigrationCommands.cs b/src/NadekoBot/Modules/Administration/MigrationCommands.cs index b2d6d2ea..1228690a 100644 --- a/src/NadekoBot/Modules/Administration/MigrationCommands.cs +++ b/src/NadekoBot/Modules/Administration/MigrationCommands.cs @@ -215,7 +215,7 @@ namespace NadekoBot.Modules.Administration type = FollowedStream.FollowedStreamType.Mixer; break; case StreamNotificationConfig0_9.StreamType.Hitbox: - type = FollowedStream.FollowedStreamType.Hitbox; + type = FollowedStream.FollowedStreamType.Smashcast; break; default: break; diff --git a/src/NadekoBot/Modules/Searches/Services/StreamNotificationService.cs b/src/NadekoBot/Modules/Searches/Services/StreamNotificationService.cs index af651fcf..679e59a5 100644 --- a/src/NadekoBot/Modules/Searches/Services/StreamNotificationService.cs +++ b/src/NadekoBot/Modules/Searches/Services/StreamNotificationService.cs @@ -86,7 +86,7 @@ namespace NadekoBot.Modules.Searches.Services StreamStatus result; switch (stream.Type) { - case FollowedStream.FollowedStreamType.Hitbox: + case FollowedStream.FollowedStreamType.Smashcast: var hitboxUrl = $"https://api.hitbox.tv/media/status/{stream.Username.ToLowerInvariant()}"; if (checkCache && _cachedStatuses.TryGetValue(hitboxUrl, out result)) return result; @@ -178,7 +178,7 @@ namespace NadekoBot.Modules.Searches.Services public string GetLink(FollowedStream fs) { - if (fs.Type == FollowedStream.FollowedStreamType.Hitbox) + if (fs.Type == FollowedStream.FollowedStreamType.Smashcast) return $"https://www.hitbox.tv/{fs.Username}/"; if (fs.Type == FollowedStream.FollowedStreamType.Twitch) return $"https://www.twitch.tv/{fs.Username}/"; diff --git a/src/NadekoBot/Modules/Searches/StreamNotificationCommands.cs b/src/NadekoBot/Modules/Searches/StreamNotificationCommands.cs index 2fb88ce6..0dab151a 100644 --- a/src/NadekoBot/Modules/Searches/StreamNotificationCommands.cs +++ b/src/NadekoBot/Modules/Searches/StreamNotificationCommands.cs @@ -27,8 +27,8 @@ namespace NadekoBot.Modules.Searches [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] [RequireUserPermission(GuildPermission.ManageMessages)] - public async Task Hitbox([Remainder] string username) => - await TrackStream((ITextChannel)Context.Channel, username, FollowedStream.FollowedStreamType.Hitbox) + public async Task Smashcast([Remainder] string username) => + await TrackStream((ITextChannel)Context.Channel, username, FollowedStream.FollowedStreamType.Smashcast) .ConfigureAwait(false); [NadekoCommand, Usage, Description, Aliases] diff --git a/src/NadekoBot/Resources/CommandStrings.resx b/src/NadekoBot/Resources/CommandStrings.resx index 64b261ca..18def6af 100644 --- a/src/NadekoBot/Resources/CommandStrings.resx +++ b/src/NadekoBot/Resources/CommandStrings.resx @@ -1809,14 +1809,14 @@ `{0}lolban` - - hitbox hb + + smashcast hb - + Notifies this channel when a certain user starts streaming. - - `{0}hitbox SomeStreamer` + + `{0}smashcast SomeStreamer` twitch tw diff --git a/src/NadekoBot/Services/Database/Models/FollowedStream.cs b/src/NadekoBot/Services/Database/Models/FollowedStream.cs index f653d3f9..b49bc430 100644 --- a/src/NadekoBot/Services/Database/Models/FollowedStream.cs +++ b/src/NadekoBot/Services/Database/Models/FollowedStream.cs @@ -9,7 +9,7 @@ public enum FollowedStreamType { - Twitch, Hitbox, Mixer + Twitch, Smashcast, Mixer } public override int GetHashCode() =>