<commit_before>const Discord = require('discord.js');
const db = require('sqlite');

const app = require('../app');

let channels = [];
let messageCounts = {};
let users = [];

module.exports = (message, args) => {
	if (message.author.id == '197781<PASSWORD>') {
		const embed = new Discord.RichEmbed()
			.setColor('RANDOM')
			.setDescription('Fetching messages...');

		channels = [];
		message.guild.channels.forEach(channel => {
			if (channel.type == 'text' && channel.permissionsFor(app.client.user).has('READ_MESSAGES')
					&& channel.name != 'spam') {
				channels.push(channel);
			}
		});
		messageCounts = {};<commit_msg>Changed from comparing channel name to comparing channel id in messages command.<commit_after>const Discord = require('discord.js');
const db = require('sqlite');

const app = require('../app');

let channels = [];
let messageCounts = {};
let users = [];

module.exports = (message, args) => {
	if (message.author.id == '197781934116569088') {
		const embed = new Discord.RichEmbed()
			.setColor('RANDOM')
			.setDescription('Fetching messages...');

		channels = [];
		message.guild.channels.forEach(channel => {
			if (channel.type == 'text' && channel.permissionsFor(app.client.user).has('READ_MESSAGES')
					&& channel.id != '322207561703227422') {
				channels.push(channel);
			}
		});
		messageCounts = {};
{'fraction_non_alphanumeric': 0.18309859154929578, 'fraction_numerical': 0.031134173461823574, 'mean_word_length': 4.172413793103448, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, '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': '3057595', 'n_tokens_mistral': 496, 'n_tokens_neox': 427, 'n_words': 87}