Skip to content

Commit c499053

Browse files
committed
Initial commit
0 parents  commit c499053

File tree

20 files changed

+687
-0
lines changed

20 files changed

+687
-0
lines changed

.breakpoints

Whitespace-only changes.

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/.idea/
2+
*.iml
3+
/logs/
4+
/target/
5+
/application.yml
6+
*/dependency-reduced-pom.xml
7+
.gradle/*
8+
build/*
9+
*.jar
10+
!gradle/wrapper/gradle-wrapper.jar
11+
.project
12+
.classpath
13+
.settings
14+
/Testbot/build/
15+
/Testbot/out/

CODE_OF_CONDUCT.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Code of Conduct
2+
3+
## 1. Purpose
4+
5+
A primary goal of Lavacord List is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
6+
7+
This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior.
8+
9+
We invite all those who participate in Lavacord List to help us create safe and positive experiences for everyone.
10+
11+
## 2. Open [Source/Culture/Tech] Citizenship
12+
13+
A supplemental goal of this Code of Conduct is to increase open [source/culture/tech] citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community.
14+
15+
Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society.
16+
17+
If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know.
18+
19+
## 3. Expected Behavior
20+
21+
The following behaviors are expected and requested of all community members:
22+
23+
* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
24+
* Exercise consideration and respect in your speech and actions.
25+
* Attempt collaboration before conflict.
26+
* Refrain from demeaning, discriminatory, or harassing behavior and speech.
27+
* Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
28+
* Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
29+
30+
## 4. Unacceptable Behavior
31+
32+
The following behaviors are considered harassment and are unacceptable within our community:
33+
34+
* Violence, threats of violence or violent language directed against another person.
35+
* Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
36+
* Posting or displaying sexually explicit or violent material.
37+
* Posting or threatening to post other people's personally identifying information ("doxing").
38+
* Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
39+
* Inappropriate photography or recording.
40+
* Inappropriate physical contact. You should have someone's consent before touching them.
41+
* Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
42+
* Deliberate intimidation, stalking or following (online or in person).
43+
* Advocating for, or encouraging, any of the above behavior.
44+
* Sustained disruption of community events, including talks and presentations.
45+
46+
## 5. Weapons Policy
47+
48+
No weapons will be allowed at Lavalink/Lavacord List events, community spaces, or in other spaces covered by the scope of this Code of Conduct. Weapons include but are not limited to guns, explosives (including fireworks), and large knives such as those used for hunting or display, as well as any other item used for the purpose of causing injury or harm to others. Anyone seen in possession of one of these items will be asked to leave immediately, and will only be allowed to return without the weapon. Community members are further expected to comply with all state and local laws on this matter.
49+
50+
## 6. Consequences of Unacceptable Behavior
51+
52+
Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated.
53+
54+
Anyone asked to stop unacceptable behavior is expected to comply immediately.
55+
56+
If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event).
57+
58+
## 7. Reporting Guidelines
59+
60+
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. github@darrennathanael.com.
61+
62+
63+
Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress.
64+
65+
## 8. Addressing Grievances
66+
67+
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify Darren Nathanael with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies.
68+
69+
70+
71+
## 9. Scope
72+
73+
We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues--online and in-person--as well as in all one-on-one communications pertaining to community business.
74+
75+
This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members.
76+
77+
## 10. Contact info
78+
79+
golden@alphaesport.com
80+
81+
## Licence
82+
In under MIT Licence
83+
84+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SSL Lavalink List
2+
* This lavalink list source are from [lavalink hosting](https://lavalink.darrennathanael.com/SSL/lavalink-with-ssl/)
3+
4+
```shell
5+
Hosted by @ OGGY#9889
6+
7+
Host : lavalink.oops.wtf
8+
Port : 443
9+
Password : "www.freelavalink.ga"
10+
Secure : true
11+
12+
Hosted by @ ErrorDoc404
13+
14+
Host : node1.kartadharta.xyz
15+
Port : 443
16+
Password : "kdlavalink"
17+
secure: true
18+
19+
Hosted by @ GGLVXD
20+
21+
Host : node1.gglvxd.tk
22+
Port : 443
23+
Password : "free"
24+
secure: true
25+
26+
Hosted by @ GGLVXD
27+
28+
Host : node2.gglvxd.tk
29+
Port : 443
30+
Password : "free"
31+
Secure : true
32+
```

README.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# LavaCord
2+
An Lavalink documentation version made for replit and glitch users to make discord music bots.
3+
4+
Being used in production by Alpha Esports bots, Aleztro, Lava Music bot.
5+
6+
A [basic example bot](Testbot) is available.
7+
8+
[![JDA guild](https://discordapp.com/api/guilds/125227483518861312/embed.png?style=banner2)](https://discord.gg/jtAWrzU)
9+
10+
## Features
11+
* Powered by Lavaplayer
12+
* Minimal CPU/memory footprint
13+
* Twitch/YouTube stream support
14+
* Event system
15+
* Seeking
16+
* Volume control
17+
* REST API for resolving lavaplayer tracks (used for non-JVM clients)
18+
* Statistics (good for load balancing)
19+
* Basic authentication
20+
* Prometheus metrics
21+
* Docker images
22+
23+
## Requirements
24+
25+
* Need a Replit/Glitch account.
26+
* Know how to use lavalink.
27+
* Need to know how to make a discord bot.
28+
* At least you need have knowladge of Java Script
29+
30+
31+
32+
## Installation + Setup
33+
34+
```shell
35+
# Clone the repository:
36+
git clone https://github.com/AstroicyOP/Lavacord.git
37+
38+
# Run the code:
39+
language = "nodejs"
40+
run = "bash start.sh"
41+
42+
```
43+
44+
45+
46+
47+
## Changelog
48+
49+
Please see [here](CHANGELOG.md)
50+
51+
## Versioning policy
52+
53+
- The public API ("API" in a very broad sense) of Lavalink can be categorized into two main domains:
54+
- **Client Domain:** The API exposed to clients, consisting of both the WebSocket protocol and any public HTTP endpoints
55+
- **Server Domain:** The server application with its runtime environment, its configuration, etc.
56+
57+
- A change that is breaking to one domain might not be breaking at all to another.
58+
59+
*Examples:*
60+
- Removing an endpoint: This is a breaking change for the client domain but is not for running the server itself.
61+
- Upgrading the minimum Java version: This is a breaking change for the server domain, but client implementations couldn't care less about it.
62+
63+
**Given the above, the following versioning pattern lends itself well to the Lavalink project:**
64+
65+
_**api.major.minor.patch**_
66+
67+
- **API**: Bumped when breaking changes are committed to the client domain of Lavalink
68+
69+
*Examples:* Removing an endpoint, altering the output of an endpoint in a non-backward-compatible manner
70+
- **Major**: Bumped when breaking changes are committed to the Lavalink server domain
71+
72+
*Examples:* Bumping the required Java version, altering the configuration in a non-backward-compatible manner
73+
- **Minor**: New features in any domain
74+
75+
*Examples:* New optional endpoint or opcode, additional configuration options, change of large subsystems or dependencies
76+
- **Patch**: Bug fixes in any domain
77+
78+
Examples: Fixing a race condition, fixing unexpected exceptions, fixing output that is not according to specs, etc.
79+
80+
While major, minor and patch will do an optimum effort to adhere to [Semantic Versioning](https://semver.org/), prepending it with an additional API version makes life easier for developers in two ways: It is a clear way for the Lavalink project to communicate the relevant breaking changes to client developers, and in return, client developers can use the API version to communicate to their users about the compatibility of their clients to the Lavalink server.
81+
82+
83+
## Credits
84+
85+
**We don't own any files all files are from orginal owner, this is an own doc for future use**

Test/bunde.gradle

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apply plugin: 'kotlin'
2+
apply plugin: 'application'
3+
4+
group 'lavalink'
5+
version '1.0'
6+
mainClassName = "lavalink.testbot.TestbotKt"
7+
8+
repositories {
9+
mavenCentral()
10+
jcenter()
11+
maven { url 'https://jitpack.io' }
12+
}
13+
14+
dependencies {
15+
compile ('net.dv8tion:JDA:4.1.1_135') {
16+
exclude module: 'opus-java'
17+
}
18+
compile "com.github.FredBoat:Lavalink-Client:f84b333518"
19+
compile "ch.qos.logback:logback-classic:$logbackVersion"
20+
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
21+
}
22+
23+
compileKotlin {
24+
kotlinOptions.jvmTarget = "1.8"
25+
}
26+
compileTestKotlin {
27+
kotlinOptions.jvmTarget = "1.8"
28+
}

Test/readme.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Lavalink Testbot
2+
This is a minimalistic example of a bot using Lavalink. This example is based upon Lavalink-Client for Java.
3+
4+
https://github.com/freyacodes/lavalink-client
5+
6+
This uses Lavaplayer to load tracks rather than initially loading tracks via Lavalink. Non-JVM (Java) bots will need
7+
to query the `/loadtracks` endpoint.
8+
9+
10+
## Running the test bot
11+
This guide assumes the following:
12+
* You have a Lavalink node already running
13+
* You have a Discord bot and its token
14+
* You have a shell in the same directory as this readme
15+
* You have Java 11 or newer. Check with `java -version`
16+
17+
Run this command. Gradle will download as needed, and will build and run the bot:
18+
```bash
19+
../gradlew run --args "YOUR_BOT_TOKEN ws://localhost:2333 youshallnotpass"
20+
```
21+
22+
Replace token, host, and password as needed.
23+
24+
Replace `../gradlew` with `../gradlew.bat` if on Windows.
25+
26+
27+
## Using the test bot
28+
Only one command is currently supported, and only the first or selected track of a playlist or search will be played. Example usages:
29+
```
30+
;;play https://www.youtube.com/watch?v=cRh1-_pRDzo
31+
;;play https://soundcloud.com/home-2001/resonance
32+
;;play https://www.youtube.com/watch?v=t2D5HlKLh34&list=PLKUyqLlH6brkzzJgD6Gdriga4mdtCAMBJ
33+
;;play ytsearch: John Coltrane Giant Steps
34+
;;play https://www.youtube.com/watch?v=dQw4w9WgXcQ
35+
```

0 commit comments

Comments
 (0)