renamed hitbox to smashcast

This commit is contained in:
Master Kwoth 2017-08-06 17:34:52 +02:00
parent e2d7ed343c
commit f02ac7cd78
5 changed files with 11 additions and 11 deletions

View File

@ -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;

View File

@ -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}/";

View File

@ -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]

View File

@ -1809,14 +1809,14 @@
<data name="lolban_usage" xml:space="preserve">
<value>`{0}lolban`</value>
</data>
<data name="hitbox_cmd" xml:space="preserve">
<value>hitbox hb</value>
<data name="smashcast_cmd" xml:space="preserve">
<value>smashcast hb</value>
</data>
<data name="hitbox_desc" xml:space="preserve">
<data name="smashcast_desc" xml:space="preserve">
<value>Notifies this channel when a certain user starts streaming.</value>
</data>
<data name="hitbox_usage" xml:space="preserve">
<value>`{0}hitbox SomeStreamer`</value>
<data name="smashcast_usage" xml:space="preserve">
<value>`{0}smashcast SomeStreamer`</value>
</data>
<data name="twitch_cmd" xml:space="preserve">
<value>twitch tw</value>

View File

@ -9,7 +9,7 @@
public enum FollowedStreamType
{
Twitch, Hitbox, Mixer
Twitch, Smashcast, Mixer
}
public override int GetHashCode() =>