generator-discord 1.0.8 → 1.1.0
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 +1 -4
- package/app/index.js +0 -4
- package/app/index.js.map +1 -1
- package/package.json +8 -4
- package/src/index.ts +4 -3
- package/templates/javascript/config.json +3 -0
- package/templates/javascript/package.json +0 -1
- package/templates/javascript/src/index.js +9 -15
- package/templates/python/bot.py +21 -0
- package/templates/typescript/config.json +3 -0
- package/templates/typescript/package.json +0 -1
- package/templates/typescript/src/index.ts +9 -13
- package/templates/typescript/tsconfig.json +0 -1
- package/templates/sound-bot/LICENSE.md +0 -21
- package/templates/sound-bot/README.md +0 -56
- package/templates/sound-bot/assets/super-idol.mp3 +0 -0
- package/templates/sound-bot/config.json +0 -5
- package/templates/sound-bot/logo.svg +0 -24
- package/templates/sound-bot/package.json +0 -39
- package/templates/sound-bot/src/index.ts +0 -51
- package/templates/sound-bot/tsconfig.json +0 -24
package/README.md
CHANGED
package/app/index.js
CHANGED
package/app/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wEAAyC;AACzC,gDAAwB;AAGxB,MAAM,YAAY,GAAG,eAAe,CAAC;AACrC,MAAM,QAAQ,GAAG,GAAG,CAAC;AAErB,MAAM,IAAI,GAAG,MAAM,CAAC;AACpB,MAAM,KAAK,GAAG,KAAK,CAAC;AAEpB,MAAM,QAAQ,GAAG,UAAU,CAAC;AAC5B,MAAM,SAAS,GAAG,WAAW,CAAC;AAU9B,MAAqB,gBAAiB,SAAQ,0BAAS;IAGnD,YAAY,IAAuB,EAAE,OAAmC;QACpE,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACzB,CAAC;IAEK,SAAS;;YACX,IAAI,CAAC,IAAI,EAAE,CAAC;YACZ,IAAI,CAAC,OAAO,GAAG,MAAM,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ACH,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACb,IAAI,MAAM,IAAI,MAAM,CAAC,YAAY,EAAE;gBAC/B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,eAAe,CAC3C,QAAQ,EACR,IAAI,CAAC,OAAO,CAAC,OAAO,CACvB,CAAC,CAAC,CAAC;aACP;QACL,CAAC;KAAA;CACJ;AAxHD,mCAwHC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-discord",
|
|
3
3
|
"displayName": "Generator-Discord",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"main": "./app/index.js",
|
|
6
6
|
"description": "Yeoman generator for Discord.js",
|
|
7
7
|
"keywords": [
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
15
|
"watch": "tsc -w",
|
|
16
|
-
"
|
|
16
|
+
"test": "vitest run",
|
|
17
|
+
"debug": "npm i -g generator-discord && npx --node-arg=--inspect yo discord"
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
19
20
|
"app",
|
|
@@ -32,10 +33,13 @@
|
|
|
32
33
|
},
|
|
33
34
|
"homepage": "https://github.com/emilkrebs/Generator-Discord",
|
|
34
35
|
"dependencies": {
|
|
36
|
+
"@types/yeoman-test": "~4.0.3",
|
|
35
37
|
"typescript": "^4.7.2",
|
|
36
|
-
"yeoman-generator": "^5.6.1"
|
|
38
|
+
"yeoman-generator": "^5.6.1",
|
|
39
|
+
"yeoman-test": "~7.3.0"
|
|
37
40
|
},
|
|
38
41
|
"devDependencies": {
|
|
39
|
-
"@types/yeoman-generator": "^5.2.10"
|
|
42
|
+
"@types/yeoman-generator": "^5.2.10",
|
|
43
|
+
"vitest": "^0.29.2"
|
|
40
44
|
}
|
|
41
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -52,10 +52,11 @@ export default class DiscordGenerator extends Generator {
|
|
|
52
52
|
{
|
|
53
53
|
name: 'New Discord Bot (JavaScript)',
|
|
54
54
|
value: 'javascript'
|
|
55
|
-
}
|
|
55
|
+
}
|
|
56
|
+
,
|
|
56
57
|
{
|
|
57
|
-
name: 'New
|
|
58
|
-
value: '
|
|
58
|
+
name: 'New Discord Bot (Python)',
|
|
59
|
+
value: 'python'
|
|
59
60
|
}
|
|
60
61
|
]
|
|
61
62
|
},
|
|
@@ -1,32 +1,26 @@
|
|
|
1
1
|
const { Client, Intents } = require('discord.js');
|
|
2
|
-
const colors = require('colors');
|
|
3
2
|
const { token } = require('../config.json');
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// Create a new client instance with Intents that specify which privileged intents your bot requires
|
|
6
5
|
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
|
|
8
|
+
// Run this code when the client is ready. This event will only trigger one time after logging in
|
|
9
9
|
client.once('ready', () => {
|
|
10
|
-
console.log(
|
|
11
|
-
console.log(getTime() + colors.green(`Bot is logged in as ${colors.yellow(client.user.tag)}.`));
|
|
10
|
+
console.log(`Bot is logged in as ${client.user.tag}.`);
|
|
12
11
|
});
|
|
13
12
|
|
|
14
|
-
//
|
|
13
|
+
// Listen for messages
|
|
15
14
|
client.on('messageCreate', async message => {
|
|
16
15
|
const { content } = message;
|
|
16
|
+
// Reply with "Pong!" when someone says "!ping"
|
|
17
17
|
if (content === "!ping") {
|
|
18
|
-
return await message.reply("
|
|
18
|
+
return await message.reply("Pong!");
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
//
|
|
24
|
-
function getTime() {
|
|
25
|
-
let dateTime = new Date()
|
|
26
|
-
return colors.gray(`[${dateTime.getHours()}:${dateTime.getMinutes()}:${dateTime.getSeconds()}] `);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// login with your client's token
|
|
23
|
+
// Login to Discord with your app's token
|
|
30
24
|
client.login(token);
|
|
31
25
|
|
|
32
|
-
//
|
|
26
|
+
// For more information about the Discord.js library, visit https://discord.js.org/#/docs/main/stable/general/welcome
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import discord
|
|
2
|
+
from discord.ext import commands
|
|
3
|
+
|
|
4
|
+
# Define bot prefix and create bot instance
|
|
5
|
+
bot_prefix = "!"
|
|
6
|
+
bot = commands.Bot(command_prefix=bot_prefix)
|
|
7
|
+
|
|
8
|
+
# Define bot events
|
|
9
|
+
@bot.event
|
|
10
|
+
async def on_ready():
|
|
11
|
+
print(f"Logged in as {bot.user.name} ({bot.user.id})")
|
|
12
|
+
|
|
13
|
+
# Define bot commands
|
|
14
|
+
@bot.command()
|
|
15
|
+
async def ping(ctx):
|
|
16
|
+
await ctx.send("Pong!")
|
|
17
|
+
|
|
18
|
+
# Run bot with bot token
|
|
19
|
+
bot.run("<%= bot-token %>")
|
|
20
|
+
|
|
21
|
+
# For more information on how to use discord.py, visit https://discordpy.readthedocs.io/en/latest/
|
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
import { Client, Intents } from 'discord.js';
|
|
2
|
-
import colors from 'colors';
|
|
3
2
|
import { token } from '../config.json';
|
|
4
3
|
|
|
4
|
+
// Create a new client instance with Intents that specify which privileged intents your bot requires
|
|
5
5
|
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// Run this code when the client is ready. This event will only trigger one time after logging in
|
|
8
8
|
client.once('ready', () => {
|
|
9
|
-
console.log(
|
|
10
|
-
console.log(getTime() + colors.green(`Bot is logged in as ${colors.yellow(client.user!.tag)}.`));
|
|
9
|
+
console.log(`Bot is logged in as ${client.user.tag}.`);
|
|
11
10
|
});
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
|
|
13
|
+
// Listen for messages
|
|
14
14
|
client.on('messageCreate', async message => {
|
|
15
15
|
const { content } = message;
|
|
16
|
+
// Reply with "Pong!" when someone says "!ping"
|
|
16
17
|
if (content === "!ping") {
|
|
17
|
-
await message.reply("
|
|
18
|
+
await message.reply("Pong!");
|
|
18
19
|
return;
|
|
19
20
|
}
|
|
20
21
|
});
|
|
21
22
|
|
|
22
|
-
// get the current time to get useful log messages
|
|
23
|
-
function getTime() {
|
|
24
|
-
let dateTime = new Date()
|
|
25
|
-
return colors.gray(`[${dateTime.getHours()}:${dateTime.getMinutes()}:${dateTime.getSeconds()}] `);
|
|
26
|
-
}
|
|
27
23
|
|
|
28
|
-
//
|
|
24
|
+
// Login to Discord with your app's token
|
|
29
25
|
client.login(token);
|
|
30
26
|
|
|
31
|
-
//
|
|
27
|
+
// For more information about the Discord.js library, visit https://discord.js.org/#/docs/main/stable/general/welcome
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 Emil Krebs
|
|
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,56 +0,0 @@
|
|
|
1
|
-
<div id="logo" align="center">
|
|
2
|
-
<a href="https://github.com/emilkrebs/sound-bot" target="_blank" rel="noopener noreferrer">
|
|
3
|
-
<img width="256" alt="Sound-Bot Logo" src="https://raw.githubusercontent.com/emilkrebs/Sound-bot/main/logo.svg">
|
|
4
|
-
</a>
|
|
5
|
-
<h3>
|
|
6
|
-
Create annoying discord bots
|
|
7
|
-
</h3>
|
|
8
|
-
</div>
|
|
9
|
-
|
|
10
|
-
<div id="badges" align="center">
|
|
11
|
-
|
|
12
|
-
[](https://github.com/emilkrebs/sound-bot/actions/workflows/build.yml)
|
|
13
|
-
[](https://gitpod.io/#https://github.com/emilkrebs/Sound-bot)
|
|
14
|
-
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<hr>
|
|
19
|
-
|
|
20
|
-
**This Template is from https://github.com/emilkrebs/Sound-Bot.**
|
|
21
|
-
|
|
22
|
-
Play a sound in a discord channel indefinitely.
|
|
23
|
-
I created this to annoy me and my friends on our discord server.
|
|
24
|
-
|
|
25
|
-
**You WILL get annoyed very fast.**
|
|
26
|
-
|
|
27
|
-
# Getting started
|
|
28
|
-
- Install [node.js](https://nodejs.org/en/)
|
|
29
|
-
- If you don't already have a Discord Bot, create one [here](https://discord.com/developers/applications/)
|
|
30
|
-
- Clone the repository using `git clone https://github.com/emilkrebs/sound-bot.git`
|
|
31
|
-
- Create a `config.json` file that looks like this:
|
|
32
|
-
```json
|
|
33
|
-
{
|
|
34
|
-
"token":"your-bot-token",
|
|
35
|
-
"songUrl":"your-song-url",
|
|
36
|
-
"playCommand":"your-play-command"
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
- `npm i` to install all required dependencies
|
|
41
|
-
- `npm run start` to start the bot
|
|
42
|
-
|
|
43
|
-
# Example
|
|
44
|
-
Demo Bot (Offline):
|
|
45
|
-
[Invite](https://discord.com/oauth2/authorize?client_id=943570593666719856&permissions=3148288&scope=bot)
|
|
46
|
-
|
|
47
|
-
Configuration in the `config.json` file:
|
|
48
|
-
```json
|
|
49
|
-
{
|
|
50
|
-
"token":"your-bot-token",
|
|
51
|
-
"songUrl":"https://github.com/emilkrebs/Sound-bot/raw/main/assets/super-idol.mp3",
|
|
52
|
-
"playCommand":"!superidol"
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-

|
|
Binary file
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
-
<svg width="100%" height="100%" viewBox="0 0 388 378" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
|
4
|
-
<g transform="matrix(1,0,0,1,-624.027,-67.4865)">
|
|
5
|
-
<rect id="Result" x="562" y="0" width="512" height="512" style="fill:none;"/>
|
|
6
|
-
<g id="Result1" serif:id="Result">
|
|
7
|
-
<g id="Icon" transform="matrix(1,0,0,1,562,0)">
|
|
8
|
-
<path d="M358.75,173.61C363.307,160.425 368.661,146.421 373.252,133.889C363.943,124.341 359.753,110.266 363.452,96.459C369.035,75.625 390.481,63.243 411.315,68.826C432.149,74.408 444.531,95.854 438.948,116.688C434.062,134.926 417.018,146.687 398.871,145.59C396.145,159.711 391.757,173.606 387.095,185.912C425.614,206.228 449.973,236.119 449.973,269.422C449.973,290.637 439.897,311.407 420.941,329.263L420.93,329.263C439.307,346.525 449.973,367.068 449.973,389.105C449.973,408.557 441.501,427.667 425.407,444.513L107.813,444.513C91.72,427.667 83.247,408.557 83.247,389.105C83.247,367.068 93.913,346.525 112.29,329.263L112.28,329.263C93.324,311.407 83.247,290.637 83.247,269.422C83.247,235.85 108.002,205.745 147.065,185.42C142.076,180.828 137.373,176.909 133.457,174.338C128.282,170.942 122.039,168.563 115.601,166.752C102.791,177.519 83.624,176.877 71.573,164.826C58.844,152.097 58.844,131.428 71.573,118.699C84.303,105.97 104.972,105.97 117.701,118.699C122.563,123.561 125.568,129.583 126.715,135.875C136.874,138.943 147.714,143.695 157.129,149.875C163.742,154.215 172.645,162.45 181.399,171.29C206.859,163.19 235.856,158.604 266.61,158.604C300.189,158.604 331.671,164.071 358.75,173.61ZM359.434,363.617C359.145,364.96 358.702,366.277 358.11,367.549L361.626,370.166C360.832,371.63 359.869,373.026 358.753,374.335L354.291,373.091C353.132,374.303 351.818,375.404 350.372,376.374L351.856,380.113C350.294,381.048 348.628,381.855 346.88,382.52L343.758,379.574C342.031,380.138 340.237,380.541 338.405,380.776L337.459,384.635C335.548,384.791 333.624,384.791 331.713,384.635L330.767,380.776C328.936,380.541 327.141,380.138 325.415,379.574L322.292,382.52C320.544,381.855 318.878,381.048 317.316,380.113L318.8,376.374C317.354,375.404 316.04,374.303 314.882,373.091L310.419,374.335C309.303,373.026 308.341,371.63 307.546,370.166L311.063,367.549C310.471,366.277 310.027,364.96 309.738,363.617L192.065,363.617C191.776,364.96 191.333,366.277 190.741,367.549L194.257,370.166C193.463,371.63 192.501,373.026 191.385,374.335L186.922,373.091C185.763,374.303 184.449,375.404 183.004,376.374L184.488,380.113C182.926,381.048 181.259,381.855 179.512,382.52L176.389,379.574C174.663,380.138 172.868,380.541 171.036,380.776L170.09,384.635C168.18,384.791 166.255,384.791 164.345,384.635L163.398,380.776C161.567,380.541 159.772,380.138 158.046,379.574L154.923,382.52C153.176,381.855 151.509,381.048 149.947,380.113L151.431,376.374C149.985,375.404 148.671,374.303 147.513,373.091L143.512,374.206L143.512,395.32C143.512,401.152 148.247,405.887 154.079,405.887L213.001,405.887C213.001,405.084 213.047,404.281 213.14,403.48L217.747,402.688C218.027,401.153 218.508,399.649 219.181,398.203L215.665,395.587C216.459,394.123 217.421,392.726 218.537,391.418L223,392.661C224.159,391.45 225.473,390.349 226.918,389.378L225.435,385.639C226.996,384.704 228.663,383.898 230.41,383.232L233.533,386.178C235.259,385.615 237.054,385.212 238.886,384.977L239.832,381.117C241.743,380.962 243.667,380.962 245.577,381.117L246.524,384.977C248.355,385.212 250.15,385.615 251.876,386.178L254.999,383.232C256.746,383.898 258.413,384.704 259.975,385.639L258.491,389.378C259.937,390.349 261.251,391.45 262.409,392.661L266.872,391.418C267.988,392.726 268.95,394.123 269.745,395.587L266.228,398.203C266.901,399.649 267.382,401.153 267.662,402.688L272.269,403.48C272.362,404.281 272.408,405.084 272.408,405.887L355.812,405.887L353.815,404.402C354.61,402.938 355.572,401.542 356.688,400.233L361.151,401.476C362.309,400.265 363.623,399.164 365.069,398.194L363.585,394.455C365.147,393.519 366.813,392.713 368.561,392.048L371.684,394.994C373.41,394.43 375.205,394.027 377.036,393.792L377.983,389.932C379.893,389.777 381.817,389.777 383.728,389.932L384.674,393.792C386.394,394.013 388.081,394.381 389.709,394.892L389.709,374.184C389.709,368.352 384.974,363.617 379.142,363.617L359.434,363.617ZM335.729,245.303C351.492,245.303 364.29,258.101 364.29,273.865C364.29,289.628 351.492,302.426 335.729,302.426C319.965,302.426 307.167,289.628 307.167,273.865C307.167,258.101 319.965,245.303 335.729,245.303ZM197.492,243.934C213.256,243.934 226.054,256.732 226.054,272.495C226.054,288.258 213.256,301.056 197.492,301.056C181.729,301.056 168.931,288.258 168.931,272.495C168.931,256.732 181.729,243.934 197.492,243.934Z" style="fill:rgb(82,97,247);">
|
|
9
|
-
<animate
|
|
10
|
-
attributeName="d"
|
|
11
|
-
dur="6s"
|
|
12
|
-
repeatCount="indefinite"
|
|
13
|
-
values="
|
|
14
|
-
M358.75,173.61C363.307,160.425 368.661,146.421 373.252,133.889C363.943,124.341 359.753,110.266 363.452,96.459C369.035,75.625 390.481,63.243 411.315,68.826C432.149,74.408 444.531,95.854 438.948,116.688C434.062,134.926 417.018,146.687 398.871,145.59C396.145,159.711 391.757,173.606 387.095,185.912C425.614,206.228 449.973,236.119 449.973,269.422C449.973,290.637 439.897,311.407 420.941,329.263L420.93,329.263C439.307,346.525 449.973,367.068 449.973,389.105C449.973,408.557 441.501,427.667 425.407,444.513L107.813,444.513C91.72,427.667 83.247,408.557 83.247,389.105C83.247,367.068 93.913,346.525 112.29,329.263L112.28,329.263C93.324,311.407 83.247,290.637 83.247,269.422C83.247,235.85 108.002,205.745 147.065,185.42C142.076,180.828 137.373,176.909 133.457,174.338C128.282,170.942 122.039,168.563 115.601,166.752C102.791,177.519 83.624,176.877 71.573,164.826C58.844,152.097 58.844,131.428 71.573,118.699C84.303,105.97 104.972,105.97 117.701,118.699C122.563,123.561 125.568,129.583 126.715,135.875C136.874,138.943 147.714,143.695 157.129,149.875C163.742,154.215 172.645,162.45 181.399,171.29C206.859,163.19 235.856,158.604 266.61,158.604C300.189,158.604 331.671,164.071 358.75,173.61ZM359.434,363.617C359.145,364.96 358.702,366.277 358.11,367.549L361.626,370.166C360.832,371.63 359.869,373.026 358.753,374.335L354.291,373.091C353.132,374.303 351.818,375.404 350.372,376.374L351.856,380.113C350.294,381.048 348.628,381.855 346.88,382.52L343.758,379.574C342.031,380.138 340.237,380.541 338.405,380.776L337.459,384.635C335.548,384.791 333.624,384.791 331.713,384.635L330.767,380.776C328.936,380.541 327.141,380.138 325.415,379.574L322.292,382.52C320.544,381.855 318.878,381.048 317.316,380.113L318.8,376.374C317.354,375.404 316.04,374.303 314.882,373.091L310.419,374.335C309.303,373.026 308.341,371.63 307.546,370.166L311.063,367.549C310.471,366.277 310.027,364.96 309.738,363.617L192.065,363.617C191.776,364.96 191.333,366.277 190.741,367.549L194.257,370.166C193.463,371.63 192.501,373.026 191.385,374.335L186.922,373.091C185.763,374.303 184.449,375.404 183.004,376.374L184.488,380.113C182.926,381.048 181.259,381.855 179.512,382.52L176.389,379.574C174.663,380.138 172.868,380.541 171.036,380.776L170.09,384.635C168.18,384.791 166.255,384.791 164.345,384.635L163.398,380.776C161.567,380.541 159.772,380.138 158.046,379.574L154.923,382.52C153.176,381.855 151.509,381.048 149.947,380.113L151.431,376.374C149.985,375.404 148.671,374.303 147.513,373.091L143.512,374.206L143.512,395.32C143.512,401.152 148.247,405.887 154.079,405.887L213.001,405.887C213.001,405.084 213.047,404.281 213.14,403.48L217.747,402.688C218.027,401.153 218.508,399.649 219.181,398.203L215.665,395.587C216.459,394.123 217.421,392.726 218.537,391.418L223,392.661C224.159,391.45 225.473,390.349 226.918,389.378L225.435,385.639C226.996,384.704 228.663,383.898 230.41,383.232L233.533,386.178C235.259,385.615 237.054,385.212 238.886,384.977L239.832,381.117C241.743,380.962 243.667,380.962 245.577,381.117L246.524,384.977C248.355,385.212 250.15,385.615 251.876,386.178L254.999,383.232C256.746,383.898 258.413,384.704 259.975,385.639L258.491,389.378C259.937,390.349 261.251,391.45 262.409,392.661L266.872,391.418C267.988,392.726 268.95,394.123 269.745,395.587L266.228,398.203C266.901,399.649 267.382,401.153 267.662,402.688L272.269,403.48C272.362,404.281 272.408,405.084 272.408,405.887L355.812,405.887L353.815,404.402C354.61,402.938 355.572,401.542 356.688,400.233L361.151,401.476C362.309,400.265 363.623,399.164 365.069,398.194L363.585,394.455C365.147,393.519 366.813,392.713 368.561,392.048L371.684,394.994C373.41,394.43 375.205,394.027 377.036,393.792L377.983,389.932C379.893,389.777 381.817,389.777 383.728,389.932L384.674,393.792C386.394,394.013 388.081,394.381 389.709,394.892L389.709,374.184C389.709,368.352 384.974,363.617 379.142,363.617L359.434,363.617ZM335.729,245.303C351.492,245.303 364.29,258.101 364.29,273.865C364.29,289.628 351.492,302.426 335.729,302.426C319.965,302.426 307.167,289.628 307.167,273.865C307.167,258.101 319.965,245.303 335.729,245.303ZM197.492,243.934C213.256,243.934 226.054,256.732 226.054,272.495C226.054,288.258 213.256,301.056 197.492,301.056C181.729,301.056 168.931,288.258 168.931,272.495C168.931,256.732 181.729,243.934 197.492,243.934Z;
|
|
15
|
-
M358.75,173.61C363.307,160.425 368.661,146.421 373.252,133.889C363.943,124.341 359.753,110.266 363.452,96.459C369.035,75.625 390.481,63.243 411.315,68.826C432.149,74.408 444.531,95.854 438.948,116.688C434.062,134.926 417.018,146.687 398.871,145.59C396.145,159.711 391.757,173.606 387.095,185.912C425.614,206.228 449.973,236.119 449.973,269.422C449.973,290.637 439.897,311.407 420.941,329.263L420.93,329.263C439.307,346.525 449.973,367.068 449.973,389.105C449.973,408.557 441.501,427.667 425.407,444.513L107.813,444.513C91.72,427.667 83.247,408.557 83.247,389.105C83.247,367.068 93.913,346.525 112.29,329.263L112.28,329.263C93.324,311.407 83.247,290.637 83.247,269.422C83.247,235.85 108.002,205.745 147.065,185.42C142.076,180.828 137.373,176.909 133.457,174.338C128.282,170.942 122.039,168.563 115.601,166.752C102.791,177.519 83.624,176.877 71.573,164.826C58.844,152.097 58.844,131.428 71.573,118.699C84.303,105.97 104.972,105.97 117.701,118.699C122.563,123.561 125.568,129.583 126.715,135.875C136.874,138.943 147.714,143.695 157.129,149.875C163.742,154.215 172.645,162.45 181.399,171.29C206.859,163.19 235.856,158.604 266.61,158.604C300.189,158.604 331.671,164.071 358.75,173.61ZM359.434,363.617C359.145,364.96 358.702,366.277 358.11,367.549L361.626,370.166C360.832,371.63 359.869,373.026 358.753,374.335L354.291,373.091C353.132,374.303 351.818,375.404 350.372,376.374L351.856,380.113C350.294,381.048 348.628,381.855 346.88,382.52L343.758,379.574C342.031,380.138 340.237,380.541 338.405,380.776L337.459,384.635C335.548,384.791 333.624,384.791 331.713,384.635L330.767,380.776C328.936,380.541 327.141,380.138 325.415,379.574L322.292,382.52C320.544,381.855 318.878,381.048 317.316,380.113L318.8,376.374C317.354,375.404 316.04,374.303 314.882,373.091L310.419,374.335C309.303,373.026 308.341,371.63 307.546,370.166L311.063,367.549C310.471,366.277 310.027,364.96 309.738,363.617L192.065,363.617C191.776,364.96 191.333,366.277 190.741,367.549L194.257,370.166C193.463,371.63 192.501,373.026 191.385,374.335L186.922,373.091C185.763,374.303 184.449,375.404 183.004,376.374L184.488,380.113C182.926,381.048 181.259,381.855 179.512,382.52L176.389,379.574C174.663,380.138 172.868,380.541 171.036,380.776L170.09,384.635C168.18,384.791 166.255,384.791 164.345,384.635L163.398,380.776C161.567,380.541 159.772,380.138 158.046,379.574L154.923,382.52C153.176,381.855 151.509,381.048 149.947,380.113L151.431,376.374C149.985,375.404 148.671,374.303 147.513,373.091L143.512,374.206L143.512,395.32C143.512,401.152 148.247,405.887 154.079,405.887L213.001,405.887C213.001,405.084 213.047,404.281 213.14,403.48L217.747,402.688C218.027,401.153 218.508,399.649 219.181,398.203L215.665,395.587C216.459,394.123 217.421,392.726 218.537,391.418L223,392.661C224.159,391.45 225.473,390.349 226.918,389.378L225.435,385.639C226.996,384.704 228.663,383.898 230.41,383.232L233.533,386.178C235.259,385.615 237.054,385.212 238.886,384.977L239.832,381.117C241.743,380.962 243.667,380.962 245.577,381.117L246.524,384.977C248.355,385.212 250.15,385.615 251.876,386.178L254.999,383.232C256.746,383.898 258.413,384.704 259.975,385.639L258.491,389.378C259.937,390.349 261.251,391.45 262.409,392.661L266.872,391.418C267.988,392.726 268.95,394.123 269.745,395.587L266.228,398.203C266.901,399.649 267.382,401.153 267.662,402.688L272.269,403.48C272.362,404.281 272.408,405.084 272.408,405.887L355.812,405.887L353.815,404.402C354.61,402.938 355.572,401.542 356.688,400.233L361.151,401.476C362.309,400.265 363.623,399.164 365.069,398.194L363.585,394.455C365.147,393.519 366.813,392.713 368.561,392.048L371.684,394.994C373.41,394.43 375.205,394.027 377.036,393.792L377.983,389.932C379.893,389.777 381.817,389.777 383.728,389.932L384.674,393.792C386.394,394.013 388.081,394.381 389.709,394.892L389.709,374.184C389.709,368.352 384.974,363.617 379.142,363.617L359.434,363.617ZM335.729,245.303C351.492,245.303 364.29,258.101 364.29,273.865C364.29,289.628 351.492,302.426 335.729,302.426C319.965,302.426 307.167,289.628 307.167,273.865C307.167,258.101 319.965,245.303 335.729,245.303ZM197.492,243.934C213.256,243.934 226.054,256.732 226.054,272.495C226.054,288.258 213.256,301.056 197.492,301.056C181.729,301.056 168.931,288.258 168.931,272.495C168.931,256.732 181.729,243.934 197.492,243.934Z;
|
|
16
|
-
M358.75,173.61C363.307,160.425 368.661,146.421 373.252,133.889C363.943,124.341 359.753,110.266 363.452,96.459C369.035,75.625 390.481,63.243 411.315,68.826C432.149,74.408 444.531,95.854 438.948,116.688C434.062,134.926 417.018,146.687 398.871,145.59C396.145,159.711 391.757,173.606 387.095,185.912C425.614,206.228 449.973,236.119 449.973,269.422C449.973,290.637 439.897,311.407 420.941,329.263L420.93,329.263C439.307,346.525 449.973,367.068 449.973,389.105C449.973,408.557 441.501,427.667 425.407,444.513L107.813,444.513C91.72,427.667 83.247,408.557 83.247,389.105C83.247,367.068 93.913,346.525 112.29,329.263L112.28,329.263C93.324,311.407 83.247,290.637 83.247,269.422C83.247,235.85 108.002,205.745 147.065,185.42C142.076,180.828 137.373,176.909 133.457,174.338C128.282,170.942 122.039,168.563 115.601,166.752C102.791,177.519 83.624,176.877 71.573,164.826C58.844,152.097 58.844,131.428 71.573,118.699C84.303,105.97 104.972,105.97 117.701,118.699C122.563,123.561 125.568,129.583 126.715,135.875C136.874,138.943 147.714,143.695 157.129,149.875C163.742,154.215 172.645,162.45 181.399,171.29C206.859,163.19 235.856,158.604 266.61,158.604C300.189,158.604 331.671,164.071 358.75,173.61ZM359.434,363.617C359.145,364.96 358.702,366.277 358.11,367.549L361.626,370.166C360.832,371.63 359.869,373.026 358.753,374.335L354.291,373.091C353.132,374.303 351.818,375.404 350.372,376.374L351.856,380.113C350.294,381.048 348.628,381.855 346.88,382.52L343.758,379.574C342.031,380.138 340.237,380.541 338.405,380.776L337.459,384.635C335.548,384.791 333.624,384.791 331.713,384.635L330.767,380.776C328.936,380.541 327.141,380.138 325.415,379.574L322.292,382.52C320.544,381.855 318.878,381.048 317.316,380.113L318.8,376.374C317.354,375.404 316.04,374.303 314.882,373.091L310.419,374.335C309.303,373.026 308.341,371.63 307.546,370.166L311.063,367.549C310.471,366.277 310.027,364.96 309.738,363.617L192.065,363.617C191.776,364.96 191.333,366.277 190.741,367.549L194.257,370.166C193.463,371.63 192.501,373.026 191.385,374.335L186.922,373.091C185.763,374.303 184.449,375.404 183.004,376.374L184.488,380.113C182.926,381.048 181.259,381.855 179.512,382.52L176.389,379.574C174.663,380.138 172.868,380.541 171.036,380.776L170.09,384.635C168.18,384.791 166.255,384.791 164.345,384.635L163.398,380.776C161.567,380.541 159.772,380.138 158.046,379.574L154.923,382.52C153.176,381.855 151.509,381.048 149.947,380.113L151.431,376.374C149.985,375.404 148.671,374.303 147.513,373.091L143.512,374.206L143.512,395.32C143.512,401.152 148.247,405.887 154.079,405.887L213.001,405.887C213.001,405.084 213.047,404.281 213.14,403.48L217.747,402.688C218.027,401.153 218.508,399.649 219.181,398.203L215.665,395.587C216.459,394.123 217.421,392.726 218.537,391.418L223,392.661C224.159,391.45 225.473,390.349 226.918,389.378L225.435,385.639C226.996,384.704 228.663,383.898 230.41,383.232L233.533,386.178C235.259,385.615 237.054,385.212 238.886,384.977L239.832,381.117C241.743,380.962 243.667,380.962 245.577,381.117L246.524,384.977C248.355,385.212 250.15,385.615 251.876,386.178L254.999,383.232C256.746,383.898 258.413,384.704 259.975,385.639L258.491,389.378C259.937,390.349 261.251,391.45 262.409,392.661L266.872,391.418C267.988,392.726 268.95,394.123 269.745,395.587L266.228,398.203C266.901,399.649 267.382,401.153 267.662,402.688L272.269,403.48C272.362,404.281 272.408,405.084 272.408,405.887L355.812,405.887L353.815,404.402C354.61,402.938 355.572,401.542 356.688,400.233L361.151,401.476C362.309,400.265 363.623,399.164 365.069,398.194L363.585,394.455C365.147,393.519 366.813,392.713 368.561,392.048L371.684,394.994C373.41,394.43 375.205,394.027 377.036,393.792L377.983,389.932C379.893,389.777 381.817,389.777 383.728,389.932L384.674,393.792C386.394,394.013 388.081,394.381 389.709,394.892L389.709,374.184C389.709,368.352 384.974,363.617 379.142,363.617L359.434,363.617ZM336.618,268.495C347.414,268.495 357.179,267.673 357.179,273.742C357.179,280.812 348.525,278.99 337.729,278.99C326.932,278.99 316.167,280.934 316.167,273.865C316.167,267.795 325.822,268.495 336.618,268.495ZM198.618,266.495C214.382,266.495 219.179,266.979 219.179,271.742C219.179,278.506 214.382,276.99 198.618,276.99C182.855,276.99 178.057,278.506 178.057,271.742C178.057,266.979 182.855,266.495 198.618,266.495Z;
|
|
17
|
-
M358.75,173.61C363.307,160.425 368.661,146.421 373.252,133.889C363.943,124.341 359.753,110.266 363.452,96.459C369.035,75.625 390.481,63.243 411.315,68.826C432.149,74.408 444.531,95.854 438.948,116.688C434.062,134.926 417.018,146.687 398.871,145.59C396.145,159.711 391.757,173.606 387.095,185.912C425.614,206.228 449.973,236.119 449.973,269.422C449.973,290.637 439.897,311.407 420.941,329.263L420.93,329.263C439.307,346.525 449.973,367.068 449.973,389.105C449.973,408.557 441.501,427.667 425.407,444.513L107.813,444.513C91.72,427.667 83.247,408.557 83.247,389.105C83.247,367.068 93.913,346.525 112.29,329.263L112.28,329.263C93.324,311.407 83.247,290.637 83.247,269.422C83.247,235.85 108.002,205.745 147.065,185.42C142.076,180.828 137.373,176.909 133.457,174.338C128.282,170.942 122.039,168.563 115.601,166.752C102.791,177.519 83.624,176.877 71.573,164.826C58.844,152.097 58.844,131.428 71.573,118.699C84.303,105.97 104.972,105.97 117.701,118.699C122.563,123.561 125.568,129.583 126.715,135.875C136.874,138.943 147.714,143.695 157.129,149.875C163.742,154.215 172.645,162.45 181.399,171.29C206.859,163.19 235.856,158.604 266.61,158.604C300.189,158.604 331.671,164.071 358.75,173.61ZM359.434,363.617C359.145,364.96 358.702,366.277 358.11,367.549L361.626,370.166C360.832,371.63 359.869,373.026 358.753,374.335L354.291,373.091C353.132,374.303 351.818,375.404 350.372,376.374L351.856,380.113C350.294,381.048 348.628,381.855 346.88,382.52L343.758,379.574C342.031,380.138 340.237,380.541 338.405,380.776L337.459,384.635C335.548,384.791 333.624,384.791 331.713,384.635L330.767,380.776C328.936,380.541 327.141,380.138 325.415,379.574L322.292,382.52C320.544,381.855 318.878,381.048 317.316,380.113L318.8,376.374C317.354,375.404 316.04,374.303 314.882,373.091L310.419,374.335C309.303,373.026 308.341,371.63 307.546,370.166L311.063,367.549C310.471,366.277 310.027,364.96 309.738,363.617L192.065,363.617C191.776,364.96 191.333,366.277 190.741,367.549L194.257,370.166C193.463,371.63 192.501,373.026 191.385,374.335L186.922,373.091C185.763,374.303 184.449,375.404 183.004,376.374L184.488,380.113C182.926,381.048 181.259,381.855 179.512,382.52L176.389,379.574C174.663,380.138 172.868,380.541 171.036,380.776L170.09,384.635C168.18,384.791 166.255,384.791 164.345,384.635L163.398,380.776C161.567,380.541 159.772,380.138 158.046,379.574L154.923,382.52C153.176,381.855 151.509,381.048 149.947,380.113L151.431,376.374C149.985,375.404 148.671,374.303 147.513,373.091L143.512,374.206L143.512,395.32C143.512,401.152 148.247,405.887 154.079,405.887L213.001,405.887C213.001,405.084 213.047,404.281 213.14,403.48L217.747,402.688C218.027,401.153 218.508,399.649 219.181,398.203L215.665,395.587C216.459,394.123 217.421,392.726 218.537,391.418L223,392.661C224.159,391.45 225.473,390.349 226.918,389.378L225.435,385.639C226.996,384.704 228.663,383.898 230.41,383.232L233.533,386.178C235.259,385.615 237.054,385.212 238.886,384.977L239.832,381.117C241.743,380.962 243.667,380.962 245.577,381.117L246.524,384.977C248.355,385.212 250.15,385.615 251.876,386.178L254.999,383.232C256.746,383.898 258.413,384.704 259.975,385.639L258.491,389.378C259.937,390.349 261.251,391.45 262.409,392.661L266.872,391.418C267.988,392.726 268.95,394.123 269.745,395.587L266.228,398.203C266.901,399.649 267.382,401.153 267.662,402.688L272.269,403.48C272.362,404.281 272.408,405.084 272.408,405.887L355.812,405.887L353.815,404.402C354.61,402.938 355.572,401.542 356.688,400.233L361.151,401.476C362.309,400.265 363.623,399.164 365.069,398.194L363.585,394.455C365.147,393.519 366.813,392.713 368.561,392.048L371.684,394.994C373.41,394.43 375.205,394.027 377.036,393.792L377.983,389.932C379.893,389.777 381.817,389.777 383.728,389.932L384.674,393.792C386.394,394.013 388.081,394.381 389.709,394.892L389.709,374.184C389.709,368.352 384.974,363.617 379.142,363.617L359.434,363.617ZM335.729,245.303C351.492,245.303 364.29,258.101 364.29,273.865C364.29,289.628 351.492,302.426 335.729,302.426C319.965,302.426 307.167,289.628 307.167,273.865C307.167,258.101 319.965,245.303 335.729,245.303ZM197.492,243.934C213.256,243.934 226.054,256.732 226.054,272.495C226.054,288.258 213.256,301.056 197.492,301.056C181.729,301.056 168.931,288.258 168.931,272.495C168.931,256.732 181.729,243.934 197.492,243.934Z"
|
|
18
|
-
keyTimes="0 ; 0.985 ; 0.99 ; 1"
|
|
19
|
-
/>
|
|
20
|
-
</path>
|
|
21
|
-
</g>
|
|
22
|
-
</g>
|
|
23
|
-
</g>
|
|
24
|
-
</svg>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sound-bot",
|
|
3
|
-
"displayName": "sound-bot",
|
|
4
|
-
"icon": "https://raw.githubusercontent.com/emilkrebs/Sound-bot/main/logo.svg",
|
|
5
|
-
"version": "1.0.0",
|
|
6
|
-
"description": "A Discord-Bot that plays a sound or music in a discord voice-channel indefinitely. ",
|
|
7
|
-
"main": "src/index.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"start": "tsc && node ./dist/src/index.js",
|
|
10
|
-
"watch": "tsc -w",
|
|
11
|
-
"build": "tsc"
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "https://github.com/emilkrebs/Sound-bot"
|
|
16
|
-
},
|
|
17
|
-
"author": "Emil Krebs",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"bugs": {
|
|
20
|
-
"url": "https://github.com/emilkrebs/Sound-bot/issues"
|
|
21
|
-
},
|
|
22
|
-
"homepage": "https://github.com/emilkrebs/Sound-bot",
|
|
23
|
-
"logo": {
|
|
24
|
-
"url": "https://raw.githubusercontent.com/emilkrebs/Sound-bot/main/logo.svg"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@discordjs/builders": "^0.12.0",
|
|
28
|
-
"@discordjs/rest": "^0.3.0",
|
|
29
|
-
"@discordjs/voice": "^0.8.0",
|
|
30
|
-
"axios": "^0.26.0",
|
|
31
|
-
"colors": "^1.4.0",
|
|
32
|
-
"discord-api-types": "^0.27.2",
|
|
33
|
-
"discord.js": "^13.6.0",
|
|
34
|
-
"dotenv": "^16.0.0",
|
|
35
|
-
"ffmpeg-static": "^4.4.1",
|
|
36
|
-
"libsodium-wrappers": "^0.7.9",
|
|
37
|
-
"typescript": "^4.7.3"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Client, Intents } from 'discord.js';
|
|
2
|
-
import colors from 'colors';
|
|
3
|
-
import { token, songUrl, playCommand } from '../config.json';
|
|
4
|
-
|
|
5
|
-
import { createAudioPlayer, joinVoiceChannel, createAudioResource, StreamType, AudioPlayer, AudioPlayerStatus } from '@discordjs/voice';
|
|
6
|
-
|
|
7
|
-
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_VOICE_STATES, Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
|
|
8
|
-
|
|
9
|
-
client.on('messageCreate', async message => {
|
|
10
|
-
if (!message.guildId) return;
|
|
11
|
-
const { content } = message;
|
|
12
|
-
if (content === playCommand) {
|
|
13
|
-
const channel = message.member!.voice.channel;
|
|
14
|
-
if (channel != null) {
|
|
15
|
-
let player = createAudioPlayer();
|
|
16
|
-
const connection = joinVoiceChannel({
|
|
17
|
-
channelId: channel!.id,
|
|
18
|
-
guildId: channel!.guild.id,
|
|
19
|
-
adapterCreator: message.guild!.voiceAdapterCreator,
|
|
20
|
-
});
|
|
21
|
-
connection.subscribe(player);
|
|
22
|
-
playSound(player);
|
|
23
|
-
player.on(AudioPlayerStatus.Idle, () =>{
|
|
24
|
-
playSound(player);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
await message.reply({ content: "You are not in a voice channel." });
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
function playSound(player: AudioPlayer){
|
|
35
|
-
let resource = createAudioResource(songUrl, {
|
|
36
|
-
inputType: StreamType.Arbitrary
|
|
37
|
-
});
|
|
38
|
-
player.play(resource);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
client.once('ready', () => {
|
|
42
|
-
console.log(getTime() + colors.green('Bot is Ready.'));
|
|
43
|
-
console.log(getTime() + colors.green(`Bot is logged in as ${colors.yellow(client.user!.tag)}.`));
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
function getTime() {
|
|
47
|
-
let dateTime = new Date()
|
|
48
|
-
return colors.gray(`[${dateTime.getHours()}:${dateTime.getMinutes()}:${dateTime.getSeconds()}] `);
|
|
49
|
-
}
|
|
50
|
-
// Login to Discord with your client's token
|
|
51
|
-
client.login(token);
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES6",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"lib": ["ESNext"],
|
|
6
|
-
"sourceMap": true,
|
|
7
|
-
"outDir": "dist",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"noUnusedLocals": true,
|
|
10
|
-
"noImplicitReturns": true,
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"skipLibCheck": true,
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"forceConsistentCasingInFileNames": true,
|
|
16
|
-
},
|
|
17
|
-
"include": [
|
|
18
|
-
"src/**/*.ts",
|
|
19
|
-
],
|
|
20
|
-
"exclude": [
|
|
21
|
-
"dist",
|
|
22
|
-
"node_modules"
|
|
23
|
-
]
|
|
24
|
-
}
|