<commit_before>
from discord.ext import commands

from utilities import checks

def setup(bot):
	bot.add_cog(Duelyst(bot))

class Duelyst(commands.Cog):
	
	def __init__(self, bot):
		self.bot = bot
	
	def cog_check(self, ctx):
		return checks.not_forbidden_predicate(ctx)
	
	@commands.group(invoke_without_command = True, case_insensitive = True)
	async def duelyst(self, ctx):
		'''Duelyst'''
		await ctx.send_help(ctx.command)
	
	@duelyst.group(case_insensitive = True)
	async def card(self, ctx, *, name: str):
		'''Details of a specific card'''
		url = "https://duelyststats.info/scripts/carddata/get.php"
		async with ctx.bot.aiohttp_session.get(url, params = {"cardName": name}) as resp:
			data = await resp.text()
		await ctx.embed_reply(data)
	
	@card.command()
	async def card_random(self, ctx):
		'''Details of a random card'''
		url = "https://duelyststats.info/scripts/carddata/get.php"
		async with ctx.bot.aiohttp_session.get(url, params = {"random": 1}) as resp:
			data = await resp.text()
		await ctx.embed_reply(data)
<commit_msg>[Discord] Improve duelyst cog clarity<commit_after>
from discord.ext import commands

from utilities import checks

def setup(bot):
	bot.add_cog(Duelyst(bot))

class Duelyst(commands.Cog):
	
	def __init__(self, bot):
		self.bot = bot
	
	def cog_check(self, ctx):
		return checks.not_forbidden_predicate(ctx)
	
	@commands.group(invoke_without_command = True, case_insensitive = True)
	async def duelyst(self, ctx):
		'''Duelyst'''
		await ctx.send_help(ctx.command)
	
	@duelyst.group(case_insensitive = True)
	async def card(self, ctx, *, name: str):
		'''Details of a specific card'''
		url = "https://duelyststats.info/scripts/carddata/get.php"
		params = {"cardName": name}
		async with ctx.bot.aiohttp_session.get(url, params = params) as resp:
			data = await resp.text()
		await ctx.embed_reply(data)
	
	@card.command()
	async def card_random(self, ctx):
		'''Details of a random card'''
		url = "https://duelyststats.info/scripts/carddata/get.php"
		params = {"random": 1}
		async with ctx.bot.aiohttp_session.get(url, params = params) as resp:
			data = await resp.text()
		await ctx.embed_reply(data)

{'fraction_non_alphanumeric': 0.13623725671918444, 'fraction_numerical': 0.0009267840593141798, 'mean_word_length': 4.607792207792208, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '884945', 'n_tokens_mistral': 814, 'n_tokens_neox': 759, 'n_words': 184}