mirror of
https://github.com/sern-handler/website
synced 2026-06-06 01:16:47 +00:00
fix: js snippet for ping cmd
This commit is contained in:
@@ -58,15 +58,15 @@ client.login(token);
|
||||
#### ` ping.js (CommonJS)`
|
||||
|
||||
```js
|
||||
const { Sern, CommandType } = require('@sern/handler');
|
||||
const { Sern, CommandType, commandModule } = require('@sern/handler');
|
||||
|
||||
exports.default = {
|
||||
exports.default = commandModule({
|
||||
description: 'A ping pong command',
|
||||
type: CommandType.Slash,
|
||||
execute(ctx) {
|
||||
ctx.reply('pong!');
|
||||
}
|
||||
};
|
||||
});
|
||||
```
|
||||
|
||||
See our [templates](https://github.com/sern-handler/templates) for TypeScript examples and more
|
||||
@@ -88,4 +88,4 @@ It is **highly encouraged** to use the [command line interface](https://github.c
|
||||
|
||||
## Roadmap
|
||||
|
||||
You can check our [roadmap](https://github.com/sern-handler/roadmap) to see what's going to be added or patched in the future.
|
||||
You can check our [roadmap](https://github.com/sern-handler/roadmap) to see what's going to be added or patched in the future.
|
||||
|
||||
Reference in New Issue
Block a user