summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-24 21:37:39 -0700
committer8cy <[email protected]>2020-04-24 21:37:39 -0700
commit414e0816332fd5575efb3a7bc0917306c4396fbe (patch)
treec6a63a435d2cbe0cf13d60558e23885ecfc7f062 /src
parentbig changes, too lazy to count, v7.6.0 (diff)
downloaddep-core-414e0816332fd5575efb3a7bc0917306c4396fbe.tar.xz
dep-core-414e0816332fd5575efb3a7bc0917306c4396fbe.zip
move music manager to import, v7.7.0
Diffstat (limited to 'src')
-rw-r--r--src/bot.ts16
-rw-r--r--src/config.json2
-rw-r--r--src/models/MusicGuild.ts15
3 files changed, 17 insertions, 16 deletions
diff --git a/src/bot.ts b/src/bot.ts
index 8036f07..1a05f46 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -2,22 +2,8 @@ import config from './config.json';
import { CommandoClient } from 'discord.js-commando';
//import WS from './ws/ws';
import path from 'path';
-import { Structures } from 'discord.js';
import emoji from 'emoji-random';
-Structures.extend('Guild', Guild => {
- class MusicGuild extends Guild {
- constructor(client, data) {
- super(client, data);
- this.musicData = {
- queue: [],
- isPlaying: false,
- volume: 1,
- songDispatcher: null
- };
- }
- }
- return MusicGuild;
-});
+require('./models/MusicGuild.js')
const client = new CommandoClient({
commandPrefix: 'uwu!',
diff --git a/src/config.json b/src/config.json
index cc997d9..d21d878 100644
--- a/src/config.json
+++ b/src/config.json
@@ -1,5 +1,5 @@
{
"secret":"Njk5NDczMjYzOTk4MjcxNDg5.XpU5oQ.btZuxVudhNllSQY6CxrXXtMJm9A",
"yt-api-key":"AIzaSyCeG1lQAeInv4vjFv_eTL9IFAFNdQC9Nk8",
- "version":"7.6.0"
+ "version":"7.7.0"
} \ No newline at end of file
diff --git a/src/models/MusicGuild.ts b/src/models/MusicGuild.ts
new file mode 100644
index 0000000..f425fe2
--- /dev/null
+++ b/src/models/MusicGuild.ts
@@ -0,0 +1,15 @@
+import { Structures } from 'discord.js';
+export = Structures.extend('Guild', Guild => {
+ class MusicGuild extends Guild {
+ constructor(client, data) {
+ super(client, data);
+ this.musicData = {
+ queue: [],
+ isPlaying: false,
+ volume: 1,
+ songDispatcher: null
+ };
+ }
+ }
+ return MusicGuild;
+}); \ No newline at end of file