Skip to content

Commit 0a9d61f

Browse files
committed
style: lint
1 parent c6f4b9c commit 0a9d61f

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,31 @@ Create Discord Bot with ease and simplicity.
55
## Examples
66

77
#### Command
8+
89
`commands/ping.ts`
10+
911
```ts
1012
import { defineCommand } from '@harmonix-js/core'
1113

12-
export default defineCommand({
13-
description: 'Ping command'
14-
}, (client, message) => {
15-
message.reply('Pong!')
16-
})
14+
export default defineCommand(
15+
{
16+
description: 'Ping command'
17+
},
18+
(client, message) => {
19+
message.reply('Pong!')
20+
}
21+
)
1722
```
1823

1924
#### Event
25+
2026
`events/ready.ts`
27+
2128
```ts
2229
import { defineEvent } from '@harmonix-js/core'
2330

2431
export default defineEvent((client) => {
25-
console.log('Bot is ready!')
32+
console.log('Bot is ready!')
2633
})
2734
```
2835

0 commit comments

Comments
 (0)