Comments (2)
I also tried this:
const {Command} = require('advanced-command-handler');
module.exports = class PingCommand extends Command {
constructor() {
super({
name: 'ping',
aliases: ["latency"],
category: 'misc',
});
}
async run(handler, message, args) {
await message.channel.send("yes");
}
}
from advanced-command-handler.
Like #37, #29 and #24, you have to use the default message event or create yours.
from advanced-command-handler.
Related Issues (20)
- 2021 Plan HOT 8
- [QUESTION] Configuration HOT 8
- Bot not responding to commands HOT 7
- guildCreate event is not sending messages HOT 8
- Not working HOT 1
- 'Channels' option in commands options HOT 6
- CommandHandler.launch({}) returns an error HOT 6
- Putting not existing permissions in commands throw an error HOT 2
- Specific NSFW HOT 1
- How can I make an reaction event? HOT 2
- Error when loading commands. HOT 12
- Add patch note to update HOT 1
- isOwner function is not a function HOT 2
- Help command in the default commands HOT 2
- Disabled command HOT 5
- Owner bypass HOT 4
- Add typings for TS HOT 2
- Wrong place for the dayjs export after compilation
- Can't launch in v3.0.0-beta.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advanced-command-handler.