<commit_before>package echo

import (
	"fmt"

	"github.com/doenietzomoeilijk/go-chat-bot-plugins/authorization"
	"github.com/go-chat-bot/bot"
)

func init() {
	bot.RegisterCommand(
		"echo",
		"",
		"",
		func(command *bot.Cmd) (msg string, err error) {
			msg = fmt.Sprintf(
				"channel=%s, hostmask=%s, args=%#v",
				command.Channel,
				authorization.FullHostmask(command.User),
				command.Args)

			return
		})
}<commit_msg>Take advantage of having ChannelData to work with<commit_after>package echo

import (
	"fmt"

	"github.com/doenietzomoeilijk/go-chat-bot-plugins/authorization"
	"github.com/go-chat-bot/bot"
)

func init() {
	bot.RegisterCommand(
		"echo",
		"",
		"",
		func(command *bot.Cmd) (msg string, err error) {
			msg = fmt.Sprintf(
				"command, hostmask=%s, args=%#v, channel=%#v",
				authorization.FullHostmask(command.User),
				command.Args,
				command.ChannelData,
			)

			return
		})
	bot.RegisterPassiveCommand(
		"echo",
		func(command *bot.PassiveCmd) (msg string, err error) {
			msg = fmt.Sprintf(
				"passivecommand, hostmask=%s, raw=%#v, channel=%#v",
				authorization.FullHostmask(command.User),
				command.Raw,
				command.ChannelData,
			)

			return
		})
}
{'fraction_non_alphanumeric': 0.1572379367720466, 'fraction_numerical': 0.0, 'mean_word_length': 3.6447876447876446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7266133', 'n_tokens_mistral': 515, 'n_tokens_neox': 441, 'n_words': 76}