Simp-O-Matic

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

drug.ts (376B)


export default async (homescope: HomeScope) => {
	const { CLIENT, message, args, Drugs } = homescope;
	const arg = args.length > 0 ? args.shift() : 'help'

	try {
		message.content = `--${arg} ${args.join(' ')}`;
		Drugs.execute(CLIENT, message);
	} catch (e) {
		message.reply(`Failed to execute \`${arg}\` command for Drug-O-Matic.`
			+ "\n```\n" + `${e}` + "\n```")
	}
};