<commit_before>
'use strict';

global.isRSTAFF = function (user) {
	if (!user) return;
	if (typeof user === 'Object') user = user.userid;
	let rstaff = Db('rstafflist').get(toId(user));
	if (rstaff === 1) return true;
	return false;
};

exports.commands = {
		addrstaff: function (target, room, user) {
			if (!this.can('declare')) return false;
			let rstaffUser = toId(target);
			if (!rstaffUser) return this.parse('/help rstaff');
			if (isRSTAFF(rstaffUser)) return this.errorReply(rstaffUser + ' is already a retired staff.');
			Db('rstafflist').set(rstaffUser, 1);
			this.sendReply(rstaffUser + ' has been added in the retired staff list.');
		},
		takevip: function (target, room, user) {
			if (!this.can('declare')) return false;
			let rstaffUser = toId(target);
			if (!rstaffUser) return this.parse('/help rstaff');
			if (!isRSTAFF(rstaffUser)) return this.errorReply(rstaffUser + ' is not a retired staff.');
			Db('rstafflist').delete(rstaffUser);
			this.sendReply(rstaffUser + ' has been removed from retired staff list');
		},
		rstafflist: function (target, room, user) {
			if (!this.can('declare')) return false;
			if (!Object.keys(Db('rstafflist').object()).length) return this.errorReply('There seems to be no user in retired staff list.');
			this.sendReplyBox('<center><b><u>Retired Staff</u></b></center>' + '<br /><br />' + Object.keys(Db('rstafflist').object()).join('<br />'));
	},
};<commit_msg>Update retiredstaff.js<commit_after>
'use strict';

global.isRSTAFF = function (user) {
	if (!user) return;
	if (typeof user === 'Object') user = user.userid;
	let rstaff = Db('rstafflist').get(toId(user));
	if (rstaff === 1) return true;
	return false;
};

exports.commands = {
		addrstaff: function (target, room, user) {
			if (!this.can('declare')) return false;
			let rstaffUser = toId(target);
			if (!rstaffUser) return this.parse('/help rstaff');
			if (isRSTAFF(rstaffUser)) return this.errorReply(rstaffUser + ' is already a retired staff.');
			Db('rstafflist').set(rstaffUser, 1);
			this.sendReply(rstaffUser + ' has been added in the retired staff list.');
		},
		removerstaff: function (target, room, user) {
			if (!this.can('declare')) return false;
			let rstaffUser = toId(target);
			if (!rstaffUser) return this.parse('/help rstaff');
			if (!isRSTAFF(rstaffUser)) return this.errorReply(rstaffUser + ' is not a retired staff.');
			Db('rstafflist').delete(rstaffUser);
			this.sendReply(rstaffUser + ' has been removed from retired staff list');
		},
		rstafflist: function (target, room, user) {
			if (!this.can('declare')) return false;
			if (!Object.keys(Db('rstafflist').object()).length) return this.errorReply('There seems to be no user in retired staff list.');
			this.sendReplyBox('<center><b><u>Retired Staff</u></b></center>' + '<br /><br />' + Object.keys(Db('rstafflist').object()).join('<br />'));
	},
};
{'fraction_non_alphanumeric': 0.17862116991643454, 'fraction_numerical': 0.001392757660167131, 'mean_word_length': 4.666666666666667, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '747426', 'n_tokens_mistral': 1017, 'n_tokens_neox': 940, 'n_words': 251}