<commit_before>var e = module.exports = {};

e.init = () => {
    e.category = bu.TagType.COMPLEX;
};

e.requireCtx = require;

e.isTag = true;
e.name = `channel`;
e.args = `&lt;channel&gt; [message]`;
e.usage = `{channel;#channel[;message]}`;
e.desc = `Sends the output to a specific channel. Only works in custom commands. If a message is specified, it will create a new message in the specified channel instead of rerouting output.`;
e.exampleIn = `{channel;#channel}Hello!`;
e.exampleOut = `In #channel: Hello!`;


e.execute = async function(params) {
    for (let i = 1; i < params.args.length; i++) {
        params.args[i] = await bu.processTagInner(params, i);
    }
    var replaceString = '';
    var replaceContent = false;
    if (params.tagName) {
        replaceString = await bu.tagProcessError(params, params.fallback, '`Can only set channel in CCommands`');
    } else {
        if (/([0-9]{17,23})/.test(params.args[1])) {
            let channelid = params.args[1].match(/([0-9]{17,23})/)[1];
            let channel = bot.getChannel(channelid);
            if (channel) {
                if (channel.guild.id == params.msg.guild.id) {
                    if (params.args[2]) {
                        bu.send(channel.id, params.args[2]);
                    } else params.msg.channel = channel;
                } else {
                    replaceString = await bu.tagProcessError(params, params.fallback, '`Channel must be in guild`');
                }
            } else {
                replaceString = await bu.tagProcessError(params, params.fallback, '`Channel not found`');
            }
        } else {
            replaceString = await bu.tagProcessError(params, params.fallback, '`Invalid channel`');
        }
    }
    params.fallback = params.args[1];<commit_msg>fixed everyone in channel<commit_after>var e = module.exports = {};

e.init = () => {
    e.category = bu.TagType.COMPLEX;
};

e.requireCtx = require;

e.isTag = true;
e.name = `channel`;
e.args = `&lt;channel&gt; [message]`;
e.usage = `{channel;#channel[;message]}`;
e.desc = `Sends the output to a specific channel. Only works in custom commands. If a message is specified, it will create a new message in the specified channel instead of rerouting output.`;
e.exampleIn = `{channel;#channel}Hello!`;
e.exampleOut = `In #channel: Hello!`;


e.execute = async function(params) {
    for (let i = 1; i < params.args.length; i++) {
        params.args[i] = await bu.processTagInner(params, i);
    }
    var replaceString = '';
    var replaceContent = false;
    if (params.tagName) {
        replaceString = await bu.tagProcessError(params, params.fallback, '`Can only set channel in CCommands`');
    } else {
        if (/([0-9]{17,23})/.test(params.args[1])) {
            let channelid = params.args[1].match(/([0-9]{17,23})/)[1];
            let channel = bot.getChannel(channelid);
            if (channel) {
                if (channel.guild.id == params.msg.guild.id) {
                    if (params.args[2]) {
                        bu.send(channel.id, {
                            content: params.args[2],
                            disableEveryone: false
                        });
                    } else params.msg.channel = channel;
                } else {
                    replaceString = await bu.tagProcessError(params, params.fallback, '`Channel must be in guild`');
                }
            } else {
                replaceString = await bu.tagProcessError(params, params.fallback, '`Channel not found`');
            }
        } else {
            replaceString = await bu.tagProcessError(params, params.fallback, '`Invalid channel`');
        }
    }
    params.fallback = params.args[1];
{'fraction_non_alphanumeric': 0.1425503355704698, 'fraction_numerical': 0.010201342281879194, 'mean_word_length': 2.176470588235294, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2590295', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1121, 'n_words': 273}