mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-27 13:11:03 +00:00
style: run prettier and eslint
This commit is contained in:
@@ -24,7 +24,9 @@ for (const file of commandFiles) {
|
||||
const filePath = join(commandsPath, file);
|
||||
const command = (await import(`file://${filePath}`)).default;
|
||||
if ('command' in command && 'execute' in command) {
|
||||
bot.onText(command.command, (...args) => command.execute(bot, config, ...args));
|
||||
bot.onText(command.command, (...args) =>
|
||||
command.execute(bot, config, ...args)
|
||||
);
|
||||
} else {
|
||||
console.log(
|
||||
`[WARNING] The command at ${filePath} is missing a required "data" or "execute" property.`
|
||||
|
||||
Reference in New Issue
Block a user