@spatulox/simplediscordbot 1.0.38 → 1.0.39
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 +1 -1
- package/LICENSE.md +21 -21
- package/README.md +51 -51
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +51 -51
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/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,51 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
# Simple Discord Bot 
|
|
3
|
-
|
|
4
|
-
[](https://npmjs.com/package/@spatulox/simplediscordbot)
|
|
5
|
-
[](https://npmjs.com/package/@spatulox/simplediscordbot)
|
|
6
|
-
[](LICENSE)
|
|
7
|
-
|
|
8
|
-
**Ultra-simple Framework Discord.js TypeScript**
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
11
|
-
```bash
|
|
12
|
-
npm i @spatulox/simplediscordbot
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
> **TypeScript Discord.js framework** - Simple, powerful, framework-ready. Built for developers who want clean bot architecture.
|
|
16
|
-
## Quick Start
|
|
17
|
-
|
|
18
|
-
Env Variables:
|
|
19
|
-
```bash
|
|
20
|
-
DISCORD_BOT_TOKEN="" // Your bot Token
|
|
21
|
-
DISCORD_BOT_CLIENTID="" // Yout bot client id
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
import {Bot, BotConfig, EmbedColor, Time} from "@spatulox/simplediscordbot";
|
|
26
|
-
import {Client, Events, GatewayIntentBits} from "discord.js";
|
|
27
|
-
|
|
28
|
-
const client = new Client({
|
|
29
|
-
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages]
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
const config: BotConfig = {
|
|
33
|
-
defaultEmbedColor: EmbedColor.blue,
|
|
34
|
-
botName: "Simple Discord Bot",
|
|
35
|
-
log: {
|
|
36
|
-
logChannelId: "YOUR_LOG_CHANNEL_ID",
|
|
37
|
-
errorChannelId: "YOUR_ERROR_CHANNEL_ID",
|
|
38
|
-
info: { console: true, discord: true },
|
|
39
|
-
error: { console: true, discord: true },
|
|
40
|
-
warn: { console: true, discord: true },
|
|
41
|
-
debug: { console: true, discord: false }
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const bot = new Bot(client, config);
|
|
46
|
-
|
|
47
|
-
bot.client.on(Events.ClientReady, async () => {
|
|
48
|
-
Bot.setRandomActivity(randomActivityList, Time.minute.MIN_10.toMilliseconds());
|
|
49
|
-
console.log("Bot ready! ✨");
|
|
50
|
-
});
|
|
51
|
-
```
|
|
1
|
+
|
|
2
|
+
# Simple Discord Bot 
|
|
3
|
+
|
|
4
|
+
[](https://npmjs.com/package/@spatulox/simplediscordbot)
|
|
5
|
+
[](https://npmjs.com/package/@spatulox/simplediscordbot)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+
**Ultra-simple Framework Discord.js TypeScript**
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
```bash
|
|
12
|
+
npm i @spatulox/simplediscordbot
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
> **TypeScript Discord.js framework** - Simple, powerful, framework-ready. Built for developers who want clean bot architecture.
|
|
16
|
+
## Quick Start
|
|
17
|
+
|
|
18
|
+
Env Variables:
|
|
19
|
+
```bash
|
|
20
|
+
DISCORD_BOT_TOKEN="" // Your bot Token
|
|
21
|
+
DISCORD_BOT_CLIENTID="" // Yout bot client id
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import {Bot, BotConfig, EmbedColor, Time} from "@spatulox/simplediscordbot";
|
|
26
|
+
import {Client, Events, GatewayIntentBits} from "discord.js";
|
|
27
|
+
|
|
28
|
+
const client = new Client({
|
|
29
|
+
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages]
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const config: BotConfig = {
|
|
33
|
+
defaultEmbedColor: EmbedColor.blue,
|
|
34
|
+
botName: "Simple Discord Bot",
|
|
35
|
+
log: {
|
|
36
|
+
logChannelId: "YOUR_LOG_CHANNEL_ID",
|
|
37
|
+
errorChannelId: "YOUR_ERROR_CHANNEL_ID",
|
|
38
|
+
info: { console: true, discord: true },
|
|
39
|
+
error: { console: true, discord: true },
|
|
40
|
+
warn: { console: true, discord: true },
|
|
41
|
+
debug: { console: true, discord: false }
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const bot = new Bot(client, config);
|
|
46
|
+
|
|
47
|
+
bot.client.on(Events.ClientReady, async () => {
|
|
48
|
+
Bot.setRandomActivity(randomActivityList, Time.minute.MIN_10.toMilliseconds());
|
|
49
|
+
console.log("Bot ready! ✨");
|
|
50
|
+
});
|
|
51
|
+
```
|
package/dist/index.js
CHANGED
|
@@ -2528,7 +2528,7 @@ var SimpleMutex = class {
|
|
|
2528
2528
|
// package.json
|
|
2529
2529
|
var package_default = {
|
|
2530
2530
|
name: "@spatulox/simplediscordbot",
|
|
2531
|
-
version: "1.0.
|
|
2531
|
+
version: "1.0.38",
|
|
2532
2532
|
author: "Spatulox",
|
|
2533
2533
|
description: "Simple discord bot framework to set up a bot under 30 secondes",
|
|
2534
2534
|
exports: {
|
package/dist/index.mjs
CHANGED
|
@@ -2506,7 +2506,7 @@ var SimpleMutex = class {
|
|
|
2506
2506
|
// package.json
|
|
2507
2507
|
var package_default = {
|
|
2508
2508
|
name: "@spatulox/simplediscordbot",
|
|
2509
|
-
version: "1.0.
|
|
2509
|
+
version: "1.0.38",
|
|
2510
2510
|
author: "Spatulox",
|
|
2511
2511
|
description: "Simple discord bot framework to set up a bot under 30 secondes",
|
|
2512
2512
|
exports: {
|
package/package.json
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@spatulox/simplediscordbot",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"author": "Spatulox",
|
|
5
|
-
"description": "Simple discord bot framework to set up a bot under 30 secondes",
|
|
6
|
-
"exports": {
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"import": "./dist/index.js",
|
|
9
|
-
"require": "./dist/index.js"
|
|
10
|
-
},
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "rm -r dist/ && tsup",
|
|
14
|
-
"patch": "npm run build && npm version patch",
|
|
15
|
-
"minor": "npm run build && npm version minor",
|
|
16
|
-
"major": "npm run build && npm version major",
|
|
17
|
-
"premajor": "npm run build && npm version premajor",
|
|
18
|
-
"premajor:alpha": "npm run build && npm version premajor --preid=alpha",
|
|
19
|
-
"pub": "npm run patch && npm publish --access public",
|
|
20
|
-
"pub:major": "npm run major && npm publish --access public",
|
|
21
|
-
"pub:alpha": "npm run premajor:alpha && npm publish --tag alpha --access public",
|
|
22
|
-
"test-pack": "npm run patch && npm publish --access public",
|
|
23
|
-
"dev": "nodemon --exec tsx src/test/index.ts"
|
|
24
|
-
},
|
|
25
|
-
"license": "MIT",
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@spatulox/discord-interaction-manager": "^1.0.17",
|
|
28
|
-
"discord.js": "^14.25.1"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@types/node": "^22.14.0",
|
|
32
|
-
"@types/node-schedule": "^2.1.7",
|
|
33
|
-
"dotenv": "^17.2.4",
|
|
34
|
-
"nodemon": "^3.1.9",
|
|
35
|
-
"tsup": "^8.5.1",
|
|
36
|
-
"tsx": "^4.20.3",
|
|
37
|
-
"typescript": "^5.9.3"
|
|
38
|
-
},
|
|
39
|
-
"keywords": [
|
|
40
|
-
"discord",
|
|
41
|
-
"framework",
|
|
42
|
-
"bot",
|
|
43
|
-
"client",
|
|
44
|
-
"discordjs",
|
|
45
|
-
"discord.js",
|
|
46
|
-
"node"
|
|
47
|
-
],
|
|
48
|
-
"bugs": {
|
|
49
|
-
"url": "https://github.com/Spatulox/SimpleDiscordBot/issues"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@spatulox/simplediscordbot",
|
|
3
|
+
"version": "1.0.39",
|
|
4
|
+
"author": "Spatulox",
|
|
5
|
+
"description": "Simple discord bot framework to set up a bot under 30 secondes",
|
|
6
|
+
"exports": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"import": "./dist/index.js",
|
|
9
|
+
"require": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "rm -r dist/ && tsup",
|
|
14
|
+
"patch": "npm run build && npm version patch",
|
|
15
|
+
"minor": "npm run build && npm version minor",
|
|
16
|
+
"major": "npm run build && npm version major",
|
|
17
|
+
"premajor": "npm run build && npm version premajor",
|
|
18
|
+
"premajor:alpha": "npm run build && npm version premajor --preid=alpha",
|
|
19
|
+
"pub": "npm run patch && npm publish --access public",
|
|
20
|
+
"pub:major": "npm run major && npm publish --access public",
|
|
21
|
+
"pub:alpha": "npm run premajor:alpha && npm publish --tag alpha --access public",
|
|
22
|
+
"test-pack": "npm run patch && npm publish --access public",
|
|
23
|
+
"dev": "nodemon --exec tsx src/test/index.ts"
|
|
24
|
+
},
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@spatulox/discord-interaction-manager": "^1.0.17",
|
|
28
|
+
"discord.js": "^14.25.1"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^22.14.0",
|
|
32
|
+
"@types/node-schedule": "^2.1.7",
|
|
33
|
+
"dotenv": "^17.2.4",
|
|
34
|
+
"nodemon": "^3.1.9",
|
|
35
|
+
"tsup": "^8.5.1",
|
|
36
|
+
"tsx": "^4.20.3",
|
|
37
|
+
"typescript": "^5.9.3"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"discord",
|
|
41
|
+
"framework",
|
|
42
|
+
"bot",
|
|
43
|
+
"client",
|
|
44
|
+
"discordjs",
|
|
45
|
+
"discord.js",
|
|
46
|
+
"node"
|
|
47
|
+
],
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/Spatulox/SimpleDiscordBot/issues"
|
|
50
|
+
}
|
|
51
|
+
}
|