mirror of
https://github.com/JonasunderscoreJones/ZtereoMUSIC.git
synced 2025-10-25 13:39:19 +02:00
misc fixes + readme update
This commit is contained in:
parent
6d7addc22d
commit
6bd6645918
3 changed files with 12 additions and 3 deletions
11
README.md
11
README.md
|
|
@ -2,7 +2,16 @@
|
||||||
### Is a discord music bot written in java using JDA. The name is prone to be changed in the future.
|
### Is a discord music bot written in java using JDA. The name is prone to be changed in the future.
|
||||||
|
|
||||||
## How to use:
|
## How to use:
|
||||||
To be determined
|
1. Run `./gradlew build` or your system's equivalent in this repo
|
||||||
|
2. Move `ZtereoMUSIC-0.0.1-all.jar` in a directory of your choice
|
||||||
|
3. Create a `config.json5` file with the following structure:
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
token: "ODg4MTE5NTk4MDkwNjgyMzc4.YUOD1A.wgB8Na03TEzP0qPeXX3uv5N5eaY",
|
||||||
|
prefix: "!"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
4. Execute with your jvm of choice, requires java 16 for now.
|
||||||
|
|
||||||
## To Dos:
|
## To Dos:
|
||||||
- Play command
|
- Play command
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import java.util.List;
|
||||||
public class TrackScheduer extends AudioEventAdapter {
|
public class TrackScheduer extends AudioEventAdapter {
|
||||||
|
|
||||||
private final AudioPlayer player;
|
private final AudioPlayer player;
|
||||||
private final List<AudioTrack> trackQueue = new ArrayList<AudioTrack>();
|
private final List<AudioTrack> trackQueue = new ArrayList<>();
|
||||||
private AudioTrack currentTrack;
|
private AudioTrack currentTrack;
|
||||||
private final MessageChannel infoChannel;
|
private final MessageChannel infoChannel;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,8 @@ public class CommandListener extends ListenerAdapter {
|
||||||
try {
|
try {
|
||||||
command.execute(event, args);
|
command.execute(event, args);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println(e);
|
|
||||||
message.getChannel().sendMessage("uh oh something really bad happened and yeah so yeah everything is aborted and cancelled i give up this is too hard kthxbye").queue();
|
message.getChannel().sendMessage("uh oh something really bad happened and yeah so yeah everything is aborted and cancelled i give up this is too hard kthxbye").queue();
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue