generator-discord 1.0.4 → 1.0.8

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
@@ -10,7 +10,9 @@
10
10
  <div id="badges" align="center">
11
11
 
12
12
  [![Build](https://github.com/emilkrebs/generator-discord/actions/workflows/build.yml/badge.svg)](https://github.com/emilkrebs/generator-discord/actions/workflows/build.yml)
13
- [![npm](https://img.shields.io/npm/v/generator-discord)](https://www.npmjs.com/package/generator-discord)
13
+ [![downloads](https://img.shields.io/npm/dw/generator-discord?color=orange)](https://www.npmjs.com/package/generator-discord)
14
+ [![version](https://img.shields.io/npm/v/generator-discord)](https://www.npmjs.com/package/generator-discord)
15
+
14
16
 
15
17
  </div>
16
18
 
@@ -35,8 +37,11 @@ npm install -g generator-discord
35
37
  yo discord
36
38
  ```
37
39
 
38
- ![Example](https://user-images.githubusercontent.com/68400102/174312258-3cadaff2-7a89-49f7-8d1c-800fc3e2a020.png)
39
40
 
40
- ## Known Issue
41
+ [![Example](https://user-images.githubusercontent.com/68400102/175165919-473536d8-c7c0-4881-a438-d11dc8001ee1.png)](https://github.com/emilkrebs/Sound-Bot)
42
+
43
+ ## Known Issues
44
+
45
+ None
41
46
 
42
47
  [Add Issue](https://github.com/emilkrebs/Generator-Discord/issues/new)
package/app/index.js CHANGED
@@ -39,16 +39,20 @@ class DiscordGenerator extends yeoman_generator_1.default {
39
39
  },
40
40
  {
41
41
  type: 'list',
42
- name: 'programmingLanguage',
43
- message: 'The programming language you want to use.',
42
+ name: 'botType',
43
+ message: 'The type of Discord Bot you want to create.',
44
44
  choices: [
45
45
  {
46
- name: 'TypeScript',
46
+ name: 'New Discord Bot (TypeScript)',
47
47
  value: 'typescript'
48
48
  },
49
49
  {
50
- name: 'JavaScript',
50
+ name: 'New Discord Bot (JavaScript)',
51
51
  value: 'javascript'
52
+ },
53
+ {
54
+ name: 'New Sound-Bot (TypeScript)',
55
+ value: 'sound-bot'
52
56
  }
53
57
  ]
54
58
  },
@@ -73,7 +77,7 @@ class DiscordGenerator extends yeoman_generator_1.default {
73
77
  this.log("\x1b[0m");
74
78
  }
75
79
  writing() {
76
- this.sourceRoot(path_1.default.join(__dirname, TEMPLATE_DIR + this.answers.programmingLanguage));
80
+ this.sourceRoot(path_1.default.join(__dirname, TEMPLATE_DIR + this.answers.botType));
77
81
  ['.'].forEach((path) => {
78
82
  const replaceWords = (answers, content) => [
79
83
  [BOT_NAME, this.answers.botName],
@@ -86,6 +90,8 @@ class DiscordGenerator extends yeoman_generator_1.default {
86
90
  }
87
91
  install() {
88
92
  return __awaiter(this, void 0, void 0, function* () {
93
+ this.log('');
94
+ this.log('Your Discord Bot ' + this.answers.botName + ' has been created!');
89
95
  const answer = yield this.prompt({
90
96
  type: 'list',
91
97
  name: 'openWithCode',
@@ -101,8 +107,7 @@ class DiscordGenerator extends yeoman_generator_1.default {
101
107
  }
102
108
  ]
103
109
  });
104
- this.log('Your Discord Bot ' + this.answers.botName + ' has been created!');
105
- this.log(this.destinationRoot());
110
+ this.log('');
106
111
  if (answer && answer.openWithCode) {
107
112
  this.spawnCommand('code', [this.destinationPath(USER_DIR, this.answers.botName)]);
108
113
  }
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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H,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;AA5HD,mCA4HC"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "generator-discord",
3
3
  "displayName": "Generator-Discord",
4
- "version": "1.0.4",
5
- "main": "./app/src/index.js",
4
+ "version": "1.0.8",
5
+ "main": "./app/index.js",
6
6
  "description": "Yeoman generator for Discord.js",
7
7
  "keywords": [
8
8
  "yeoman-generator",
package/src/index.ts CHANGED
@@ -13,7 +13,7 @@ const BOT_TOKEN = 'bot-token';
13
13
 
14
14
  interface Answers {
15
15
  botName: string;
16
- programmingLanguage: string;
16
+ botType: string;
17
17
  botToken: string;
18
18
  openWithCode: boolean;
19
19
  }
@@ -42,16 +42,20 @@ export default class DiscordGenerator extends Generator {
42
42
  },
43
43
  {
44
44
  type: 'list',
45
- name: 'programmingLanguage',
46
- message: 'The programming language you want to use.',
45
+ name: 'botType',
46
+ message: 'The type of Discord Bot you want to create.',
47
47
  choices: [
48
48
  {
49
- name: 'TypeScript',
49
+ name: 'New Discord Bot (TypeScript)',
50
50
  value: 'typescript'
51
51
  },
52
52
  {
53
- name: 'JavaScript',
53
+ name: 'New Discord Bot (JavaScript)',
54
54
  value: 'javascript'
55
+ },
56
+ {
57
+ name: 'New Sound-Bot (TypeScript)',
58
+ value: 'sound-bot'
55
59
  }
56
60
  ]
57
61
  },
@@ -77,7 +81,7 @@ export default class DiscordGenerator extends Generator {
77
81
  }
78
82
 
79
83
  writing(): void {
80
- this.sourceRoot(path.join(__dirname, TEMPLATE_DIR + this.answers.programmingLanguage));
84
+ this.sourceRoot(path.join(__dirname, TEMPLATE_DIR + this.answers.botType));
81
85
  ['.'].forEach(
82
86
  (path: string) => {
83
87
  const replaceWords = (
@@ -114,6 +118,8 @@ export default class DiscordGenerator extends Generator {
114
118
  );
115
119
  }
116
120
  async install(): Promise<void> {
121
+ this.log('');
122
+ this.log('Your Discord Bot ' + this.answers.botName + ' has been created!');
117
123
  const answer = await this.prompt({
118
124
  type: 'list',
119
125
  name: 'openWithCode',
@@ -129,9 +135,7 @@ export default class DiscordGenerator extends Generator {
129
135
  }
130
136
  ]
131
137
  });
132
- this.log('Your Discord Bot ' + this.answers.botName + ' has been created!');
133
-
134
- this.log(this.destinationRoot());
138
+ this.log('');
135
139
  if (answer && answer.openWithCode) {
136
140
  this.spawnCommand('code', [this.destinationPath(
137
141
  USER_DIR,
@@ -139,4 +143,4 @@ export default class DiscordGenerator extends Generator {
139
143
  )]);
140
144
  }
141
145
  }
142
- }
146
+ }
@@ -0,0 +1,21 @@
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.
@@ -0,0 +1,56 @@
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
+ [![Build](https://github.com/emilkrebs/sound-bot/actions/workflows/build.yml/badge.svg)](https://github.com/emilkrebs/sound-bot/actions/workflows/build.yml)
13
+ [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](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
+ ![Screenshot](https://user-images.githubusercontent.com/68400102/154546484-ba495a30-9f20-4873-baf2-4541c9ab4987.png)
@@ -0,0 +1,5 @@
1
+ {
2
+ "token":"<%= bot-token %>",
3
+ "songUrl":"your-song-url",
4
+ "playCommand":"your-play-command"
5
+ }
@@ -0,0 +1,24 @@
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>
@@ -0,0 +1,39 @@
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
+ }
@@ -0,0 +1,51 @@
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);
@@ -0,0 +1,24 @@
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
+ }