@spatulox/simplediscordbot 3.0.0 → 3.0.2

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/.env.example CHANGED
@@ -1,2 +1,2 @@
1
- DISCORD_BOT_TOKEN=example
1
+ DISCORD_BOT_TOKEN=example
2
2
  DISCORD_BOT_DEV # Define this one with anything you want, the value is not important as long as the env var is defined
package/CHANGELOG.md CHANGED
File without changes
package/LICENSE.md CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Spatulox
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Spatulox
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,65 +1,65 @@
1
-
2
- # Simple Discord Bot ![badge-status](https://img.shields.io/badge/status-active-brightgreen)
3
-
4
- [![npm version](https://img.shields.io/npm/v/@spatulox/simplediscordbot.svg)](https://npmjs.com/package/@spatulox/simplediscordbot)
5
- [![downloads](https://img.shields.io/npm/dm/@spatulox/simplediscordbot.svg)](https://npmjs.com/package/@spatulox/simplediscordbot)
6
- [![license](https://img.shields.io/npm/l/@spatulox/simplediscordbot.svg)](LICENSE)
7
-
8
- > **TypeScript Discord.js framework** - Simple, powerful, framework-ready. Built for developers who want clean bot architecture.
9
-
10
- ## ✨ Features :
11
- > - Fully compatible with discordjs
12
- > - Include the [DiscordInterationManager](https://github.com/Spatulox/DiscordInteractionManager) package
13
- > - Simple Log package
14
- > - Provides easy Managers to avoid repetitive code everywhere
15
- > - Simple yet powerful builders (Embeds, Modals, SelectMenus, Components, Buttons) that rely on discord.js for full compatibility
16
-
17
- # Don't forget to check the [wiki](https://github.com/spatulox-discord/SimpleDiscordBot/wiki)
18
-
19
- ## Installation
20
- ```bash
21
- npm i @spatulox/simplediscordbot
22
- ```
23
-
24
- ## Quick Start
25
-
26
- Env Variables:
27
- ```
28
- DISCORD_BOT_TOKEN="" // Your bot Token
29
- ```
30
- <details>
31
- <summary>Note for v2.1.2 and older</summary>
32
-
33
- > You also need to set up this env var :
34
- > ```
35
- > DISCORD_BOT_CLIENTID="" // You bot ClientID
36
- > ```
37
-
38
- </details>
39
-
40
- ```typescript
41
- import {Bot, BotConfig, SimpleColor, Time} from "@spatulox/simplediscordbot";
42
- import {Client, Events, GatewayIntentBits} from "discord.js";
43
-
44
- const client = new Client({
45
- intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages]
46
- });
47
-
48
- const config: BotConfig = {
49
- defaultSimpleColor: SimpleColor.blue,
50
- botName: "Simple Discord Bot",
51
- log: {
52
- info: {channelId: "YOUR_LOG_CHANNEL_ID", console: true, discord: true},
53
- error: {channelId: "YOUR_LOG_CHANNEL_ID", console: true, discord: true},
54
- warn: {channelId: "YOUR_LOG_CHANNEL_ID", console: true, discord: true},
55
- debug: {channelId: "YOUR_LOG_CHANNEL_ID", console: true, discord: false},
56
- }
57
- };
58
-
59
- const bot = new Bot(client, config);
60
-
61
- bot.client.on(Events.ClientReady, async () => {
62
- Bot.setRandomActivity(randomActivityList, Time.minute.MIN_10.toMilliseconds());
63
- console.log("Bot ready! ✨");
64
- });
65
- ```
1
+
2
+ # Simple Discord Bot ![badge-status](https://img.shields.io/badge/status-active-brightgreen)
3
+
4
+ [![npm version](https://img.shields.io/npm/v/@spatulox/simplediscordbot.svg)](https://npmjs.com/package/@spatulox/simplediscordbot)
5
+ [![downloads](https://img.shields.io/npm/dm/@spatulox/simplediscordbot.svg)](https://npmjs.com/package/@spatulox/simplediscordbot)
6
+ [![license](https://img.shields.io/npm/l/@spatulox/simplediscordbot.svg)](LICENSE)
7
+
8
+ > **TypeScript Discord.js framework** - Simple, powerful, framework-ready. Built for developers who want clean bot architecture.
9
+
10
+ ## ✨ Features :
11
+ > - Fully compatible with discordjs
12
+ > - Include the [DiscordInterationManager](https://github.com/Spatulox/DiscordInteractionManager) package
13
+ > - Simple Log package
14
+ > - Provides easy Managers to avoid repetitive code everywhere
15
+ > - Simple yet powerful builders (Embeds, Modals, SelectMenus, Components, Buttons) that rely on discord.js for full compatibility
16
+
17
+ # Don't forget to check the [wiki](https://github.com/spatulox-discord/SimpleDiscordBot/wiki)
18
+
19
+ ## Installation
20
+ ```bash
21
+ npm i @spatulox/simplediscordbot
22
+ ```
23
+
24
+ ## Quick Start
25
+
26
+ Env Variables:
27
+ ```
28
+ DISCORD_BOT_TOKEN="" // Your bot Token
29
+ ```
30
+ <details>
31
+ <summary>Note for v2.1.2 and older</summary>
32
+
33
+ > You also need to set up this env var :
34
+ > ```
35
+ > DISCORD_BOT_CLIENTID="" // You bot ClientID
36
+ > ```
37
+
38
+ </details>
39
+
40
+ ```typescript
41
+ import {Bot, BotConfig, SimpleColor, Time} from "@spatulox/simplediscordbot";
42
+ import {Client, Events, GatewayIntentBits} from "discord.js";
43
+
44
+ const client = new Client({
45
+ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages]
46
+ });
47
+
48
+ const config: BotConfig = {
49
+ defaultSimpleColor: SimpleColor.blue,
50
+ botName: "Simple Discord Bot",
51
+ log: {
52
+ info: {channelId: "YOUR_LOG_CHANNEL_ID", console: true, discord: true},
53
+ error: {channelId: "YOUR_LOG_CHANNEL_ID", console: true, discord: true},
54
+ warn: {channelId: "YOUR_LOG_CHANNEL_ID", console: true, discord: true},
55
+ debug: {channelId: "YOUR_LOG_CHANNEL_ID", console: true, discord: false},
56
+ }
57
+ };
58
+
59
+ const bot = new Bot(client, config);
60
+
61
+ bot.client.on(Events.ClientReady, async () => {
62
+ Bot.setRandomActivity(randomActivityList, Time.minute.MIN_10.toMilliseconds());
63
+ console.log("Bot ready! ✨");
64
+ });
65
+ ```
package/dist/index.d.mts CHANGED
File without changes
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
@@ -763,7 +763,7 @@ var BotInteraction = class {
763
763
  // package.json
764
764
  var package_default = {
765
765
  name: "@spatulox/simplediscordbot",
766
- version: "2.2.2",
766
+ version: "3.0.1",
767
767
  author: "Spatulox",
768
768
  description: "Simple discord bot framework to set up a bot under 30 secondes",
769
769
  exports: {
@@ -785,8 +785,8 @@ var package_default = {
785
785
  },
786
786
  license: "MIT",
787
787
  dependencies: {
788
- "@spatulox/discord-interaction-manager": "^2.0.6",
789
- "@spatulox/utils": "^0.1.1"
788
+ "@spatulox/discord-interaction-manager": "^2.0.7",
789
+ "@spatulox/utils": "^0.2.0"
790
790
  },
791
791
  peerDependencies: {
792
792
  "discord.js": "^14.26.0"
package/dist/index.mjs CHANGED
@@ -743,7 +743,7 @@ var BotInteraction = class {
743
743
  // package.json
744
744
  var package_default = {
745
745
  name: "@spatulox/simplediscordbot",
746
- version: "2.2.2",
746
+ version: "3.0.1",
747
747
  author: "Spatulox",
748
748
  description: "Simple discord bot framework to set up a bot under 30 secondes",
749
749
  exports: {
@@ -765,8 +765,8 @@ var package_default = {
765
765
  },
766
766
  license: "MIT",
767
767
  dependencies: {
768
- "@spatulox/discord-interaction-manager": "^2.0.6",
769
- "@spatulox/utils": "^0.1.1"
768
+ "@spatulox/discord-interaction-manager": "^2.0.7",
769
+ "@spatulox/utils": "^0.2.0"
770
770
  },
771
771
  peerDependencies: {
772
772
  "discord.js": "^14.26.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spatulox/simplediscordbot",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "author": "Spatulox",
5
5
  "description": "Simple discord bot framework to set up a bot under 30 secondes",
6
6
  "exports": {
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@spatulox/discord-interaction-manager": "^2.0.6",
26
- "@spatulox/utils": "^0.1.1"
25
+ "@spatulox/discord-interaction-manager": "^2.0.7",
26
+ "@spatulox/utils": "^0.2.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "discord.js": "^14.26.0"
@@ -1,18 +1,18 @@
1
- Rédige une page de wiki au format suivant :
2
-
3
- - Utilise le langage Markdown.
4
- - Commence par un en‑tête `## [NomDeLaClasse / NomDuModule]`.
5
- - Ajoute un bref paragraphe introductif qui explique en 1–2 phrases ce que cette classe / ce module fait.
6
- - Ensuite, utilise des sous‑titres courtes (au maximum 6 mots) comme :
7
- - `### Core behavior`
8
- - `### Main methods`
9
- - `### Exemple d’utilisation`
10
- - `### Typique usage`
11
- - Pour chaque section, rédige 2–3 phrases max, claires et concises.
12
- - Évite les résumés / conclusions à la fin; limite le contenu exactement aux sections utiles.
13
- - Si la classe est un helper ou un utils, explique aussi comment l’utilisateur doit l’instancier / l’utiliser dans son code.
14
- - Si la classe fait partie d’un système plus large (ex. module system, manager, interaction router), place un petit paragraphe qui montre où elle s’insère dans l’architecture globale.
15
- - Ne fais pas de liste de toutes les méthodes une par une; regroupe‑les par rôle ou par type (ex. “methods for reading files”, “methods for sending messages”).
16
- - Termine par une petite section `### Typical usage` avec 1–2 exemples de code courts et concrets en TypeScript, montrant comment l’utiliser dans un contexte de bot Discord.
17
-
1
+ Rédige une page de wiki au format suivant :
2
+
3
+ - Utilise le langage Markdown.
4
+ - Commence par un en‑tête `## [NomDeLaClasse / NomDuModule]`.
5
+ - Ajoute un bref paragraphe introductif qui explique en 1–2 phrases ce que cette classe / ce module fait.
6
+ - Ensuite, utilise des sous‑titres courtes (au maximum 6 mots) comme :
7
+ - `### Core behavior`
8
+ - `### Main methods`
9
+ - `### Exemple d’utilisation`
10
+ - `### Typique usage`
11
+ - Pour chaque section, rédige 2–3 phrases max, claires et concises.
12
+ - Évite les résumés / conclusions à la fin; limite le contenu exactement aux sections utiles.
13
+ - Si la classe est un helper ou un utils, explique aussi comment l’utilisateur doit l’instancier / l’utiliser dans son code.
14
+ - Si la classe fait partie d’un système plus large (ex. module system, manager, interaction router), place un petit paragraphe qui montre où elle s’insère dans l’architecture globale.
15
+ - Ne fais pas de liste de toutes les méthodes une par une; regroupe‑les par rôle ou par type (ex. “methods for reading files”, “methods for sending messages”).
16
+ - Termine par une petite section `### Typical usage` avec 1–2 exemples de code courts et concrets en TypeScript, montrant comment l’utiliser dans un contexte de bot Discord.
17
+
18
18
  Tout doit rester lisible, orienté développeur, sans entrer dans des détails implémentatoires trop bas‑niveau.