mirror of
https://github.com/JonasunderscoreJones/ZtereoMUSIC.git
synced 2025-10-25 13:39:19 +02:00
change: cleanup and readme updated
This commit is contained in:
parent
6a46016fb1
commit
6e40742d56
2 changed files with 8 additions and 4 deletions
|
|
@ -10,6 +10,8 @@
|
||||||
token: "ODg4MTE5NTk4MDkwNjgyMzc4.YUOD1A.wgB8Na03TEzP0qPeXX3uv5N5eaY",
|
token: "ODg4MTE5NTk4MDkwNjgyMzc4.YUOD1A.wgB8Na03TEzP0qPeXX3uv5N5eaY",
|
||||||
prefix: "!",
|
prefix: "!",
|
||||||
yt_api_key: "djasfhjasdhHOUIHIDhdi_oHIUShPIUAHSF",
|
yt_api_key: "djasfhjasdhHOUIHIDhdi_oHIUShPIUAHSF",
|
||||||
|
spotify_client_id: "2342kj34bhj23gjkh2p2o34j4k",
|
||||||
|
spotify_client_secret: "23k4j234hchgf234fh42k3j2k2k2344",
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
4. Execute with your jvm of choice, requires java 16 for now.
|
4. Execute with your jvm of choice, requires java 16 for now.
|
||||||
|
|
@ -23,14 +25,14 @@
|
||||||
- [x] Queue command to view queue (half assed lol)
|
- [x] Queue command to view queue (half assed lol)
|
||||||
- [x] Remove [index] to remove an element
|
- [x] Remove [index] to remove an element
|
||||||
- [x] Clear to clear queue
|
- [x] Clear to clear queue
|
||||||
- [ ] Clean up todos and code!
|
- [x] Clean up todos and code!
|
||||||
|
|
||||||
### Second alpha:
|
### Second alpha:
|
||||||
- [ ] Fancy embeds for everything!
|
- [ ] Fancy embeds for everything!
|
||||||
- [x] VoiceChecks class to check for tunable micro-permissions (eg. if someone in a different channel calls the bot, don't connect)
|
- [x] VoiceChecks class to check for tunable micro-permissions (eg. if someone in a different channel calls the bot, don't connect)
|
||||||
- [x] Various listeners if there's nobody in vc for a while or if it gets disconnected or if last disconnects (stop playin) (very important as cleanup doesnt always get called)
|
- [x] Various listeners if there's nobody in vc for a while or if it gets disconnected or if last disconnects (stop playin) (very important as cleanup doesnt always get called)
|
||||||
- [ ] Help command (on ping too)
|
- [ ] Help command (on ping too)
|
||||||
- [ ] Spotify URLs/playlists support (search on YouTube)
|
- [x] Spotify URLs/playlists support (search on YouTube)
|
||||||
- [ ] When a track fails try to play it again and if that fails send the error message.
|
- [ ] When a track fails try to play it again and if that fails send the error message.
|
||||||
|
|
||||||
### Later:
|
### Later:
|
||||||
|
|
@ -40,6 +42,9 @@
|
||||||
- [ ] Ability to search the song name
|
- [ ] Ability to search the song name
|
||||||
- [ ] Slash commands?
|
- [ ] Slash commands?
|
||||||
- [ ] Proper database for server preferences (prefix etc)
|
- [ ] Proper database for server preferences (prefix etc)
|
||||||
|
- what if i made a command system
|
||||||
|
kinda like method overloading
|
||||||
|
that will execute different methods of the command depending on what and how many args are passed
|
||||||
- Other TBA...
|
- Other TBA...
|
||||||
|
|
||||||
## Thankies
|
## Thankies
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,6 @@ public class AloneDisconnectListener extends ListenerAdapter {
|
||||||
|
|
||||||
if (guild.getAudioManager().getConnectedChannel() == null) return; // if we're not connected ignore
|
if (guild.getAudioManager().getConnectedChannel() == null) return; // if we're not connected ignore
|
||||||
|
|
||||||
|
|
||||||
// if there's no longer only one member don't be alone (i wrote this at 4am please tell me it works)
|
// if there's no longer only one member don't be alone (i wrote this at 4am please tell me it works)
|
||||||
if (guild.getAudioManager().getConnectedChannel().getMembers().size() > 1) {
|
if (guild.getAudioManager().getConnectedChannel().getMembers().size() > 1) {
|
||||||
aloneGuilds.remove(guild);
|
aloneGuilds.remove(guild);
|
||||||
|
|
@ -66,7 +65,7 @@ public class AloneDisconnectListener extends ListenerAdapter {
|
||||||
if ((time - entry.getValue()) > (long) 5 * 60 * 1000) {
|
if ((time - entry.getValue()) > (long) 5 * 60 * 1000) {
|
||||||
TrackManagers.removeGuildTrackManager(entry.getKey());
|
TrackManagers.removeGuildTrackManager(entry.getKey());
|
||||||
aloneGuilds.remove(entry.getKey());
|
aloneGuilds.remove(entry.getKey());
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue