Skip to content

Commit

Permalink
feat: nodejs less application
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi authored Jun 24, 2022
1 parent c804601 commit 1d42651
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .replit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
language = "bash"
run = "npm start"
run = "bash start.sh"
7 changes: 7 additions & 0 deletions application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ lavalink:
#strategy: "RotateOnBan" # RotateOnBan | LoadBalance | NanoSwitch | RotatingNanoSwitch
#searchTriggersFail: true # Whether a search 429 should trigger marking the ip as failing
#retryLimit: -1 # -1 = use default lavaplayer value | 0 = infinity | >0 = retry will happen this numbers times
plugins:
- dependency: "com.github.Topis-Lavalink-Plugins:Topis-Source-Managers-Plugin:v2.0.6"
repository: "https://jitpack.io"
- dependency: "com.dunctebot:skybot-lavalink-plugin:1.3.3"
repository: "https://m2.duncte123.dev/releases"
- dependency: "me.rohank05:lavalink-filter-plugin:0.0.1" # replace x.x.x with the latest release tag!
repository: "https://jitpack.io"

metrics:
prometheus:
Expand Down
15 changes: 0 additions & 15 deletions index.js

This file was deleted.

14 changes: 0 additions & 14 deletions package.json

This file was deleted.

12 changes: 8 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash -s -- --skip-rc && . ~/.jabba/jabba.sh
## use java 13 :3
jabba install [email protected]
npm i
node index
jabba install [email protected]

if [ ! -f "Lavalink.jar" ]; then
wget -O Lavalink.jar https://ci.fredboat.com/repository/download/Lavalink_Build/.lastSuccessful/Lavalink.jar?guest=1&branch=refs/heads/dev
java -jar Lavalink.jar
else
java -jar Lavalink.jar
fi

0 comments on commit 1d42651

Please sign in to comment.