From f69a51bfdb59ebc69aadbf47cd85d37b32fd3718 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 17 Sep 2022 20:45:14 +0200 Subject: [PATCH] feat: Gensokyo Radio on /radio --- commands/misc/radio.ts | 4 +++- events/error.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/commands/misc/radio.ts b/commands/misc/radio.ts index 2c98617..02a5de6 100644 --- a/commands/misc/radio.ts +++ b/commands/misc/radio.ts @@ -24,7 +24,7 @@ export default commandModule({ onEvent: [], async execute(ctx){ const focusedValue = ctx.options.getFocused(); - const choices = ['Rock FM', 'Cadena 100', 'Cadena Dial', 'BBC 1', 'BBC 5', 'RNE 1', 'RNE 5', 'Los 40']; + const choices = ['Rock FM', 'Cadena 100', 'Cadena Dial', 'Gensokyo Radio', 'BBC 1', 'BBC 5', 'RNE 1', 'RNE 5', 'Los 40']; const filtered = choices.filter(choice => choice.startsWith(focusedValue)); await ctx.respond( filtered.map(choice => ({ name: choice, value: choice })), @@ -71,6 +71,8 @@ export default commandModule({ playRadio("http://crtve--di--crtve-ice--02--cdn.cast.addradio.de/crtve/rne5/sev/mp3/high") } else if (radioname === 'Los 40') { playRadio('http://stream.ondaceronoroeste.es:8000/stream') + } else if (radioname === 'Gensokyo Radio') { + playRadio('https://stream.gensokyoradio.net/3') } else { ctx.reply({embeds: [notFoundEmbed], ephemeral: true}) } diff --git a/events/error.ts b/events/error.ts index d476584..b49f941 100644 --- a/events/error.ts +++ b/events/error.ts @@ -1,4 +1,4 @@ -const { EventType, eventModule } = require('@sern/handler'); +const { EventType, eventModule } = require('@sern/handler'); export default eventModule({ type: EventType.Sern,