<commit_before>import discord
from discord.ext import commands

from utils import aiohttp_wrap as aw 


class MusicInfo:
    """A cog for retrieving music information (not playing it)"""
    URL = 'http://ws.audioscrobbler.com/2.0/'
    LOGO_URL = 'https://www.last.fm/static/images/lastfm_logo_facebook.1b63d4451dcc.png'
    NO_RESULT = "Sorry, couldn't find anything for {}."
    EM_COLOR = discord.Color.blurple()

    def __init__(self, bot):
        self.TOKEN = bot.api_keys['lastfm']

    @staticmethod
    def truncat(text: str, length=500) -> str:
        if len(text) > length:
            return f'{text[:length - 3]}...'

        return text

    @commands.group(aliases=['lastfm', 'fm'])
    async def music(self, ctx):
        """Main group cmd"""

    @music.command()
    async def album(self, ctx, *, query):
        """Search for some basic album information via album name"""
        search_params = {'method': 'album.search', 'album': query, 'limit': 5,
                         'format': 'json', 'api_key': self.TOKEN}
        search_resp = await aw.aio_get_json(ctx.bot.aio_session, self.URL, params=search_params)<commit_msg>hide unfinished music cog from users<commit_after>import discord
from discord.ext import commands

from utils import aiohttp_wrap as aw 


class MusicInfo:
    """A cog for retrieving music information (not playing it)"""
    URL = 'http://ws.audioscrobbler.com/2.0/'
    LOGO_URL = 'https://www.last.fm/static/images/lastfm_logo_facebook.1b63d4451dcc.png'
    NO_RESULT = "Sorry, couldn't find anything for {}."
    EM_COLOR = discord.Color.blurple()

    def __init__(self, bot):
        self.TOKEN = bot.api_keys['lastfm']

    @staticmethod
    def truncat(text: str, length=500) -> str:
        if len(text) > length:
            return f'{text[:length - 3]}...'

        return text

    @commands.group(aliases=['lastfm', 'fm'], hidden=True)
    async def music(self, ctx):
        """Main group cmd"""

    @music.command(hidden=True)
    async def album(self, ctx, *, query):
        """Search for some basic album information via album name"""
        search_params = {'method': 'album.search', 'album': query, 'limit': 5,
                         'format': 'json', 'api_key': self.TOKEN}
        search_resp = await aw.aio_get_json(ctx.bot.aio_session, self.URL, params=search_params)
{'fraction_non_alphanumeric': 0.13956466069142126, 'fraction_numerical': 0.01195049082373026, 'mean_word_length': 2.9931856899488927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1298459', 'n_tokens_mistral': 774, 'n_tokens_neox': 731, 'n_words': 193}