renamed hitbox to smashcast
This commit is contained in:
parent
e2d7ed343c
commit
f02ac7cd78
@ -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;
|
||||
|
@ -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}/";
|
||||
|
@ -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]
|
||||
|
@ -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>
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
public enum FollowedStreamType
|
||||
{
|
||||
Twitch, Hitbox, Mixer
|
||||
Twitch, Smashcast, Mixer
|
||||
}
|
||||
|
||||
public override int GetHashCode() =>
|
||||
|
Loading…
Reference in New Issue
Block a user