${user['name']}
Autoplay
-Similar track will be to the queue
--
-
-
-```json
-"activity":[
- {"listen": "/help"}
-]
-```
-
-2. Example 2
-
-
-```json
-"activity":[
- {"watch": "@@players@@ players"}
-]
-```
-
-3. Example 3 (Multiple activities)
-
-```json
-"activity":[
- {"listen": "/help"},
- {"watch": "@@players@@ players"}
-]
-```
-
-# Controller Embeds
-> Usage: @@value@@
-
-Valuables
-
-| Value Name | Description |
-| --- | --- |
-| channel_name | The name of the channel the bot is playing on. |
-| track_name | The name of the track currently playing. |
-| track_url | The url of the track currently playing. |
-| track_author | The name of the author of the track currently playing. |
-| track_duration | The length of the track currently playing. |
-| track_thumbnail | The thumbnail of the track currently playing. |
-| track_color | The color associated with the source of the currently playing track. For example, YouTube tracks are indicated in red. This color can be customized in the settings.json file |
-| requester | The mention name of the requester of the currently playing track. |
-| requester_name | The name of the requester of the currently playing track. |
-| requester_avatar | The avatar url of the requester of the currently playing track. |
-| queue_length | Number of queue lengths |
-| volume | Music volume. |
-| dj | DJ role. `(It can be a user or role)` |
-| loop_mode | Current repeat mode. |
-| default_embed_color | Default embed color. `(color_code in settings.json)` |
-| bot_icon | The avatar of the bot. |
-| server_invite_link | The invite url of the support server |
-| invite_link | The invite url of the bot. |
-
-Expression
-> {{ EXPRESSION ?? TRUE // FALSE }}
-
-## Examples
-Change the value of `default_controller` in `settings.json`.
-
-1. Example 1
-
-
-
-```json
-"default_controller": {
- "embeds": {
- "active": {
- "description": "**Now Playing: ```[@@track_name@@]```\nLink: [Click Me](@@track_url@@) | Requester: @@requester@@ | DJ: @@dj@@**",
- "footer": {
- "text": "Queue Length: @@queue_length@@ | Duration: @@track_duration@@ | Volume: @@volume@@% {{loop_mode != 'Off' ?? | Repeat: @@loop_mode@@}}"
- },
- "image": "@@track_thumbnail@@",
- "author": {
- "name": "Music Controller | @@channel_name@@",
- "icon_url": "@@bot_icon@@"
- },
- "color": "@@track_color@@"
- },
- "inactive": {
- "title": {
- "name": "There are no songs playing right now"
- },
- "description": "[Support](@@server_invite_link@@) | [Invite](@@invite_link@@) | [Questionnaire](https://forms.gle/Qm8vjBfg2kp13YGD7)",
- "image": "https://i.imgur.com/dIFBwU7.png",
- "color": "@@default_embed_color@@"
- }
- }
-},
-```
-
-# Controller Buttons
-> Usage: "button" or {"button": "color"}
-
-Buttons
-
-| Button Name | Description |
-| --- | --- |
-| Back | Skips back to the previous song. |
-| Resume | Resume or pause the music. |
-| Skip | Skips to the next song. |
-| Stop | Disconnects the bot from your voice channel and chears the queue. |
-| Loop | Changes Loop mode. `[Off, Track, Queue]` |
-| Add | Add the playing track in to your default custom playlist. |
-| VolumeUp | Increase player volume by 20%. |
-| VolumeDown | Decrease player volume by 20%. |
-| VolumeMute | Mute or unmute the player. |
-| Autoplay | Enable or disable autoplay mode. |
-| Shuffle | Randomizes the tracks in the queue. |
-| Forward | Forward 30 seconds in the current track. |
-| Rewind | Rewind 30 seconds in the current track. |
-| Tracks | If there are tracks in the queue, a drop-down list will be appear. Up to 10 tracks. `(This will take one row)`|
-
-Colors
-
-| Color Name | Description |
-| --- | --- |
-| Grey | Color the button grey. |
-| Red | Color the button red. |
-| Blue | Color the button blue. |
-| Green | Color the button green. |
-
-## Examples
-Change the value of `default_buttons` in `default_controller`.
-
-1. Example 1
-
-
-```json
-"default_buttons": [
- ["back", "resume", "skip", {"stop": "red"}, "add"],
- ["tracks"]
-]
-```
-
-2. Example 2
-
-
-```json
-"default_buttons": [
- ["back", "resume", "skip", {"stop": "red"}, {"add": "green"}],
- [{"loop": "green"}, {"volumeup": "blue"}, {"volumedown": "blue"}, {"volumemute": "red"}],
- ["tracks"]
-]
-```
-
-3. Example 3
-
-
-```json
-"default_buttons": [
- ["autoplay", "shuffle", {"loop": "green"}, "add"],
- ["back", "resume", "skip", {"stop": "red"}],
- ["volumeup", "volumedown", {"mute": "red"}]
-]
-```
diff --git a/README.md b/README.md
index 4d76fcc..35e9741 100644
--- a/README.md
+++ b/README.md
@@ -2,62 +2,35 @@
-
-
-
-
-### Dashboard
-${track.title}
${track.author}
${player.msToReadableTime(track.length)}
${track.title}
${track.author}
${player.msToReadableTime(track.length)}
${track.title}
${track.author}
${this.msToReadableTime(track.length)}
${user.name}
${track.title}
${track.author}
${this.msToReadableTime(track.length)}
${user['name']}
${pList["name"]}
`); - infoDiv.append(`${pList["type"]} • ${pList["tracks"].length} Tracks
`); - pDiv.append(infoDiv); - $("#playlists-grid").append(pDiv); - $("#playlists-tracks").empty() - } - } -} \ No newline at end of file diff --git a/web/static/js/socket.js b/web/static/js/socket.js deleted file mode 100644 index 2ed2aa5..0000000 --- a/web/static/js/socket.js +++ /dev/null @@ -1,47 +0,0 @@ -class Socket { - constructor(url) { - this.url = url; - this.socket = null; - } - - connect(player) { - this.socket = io.connect(this.url); - - this.socket.on('connect', () => { - console.log("Connected to server!"); - }); - - this.socket.on('disconnect', () => { - player.init(); - console.log("Disconnected from server!"); - }); - - this.socket.on('error', (e) => { - console.log(e); - }) - } - - disconnect() { - if (this.socket) { - this.socket.disconnect(); - } - } - - send(msg) { - if (this.socket) { - this.socket.emit('message', msg); - } - } - - addMessageListener(callback) { - if (this.socket) { - this.socket.on('message', callback); - } - } - - removeMessageListener(callback) { - if (this.socket) { - this.socket.off('message', callback); - } - } -} \ No newline at end of file diff --git a/web/templates/index.html b/web/templates/index.html deleted file mode 100644 index b1ec475..0000000 --- a/web/templates/index.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - -Autoplay
-Similar track will be to the queue
-00:00
/00:00
-