nuxt-discord 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ A Nuxt module for building Discord bots with slash commands, featuring hot modul
|
|
|
20
20
|
Install the module to your Nuxt application:
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
|
|
23
|
+
pnpm install nuxt-discord discord.js
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Add the module to your `nuxt.config.ts`:
|
|
@@ -276,7 +276,7 @@ Here's what's planned for future releases:
|
|
|
276
276
|
- [@nuxt/content](https://github.com/nuxt/content)
|
|
277
277
|
- [@nuxtjs/i18n](https://github.com/nuxt-modules/i18n)
|
|
278
278
|
- [@nuxt/devtools](https://github.com/nuxt/devtools)
|
|
279
|
-
- UI components are based on [Nuxt UI](https://
|
|
279
|
+
- UI components are based on [Nuxt UI](https://ui.nuxt.com/) and [UnoCSS](https://unocss.dev/)
|
|
280
280
|
|
|
281
281
|
## License
|
|
282
282
|
|
|
@@ -285,7 +285,7 @@ Here's what's planned for future releases:
|
|
|
285
285
|
[npm-version-src]: https://img.shields.io/npm/v/nuxt-discord/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
286
286
|
[npm-version-href]: https://npmjs.com/package/nuxt-discord
|
|
287
287
|
|
|
288
|
-
[license-src]: https://img.shields.io/github/license/zojize/nuxt-discord
|
|
288
|
+
[license-src]: https://img.shields.io/github/license/zojize/nuxt-discord?style=flat&colorA=18181B&colorB=28CF8D
|
|
289
289
|
[license-href]: https://github.com/zojize/nuxt-discord/blob/main/LICENSE
|
|
290
290
|
|
|
291
291
|
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
|
package/dist/module.json
CHANGED
|
@@ -25,6 +25,9 @@ export default defineNitroPlugin(async (nitro) => {
|
|
|
25
25
|
socket.send(JSON.stringify({ event: "full-update" }));
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
+
socket.addEventListener("open", () => {
|
|
29
|
+
socket.send(JSON.stringify({ event: "full-update" }));
|
|
30
|
+
});
|
|
28
31
|
nitro.hooks.hook("close", () => socket.close());
|
|
29
32
|
}
|
|
30
33
|
client.addSlashCommands(slashCommands);
|
package/package.json
CHANGED