<commit_before>const { RichEmbed } = require('discord.js');
const { Command } = require('discord.js-commando');

module.exports = class SayCommand extends Command {
    constructor(client) {
        super(client, {
            name: 'announce',
            group: 'mod',
            memberName: 'announce',
            description: 'Announces the text you say.',
            examples: ['announce Hi there!'],
            args: [
                {
                    key: 'channel',
                    prompt: 'channel to announce everyone',
                    type: 'channel'
                },
                {
                    key: 'ping',
                    prompt: 'Mention everyone?',
                    type: 'boolean'
                },
                {
                    key: 'text',
                    prompt: 'Text to say',
                    type: 'string'
                }
            ]
        });    
    }
    
    hasPermission(msg) {
        if (msg.channel.type === "dm") return false;
		if (this.client.isOwner(msg.author) || msg.member.hasPermission("METION_EVERYONE")) {
            return true;
        } else return false;
	}

    run(msg, args) {
    const { channel, ping, text } = args;
    const embed = new RichEmbed()
        .setDescription(text)
        .setAuthor(msg.author.username, msg.author.displayAvatarURL)
        .setColor(msg.member.displayColor)
        .setTimestamp();<commit_msg>Tiny comment<commit_after>const { RichEmbed } = require('discord.js');
const { Command } = require('discord.js-commando');

module.exports = class SayCommand extends Command {
    constructor(client) {
        super(client, {
            name: 'announce',
            group: 'mod',
            memberName: 'announce',
            description: 'Announces the text you say.',
            examples: ['announce Hi there!'],
            args: [
                {
                    key: 'channel',
                    prompt: 'channel to announce everyone',
                    type: 'channel'
                },
                {
                    key: 'ping',
                    prompt: 'Mention everyone?',
                    type: 'boolean'
                },
                {
                    key: 'text',
                    prompt: 'Text to say',
                    type: 'string'
                }
            ]
        });    
    }
    
    hasPermission(msg) {
        if (msg.channel.type === "dm") return false;
		if (this.client.isOwner(msg.author) || msg.member.hasPermission("MENTION_EVERYONE")) {
            return true;
        } else return false;
	}

    run(msg, args) {
    const { channel, ping, text } = args;
    // Make embed
    const embed = new RichEmbed()
        .setDescription(text)
        .setAuthor(msg.author.username, msg.author.displayAvatarURL)
        .setColor(msg.member.displayColor)
        .setTimestamp();
{'fraction_non_alphanumeric': 0.11801242236024845, 'fraction_numerical': 0.0, 'mean_word_length': 1.354995938261576, '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': '1843974', 'n_tokens_mistral': 780, 'n_tokens_neox': 737, 'n_words': 170}