<commit_before>const RobbotClient = require('./structures/RobbotClient');
const CommandController = require('./controllers/CommandController');
const DiscordAPIError = require('discord.js/src/client/rest/DiscordAPIError');

const client = new RobbotClient();
const controller = new CommandController();

client
	.once('ready', () => {
		client.logger.info('robbot ready!');
		client.user.setGame(`try '${client.config.commandPrefix} help' !`).then(client => {
			client.setInterval(() => {
				if (client.user.presence.game.name === `try '${client.config.commandPrefix} help' !`) {
					client.user.setGame('on megumin.love');
				}
				else if (client.user.presence.game.name === 'on megumin.love') {
					client.user.setGame(`try '${client.config.commandPrefix} help' !`);
				}
			// leave untouched if neither of the default ones
			}, 1000 * 60 * 30);
		});
	})
	.on('message', message => {
		controller.handleCommand(message);
	})
	.login(client.config.token);

process.on('unhandledRejection', err => {
	if (!err) return;

	const errorString = 'Uncaught Promise Error:\n';
	if (err instanceof DiscordAPIError) {
		return client.logger.error(`${errorString}${err.code} - ${err.message}`);
	}
<commit_msg>fix status interval<commit_after>const RobbotClient = require('./structures/RobbotClient');
const CommandController = require('./controllers/CommandController');
const DiscordAPIError = require('discord.js/src/client/rest/DiscordAPIError');

const client = new RobbotClient();
const controller = new CommandController();

client
	.once('ready', () => {
		client.logger.info('robbot ready!');
		client.user.setGame(`try '${client.config.commandPrefix} help' !`).then(user => {
			client.setInterval(() => {
				if (client.user.presence.game.name === `try '${client.config.commandPrefix} help' !`) {
					client.user.setGame('on megumin.love');
				}
				else if (client.user.presence.game.name === 'on megumin.love') {
					client.user.setGame(`try '${client.config.commandPrefix} help' !`);
				}
			// leave untouched if neither of the default ones
			}, 1000 * 60 * 30);
		});
	})
	.on('message', message => {
		controller.handleCommand(message);
	})
	.login(client.config.token);

process.on('unhandledRejection', err => {
	if (!err) return;

	const errorString = 'Uncaught Promise Error:\n';
	if (err instanceof DiscordAPIError) {
		return client.logger.error(`${errorString}${err.code} - ${err.message}`);
	}

{'fraction_non_alphanumeric': 0.1782178217821782, 'fraction_numerical': 0.006600660066006601, 'mean_word_length': 4.523917995444191, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2826965', 'n_tokens_mistral': 847, 'n_tokens_neox': 764, 'n_words': 148}