<commit_before>import miniplug from 'miniplug';
import secrets from './config/secrets';
import config from './config'
import {commands, is_command, get_command_args} from './commands';

const storage = {
	start_time: new Date(),
	save: function () {
		console.log(`Saving ${config}'s storage...`);
	},
	settings: {
		autowoot: true
	}
};

const mp = miniplug(secrets.plug_credentials);

mp.storage = storage;

mp.join('lvl3')
	.then(() => {
		mp.chat('starting up, also runescape sucks');
		console.log(mp)
	});


function onChat(message) {
	if (is_command(message.message) && !message.own()) {
		const [command, ...args] = get_command_args(message.message);
		if (commands.has(command)) {
			commands.get(command)
				.run({
					mp,
					command,
					args,
					message,
					settings: mp.storage.settings
				});
		}
	}
}

function onAdvance(next, previous) {
	// autowoot
	if(mp.storage.settings.autowoot) {
		mp.woot();
	}

	// play if nobody else is going to play
	if (next == null) {
		mp.joinWaitlist();
		return;
	}<commit_msg>change when autowoots woots<commit_after>import miniplug from 'miniplug';
import secrets from './config/secrets';
import config from './config'
import {commands, is_command, get_command_args} from './commands';

const storage = {
	start_time: new Date(),
	save: function () {
		console.log(`Saving ${config}'s storage...`);
	},
	settings: {
		autowoot: true
	}
};

const mp = miniplug(secrets.plug_credentials);

mp.storage = storage;

mp.join('lvl3')
	.then(() => {
		mp.chat('starting up, also runescape sucks');
		//console.log(mp)
	});


function onChat(message) {
	if (is_command(message.message) && !message.own()) {
		const [command, ...args] = get_command_args(message.message);
		if (commands.has(command)) {
			commands.get(command)
				.run({
					mp,
					command,
					args,
					message,
					settings: mp.storage.settings
				});
		}
	}
}

function onAdvance(next, previous) {
	// play if nobody else is going to play
	if (next == null) {
		mp.joinWaitlist();
		return;
	}

	// autowoot
	if(mp.storage.settings.autowoot) {
		mp.woot();
	}
{'fraction_non_alphanumeric': 0.16363636363636364, 'fraction_numerical': 0.0009569377990430622, 'mean_word_length': 3.5456521739130435, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2310733', 'n_tokens_mistral': 820, 'n_tokens_neox': 738, 'n_words': 167}