<commit_before>package com.mrpowergamerbr.loritta.commands.vanilla.misc

import com.mrpowergamerbr.loritta.commands.CommandContext
import com.mrpowergamerbr.loritta.utils.LoriReply
import com.mrpowergamerbr.loritta.utils.locale.BaseLocale
import net.dv8tion.jda.core.entities.User
import net.perfectdreams.commands.annotation.Subcommand
import net.perfectdreams.commands.loritta.LorittaCommand
import net.perfectdreams.commands.loritta.notNull
import kotlin.contracts.ExperimentalContracts

class MagicPingCommand : LorittaCommand(arrayOf("magicping")) {
	@Subcommand
	suspend fun root(context: CommandContext, locale: BaseLocale) {
		context.reply(
				LoriReply(
						"Na verdade isto é só um comando para testes... yay?"
				)
		)
	}

	@ExperimentalContracts
	@Subcommand(["mention"])
	suspend fun mentionUser(context: CommandContext, locale: BaseLocale, user: User?) {
		notNull(user, "that ain't a user dawg")

		context.reply(
				LoriReply(
						"Você mencionou ${user.asMention}!",
						"<:ralsei_surprise:525274650473791489>"
				)
		)
	}
}<commit_msg>CommandContext -> LorittaCommandContext<commit_after>package com.mrpowergamerbr.loritta.commands.vanilla.misc

import com.mrpowergamerbr.loritta.utils.LoriReply
import com.mrpowergamerbr.loritta.utils.locale.BaseLocale
import net.dv8tion.jda.core.entities.User
import net.perfectdreams.commands.annotation.Subcommand
import net.perfectdreams.commands.loritta.LorittaCommand
import net.perfectdreams.commands.loritta.LorittaCommandContext
import net.perfectdreams.commands.loritta.notNull
import kotlin.contracts.ExperimentalContracts

class MagicPingCommand : LorittaCommand(arrayOf("magicping")) {
	@Subcommand
	suspend fun root(context: LorittaCommandContext, locale: BaseLocale) {
		context.reply(
				LoriReply(
						"Na verdade isto é só um comando para testes... yay?"
				)
		)
	}

	@ExperimentalContracts
	@Subcommand(["mention"])
	suspend fun mentionUser(context: LorittaCommandContext, locale: BaseLocale, user: User?) {
		notNull(user, "that ain't a user dawg")

		context.reply(
				LoriReply(
						"Você mencionou ${user.asMention}!",
						"<:ralsei_surprise:525274650473791489>"
				)
		)
	}
}
{'fraction_non_alphanumeric': 0.10303587856485741, 'fraction_numerical': 0.017479300827966882, 'mean_word_length': 5.3226744186046515, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, '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': '3960294', 'n_tokens_mistral': 836, 'n_tokens_neox': 724, 'n_words': 125}