Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

prefix.ts (381B)


1
2
3
4
5
6
7
8
export default (homescope: HomeScope) => {
	const { message, args, CONFIG } = homescope;
	message.reply(args.length === 1
		? args[0].length === 1
			? `Command prefix changed to: \`${CONFIG.commands.prefix = args[0]}\`.`
			: 'You may only use a prefix that is exactly one character/symbol/grapheme/rune long.'
		: `Current command prefix is: \`${CONFIG.commands.prefix}\`.`);
};