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

var gm = require('gm');
var path = require('path');
var moment = require('moment');
var util = require('util');
const reload = require('require-reload');
const Jimp = reload('jimp');
e.init = () => {
    e.category = bu.CommandType.GENERAL;
};

e.requireCtx = require;

e.isCommand = true;
e.hidden = false;
e.usage = 'thesearch [text]';
e.info = `Tells everyone about the progress of the search for intelligent life.`;
e.longinfo = `<p>Tells everyone about the progress of the search for intelligent life.</p>`;

e.execute = async function(msg, words) {
    var shitText = 'I use betterdiscord';
    if (words[1]) shitText = words.slice(1).join(' ');
    logger.debug(util.inspect(words));
    bot.sendChannelTyping(msg.channel.id);
    try {
        gm()
            .command('convert')
            .font(path.join(__dirname, '..', 'img/fonts/AnnieUseYourTelescope.ttf'))
            .rawSize(160, 68)
            .out('-background')
            .out('transparent')
            .fill('#393b3e')
            .gravity('Center')
            .out(`caption:${shitText}`)
            .options({
                imageMagick: true
            }).toBuffer('PNG', async function(err, buf) {
                let text = await Jimp.read(buf);
                let img = await Jimp.read(path.join(__dirname, '..', 'img', `thesearch.png`));
                img.composite(text, 60, 331);

                img.getBuffer(Jimp.MIME_PNG, (err, buffer) => {
                    bu.send(msg, undefined, {
                        file: buffer,
                        name: 'thesearch.png'
                    });
                })
            })
    } catch (err) {
        logger.error(err);
    }
};<commit_msg>toontime<commit_after>var e = module.exports = {};

var gm = require('gm');
var path = require('path');
var moment = require('moment');
var util = require('util');
const reload = require('require-reload');
const Jimp = reload('jimp');
e.init = () => {
    e.category = bu.CommandType.GENERAL;
};

e.requireCtx = require;

e.isCommand = true;
e.hidden = false;
e.usage = 'thesearch [text]';
e.info = `Tells everyone about the progress of the search for intelligent life.`;
e.longinfo = `<p>Tells everyone about the progress of the search for intelligent life.</p>`;

e.execute = async function(msg, words) {
    var shitText = 'I use betterdiscord';
    if (words[1]) shitText = words.slice(1).join(' ');
    logger.debug(util.inspect(words));
    bot.sendChannelTyping(msg.channel.id);
    try {
        gm()
            .command('convert')
            .font(path.join(__dirname, '..', 'img/fonts/SFToontime.ttf'))
            .rawSize(160, 68)
            .out('-background')
            .out('transparent')
            .fill('#393b3e')
            .gravity('Center')
            .out(`caption:${shitText}`)
            .options({
                imageMagick: true
            }).toBuffer('PNG', async function(err, buf) {
                let text = await Jimp.read(buf);
                let img = await Jimp.read(path.join(__dirname, '..', 'img', `thesearch.png`));
                img.composite(text, 60, 331);

                img.getBuffer(Jimp.MIME_PNG, (err, buffer) => {
                    bu.send(msg, undefined, {
                        file: buffer,
                        name: 'thesearch.png'
                    });
                })
            })
    } catch (err) {
        logger.error(err);
    }
};
{'fraction_non_alphanumeric': 0.15895953757225434, 'fraction_numerical': 0.009248554913294798, 'mean_word_length': 1.9913569576490924, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '3911466', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1039, 'n_words': 232}