misc fixes + readme update

This commit is contained in:
ZtereoHYPE 2021-11-03 18:12:34 +01:00
parent 6d7addc22d
commit 6bd6645918
3 changed files with 12 additions and 3 deletions

View file

@ -2,7 +2,16 @@
### Is a discord music bot written in java using JDA. The name is prone to be changed in the future.
## 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:
- Play command

View file

@ -16,7 +16,7 @@ import java.util.List;
public class TrackScheduer extends AudioEventAdapter {
private final AudioPlayer player;
private final List<AudioTrack> trackQueue = new ArrayList<AudioTrack>();
private final List<AudioTrack> trackQueue = new ArrayList<>();
private AudioTrack currentTrack;
private final MessageChannel infoChannel;

View file

@ -45,8 +45,8 @@ public class CommandListener extends ListenerAdapter {
try {
command.execute(event, args);
} 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();
throw e;
}
}
}