<commit_before>/*
 * Skybot, a multipurpose discord bot
 *      Copyright (C) 2017 - 2018  Duncan "duncte123" Sterken & Ramid "ramidzkh" Khan & <NAME> "Sanduhr32"
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

@file:Author(nickname = "Sanduhr32", author = "<NAME>")
@file:Suppress("MemberVisibilityCanPrivate")

package ml.duncte123.skybot.commands.music

import ml.duncte123.skybot.Author
import ml.duncte123.skybot.SinceSkybot
import ml.duncte123.skybot.objects.RadioStream
import ml.duncte123.skybot.objects.command.CommandCategory
import ml.duncte123.skybot.objects.command.MusicCommand
import ml.duncte123.skybot.utils.EmbedUtils
import ml.duncte123.skybot.utils.MessageUtils.*
import net.dv8tion.jda.core.MessageBuilder
import net.dv8tion.jda.core.events.message.guild.GuildMessageReceivedEvent

@Author(nickname = "Sanduhr32", author = "<NAME>")
@SinceSkybot("3.52.2")
class RadioCommand : MusicCommand() {

    init {
        //This command takes up a lot of data hence I made it a patron only command - duncte123
        this.category = CommandCategory.MUSIC
    }

    var radioStreams: List<RadioStream> = ArrayList()

    init {
        //Sorting via locales https://lh.2xlibre.net/locales/

        //de_DE radio stations
        radioStreams += RadioStream("iloveradio", "http://stream02.iloveradio.de/iloveradio1.mp3"/*"http://www.iloveradio.de/iloveradio.m3u"*/, "http://www.iloveradio.de/streams/")
        radioStreams += RadioStream("ilove2dance", "http://stream01.iloveradio.de/iloveradio1.mp3"/*"http://www.iloveradio.de/ilove2dance.m3u"*/, "http://www.iloveradio.de/streams/")
        radioStreams += RadioStream("ilovetop100charts", "http://stream01.iloveradio.de/iloveradio2.mp3"/*"http://www.iloveradio.de/ilovetop100charts.m3u"*/, "http://www.iloveradio.de/streams/")
        radioStreams += RadioStream("ilovethebattle", "http://stream01.iloveradio.de/iloveradio9.mp3" /*"http://www.iloveradio.de/ilovethebattle.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovedreist", "http://stream01.iloveradio.de/iloveradio6.mp3" /*"http://www.iloveradio.de/ilovedreist.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovehiphop", "http://stream01.iloveradio.de/iloveradio13.mp3" /*"http://www.iloveradio.de/ilovehiphopturnup.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovemashup", "http://stream01.iloveradio.de/iloveradio5.mp3" /*"http://www.iloveradio.de/ilovemashup.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovebass", "http://stream01.iloveradio.de/iloveradio4.mp3" /*"http://www.iloveradio.de/ilovebass.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovehistory", "http://stream01.iloveradio.de/iloveradio12.mp3" /*"http://www.iloveradio.de/ilovehitshistory.m3u" */, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovepopstars", "http://stream01.iloveradio.de/iloveradio11.mp3" /*"http://www.iloveradio.de/ilovepopstars.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("iloveandchill", "http://stream01.iloveradio.de/iloveradio10.mp3" /*"http://www.iloveradio.de/iloveandchill.m3u" */, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("iloveberlin", "http://stream01.iloveradio.de/iloveradio7.mp3" /*"http://www.iloveradio.de/iloveaboutberlin.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovexmas", "http://stream01.iloveradio.de/iloveradio8.mp3" /*"http://www.iloveradio.de/ilovexmas.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovetop100pop", "http://stream01.iloveradio.de/iloveradio105.mp3" /*"http://www.iloveradio.de/ilovetop100pop.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovetop100hiphop", "http://stream01.iloveradio.de/iloveradio108.mp3" /*"http://www.iloveradio.de/ilovetop100hiphop.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovetop100dance&dj", "http://stream01.iloveradio.de/iloveradio103.mp3" /*"http://www.iloveradio.de/ilovetop100dancedjs.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("iloveurban", "http://streams.bigfm.de/urbanilr-128-mp3" /*"http://www.iloveradio.de/ilovebigfmurbanclubbeats.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovegroovenight", "http://streams.bigfm.de/grooveilr-128-mp3" /*"http://www.iloveradio.de/ilovebigfmgroovenight.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovenitroxedm", "http://streams.bigfm.de/nitroxedmilr-128-mp3" /*"http://www.iloveradio.de/ilovebigfmnitroxedm.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovenitroxdeep", "http://streams.bigfm.de/nitroxdeepilr-128-mp3" /*"http://www.iloveradio.de/ilovebigfmnitroxdeep.m3u"*/, "http://www.iloveradio.de/streams/", false)

        //nl_NL radio stations
        radioStreams += RadioStream("slam", "http://playerservices.streamtheworld.com/api/livestream-redirect/SLAM_MP3_SC", "https://live.slam.nl/slam-live/")
        radioStreams += RadioStream("radio538", "http://playerservices.streamtheworld.com/api/livestream-redirect/RADIO538.mp3", "https://www.538.nl/")
        radioStreams += RadioStream("3fm", "http://icecast.omroep.nl/3fm-sb-mp3", "https://www.npo3fm.nl/", false)
        radioStreams += RadioStream("skyradio", "http://playerservices.streamtheworld.com/api/livestream-redirect/SKYRADIO_SC", "http://www.skyradio.nl/", false)
        radioStreams += RadioStream("qmusic", "http://icecast-qmusicnl-cdp.triple-it.nl/Qmusic_nl_live_96.mp3", "http://qmusic.nl/", false)

        //International radio stations
        //TODO: add international radio stations
        radioStreams += RadioStream("trapfm", "http://stream.trap.fm:6004/;stream.mp3", "http://trap.fm/")
        radioStreams += RadioStream("listen.moe", "https://listen.moe/stream", "https://listen.moe/stream")
    }

    override fun executeCommand(invoke: String, args: Array<out String>, event: GuildMessageReceivedEvent) {<commit_msg>Fixing stations again... i should not do that at 3:30am i guess<commit_after>/*
 * Skybot, a multipurpose discord bot
 *      Copyright (C) 2017 - 2018  Duncan "duncte123" Sterken & Ramid "ramidzkh" Khan & <NAME> "Sanduhr32"
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

@file:Author(nickname = "Sanduhr32", author = "<NAME>")
@file:Suppress("MemberVisibilityCanPrivate")

package ml.duncte123.skybot.commands.music

import ml.duncte123.skybot.Author
import ml.duncte123.skybot.SinceSkybot
import ml.duncte123.skybot.objects.RadioStream
import ml.duncte123.skybot.objects.command.CommandCategory
import ml.duncte123.skybot.objects.command.MusicCommand
import ml.duncte123.skybot.utils.EmbedUtils
import ml.duncte123.skybot.utils.MessageUtils.*
import net.dv8tion.jda.core.MessageBuilder
import net.dv8tion.jda.core.events.message.guild.GuildMessageReceivedEvent

@Author(nickname = "Sanduhr32", author = "<NAME>")
@SinceSkybot("3.52.2")
class RadioCommand : MusicCommand() {

    init {
        //This command takes up a lot of data hence I made it a patron only command - duncte123
        this.category = CommandCategory.MUSIC
    }

    var radioStreams: List<RadioStream> = ArrayList()

    init {
        //Sorting via locales https://lh.2xlibre.net/locales/

        //de_DE radio stations
        radioStreams += RadioStream("iloveradio", "http://stream01.iloveradio.de/iloveradio1.mp3"/*"http://www.iloveradio.de/iloveradio.m3u"*/, "http://www.iloveradio.de/streams/")
        radioStreams += RadioStream("ilove2dance", "http://stream01.iloveradio.de/iloveradio2.mp3"/*"http://www.iloveradio.de/ilove2dance.m3u"*/, "http://www.iloveradio.de/streams/")
        radioStreams += RadioStream("ilovetop100charts", "http://stream01.iloveradio.de/iloveradio9.mp3"/*"http://www.iloveradio.de/ilovetop100charts.m3u"*/, "http://www.iloveradio.de/streams/")
        radioStreams += RadioStream("ilovethebattle", "http://stream01.iloveradio.de/iloveradio3.mp3" /*"http://www.iloveradio.de/ilovethebattle.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovedreist", "http://stream01.iloveradio.de/iloveradio6.mp3" /*"http://www.iloveradio.de/ilovedreist.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovehiphop", "http://stream01.iloveradio.de/iloveradio13.mp3" /*"http://www.iloveradio.de/ilovehiphopturnup.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovemashup", "http://stream01.iloveradio.de/iloveradio5.mp3" /*"http://www.iloveradio.de/ilovemashup.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovebass", "http://stream01.iloveradio.de/iloveradio4.mp3" /*"http://www.iloveradio.de/ilovebass.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovehistory", "http://stream01.iloveradio.de/iloveradio12.mp3" /*"http://www.iloveradio.de/ilovehitshistory.m3u" */, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovepopstars", "http://stream01.iloveradio.de/iloveradio11.mp3" /*"http://www.iloveradio.de/ilovepopstars.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("iloveandchill", "http://stream01.iloveradio.de/iloveradio10.mp3" /*"http://www.iloveradio.de/iloveandchill.m3u" */, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("iloveberlin", "http://stream01.iloveradio.de/iloveradio7.mp3" /*"http://www.iloveradio.de/iloveaboutberlin.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovexmas", "http://stream01.iloveradio.de/iloveradio8.mp3" /*"http://www.iloveradio.de/ilovexmas.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovetop100pop", "http://stream01.iloveradio.de/iloveradio105.mp3" /*"http://www.iloveradio.de/ilovetop100pop.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovetop100hiphop", "http://stream01.iloveradio.de/iloveradio108.mp3" /*"http://www.iloveradio.de/ilovetop100hiphop.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovetop100dance&dj", "http://stream01.iloveradio.de/iloveradio103.mp3" /*"http://www.iloveradio.de/ilovetop100dancedjs.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("iloveurban", "http://streams.bigfm.de/urbanilr-128-mp3" /*"http://www.iloveradio.de/ilovebigfmurbanclubbeats.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovegroovenight", "http://streams.bigfm.de/grooveilr-128-mp3" /*"http://www.iloveradio.de/ilovebigfmgroovenight.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovenitroxedm", "http://streams.bigfm.de/nitroxedmilr-128-mp3" /*"http://www.iloveradio.de/ilovebigfmnitroxedm.m3u"*/, "http://www.iloveradio.de/streams/", false)
        radioStreams += RadioStream("ilovenitroxdeep", "http://streams.bigfm.de/nitroxdeepilr-128-mp3" /*"http://www.iloveradio.de/ilovebigfmnitroxdeep.m3u"*/, "http://www.iloveradio.de/streams/", false)

        //nl_NL radio stations
        radioStreams += RadioStream("slam", "http://playerservices.streamtheworld.com/api/livestream-redirect/SLAM_MP3_SC", "https://live.slam.nl/slam-live/")
        radioStreams += RadioStream("radio538", "http://playerservices.streamtheworld.com/api/livestream-redirect/RADIO538.mp3", "https://www.538.nl/")
        radioStreams += RadioStream("3fm", "http://icecast.omroep.nl/3fm-sb-mp3", "https://www.npo3fm.nl/", false)
        radioStreams += RadioStream("skyradio", "http://playerservices.streamtheworld.com/api/livestream-redirect/SKYRADIO_SC", "http://www.skyradio.nl/", false)
        radioStreams += RadioStream("qmusic", "http://icecast-qmusicnl-cdp.triple-it.nl/Qmusic_nl_live_96.mp3", "http://qmusic.nl/", false)

        //International radio stations
        //TODO: add international radio stations
        radioStreams += RadioStream("trapfm", "http://stream.trap.fm:6004/;stream.mp3", "http://trap.fm/")
        radioStreams += RadioStream("listen.moe", "https://listen.moe/stream", "https://listen.moe/stream")
    }

    override fun executeCommand(invoke: String, args: Array<out String>, event: GuildMessageReceivedEvent) {
{'fraction_non_alphanumeric': 0.16912080057183704, 'fraction_numerical': 0.030378842030021443, 'mean_word_length': 4.293605751040484, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 12, 'lorem ipsum': 0, 'www.': 88, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 48, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '938093', 'n_tokens_mistral': 5231, 'n_tokens_neox': 5130, 'n_words': 711}