Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
485 views
in Technique[技术] by (71.8m points)

javascript - How do I reload a command

My discord bot is made with slappey and I read the guide and the command is nowhere near slappey's command handler so please give me a way to reload it

//slappey's basic command skeleton
const BaseCommand = require('../../utils/structures/BaseCommand');

module.exports = class TestingCommand extends BaseCommand {
  constructor() {
    super('testing', 'testing', []);
  }

  run(client, message, args) {
    message.channel.send('testing command works');
  }
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...