Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
e942f3e
changed list format
lorivaro Nov 11, 2021
8c92a7a
changed QueuedTrack class instead
lorivaro Nov 11, 2021
6056ff2
Merge pull request #1032 from yo-louk/queue-links
jagrosh Nov 13, 2021
b76e31c
Delete bug-report.md
jagrosh Jan 6, 2022
9421730
Delete feature-request.md
jagrosh Jan 6, 2022
6af86ca
Update bug-report.yml
jagrosh Jan 6, 2022
c404e92
Create test.yml
jagrosh Jan 6, 2022
8457f94
Fix warnings and deprecations
t3rminus Apr 1, 2022
32d165d
add natives to base repo because I don't think any other repo is open…
jagrosh Apr 5, 2022
ab39d2c
Merge branch 'master' of https://github.com/jagrosh/MusicBot
jagrosh Apr 5, 2022
1d1dfe1
Create make-release.yml
jagrosh Apr 5, 2022
0cdc0d2
Update make-release.yml
jagrosh Apr 5, 2022
92fca22
Update make-release.yml
jagrosh Apr 5, 2022
15a47a7
Update make-release.yml
jagrosh Apr 5, 2022
cadaf94
Update make-release.yml
jagrosh Apr 5, 2022
3c306a8
Update make-release.yml
jagrosh Apr 5, 2022
85aebe8
Update make-release.yml
jagrosh Apr 5, 2022
041ab27
Fixes #514 Require inputing name for `playlist make <name>` command (…
all-laugh Apr 6, 2022
c4e11d6
update deps, minor code cleanup
jagrosh Apr 6, 2022
baf629a
Merge branch 'master' of https://github.com/jagrosh/MusicBot
jagrosh Apr 6, 2022
c22807b
Update make-release.yml
MichailiK Apr 9, 2022
4375d4c
Merge pull request #1155 from MichailiK/pr/ci/simplify-release
jagrosh Apr 9, 2022
a17b2f2
check uri type before formatting queue entry
lorivaro Jul 7, 2022
6007d3e
Merge pull request #1192 from yo-louk/queue-links
jagrosh Jul 7, 2022
a7be2c4
Bump jsoup from 1.14.2 to 1.15.3
dependabot[bot] Sep 1, 2022
ec4e9e6
Merge pull request #1209 from jagrosh/dependabot/maven/org.jsoup-jsou…
jagrosh Sep 3, 2022
b76f6fa
Merge pull request #1141 from t3rminus/fix-warnings-deprecations
jagrosh Sep 3, 2022
aee076c
add more sources
jagrosh Sep 3, 2022
2faef67
Merge branch 'master' of https://github.com/jagrosh/MusicBot
jagrosh Sep 3, 2022
354a0b3
Sanitize the playlist name
lrbn86 Feb 13, 2023
bbed9e8
Merge pull request #1294 from lrbn86/master
jagrosh Feb 14, 2023
c4cbfe2
Catch JDA exception when there is no internet connection
LachlanPond Feb 27, 2023
1e12e4e
Bump JDA to 4.4.1_353
MichailiK Mar 1, 2023
788cd40
Added import for ErrorResponseException
LachlanPond Mar 4, 2023
2c76164
Merge pull request #1304 from LachlanPond/master
jagrosh Mar 6, 2023
0e1f0d3
Bump ch.qos.logback:logback-classic from 1.2.3 to 1.2.13
dependabot[bot] Dec 5, 2023
cd7e643
Possible workaround for Eval command failing
MichailiK Feb 10, 2024
53875f2
Properly fix eval command failing in DMs
MichailiK Feb 10, 2024
e595de2
Merge pull request #1479 from MichailiK/fix/eval-shenanigans
jagrosh Feb 10, 2024
2d4f267
Don't warn about failing to load server settings when the file isn't …
MichailiK Feb 28, 2024
c4502bb
Merge pull request #1460 from jagrosh/dependabot/maven/ch.qos.logback…
jagrosh Feb 28, 2024
90d9a16
Create a new serversettings.json file if one doesn't exist
MichailiK Feb 28, 2024
ff1ede9
Log "loaded config" message again after successfully initializing the…
MichailiK Feb 28, 2024
781a94e
Merge branch 'master' of https://github.com/jagrosh/MusicBot
jagrosh Mar 1, 2024
fa5e33e
fix formatting and nulls in metadata
jagrosh Mar 1, 2024
a521036
update version
jagrosh Mar 1, 2024
c5ecf89
switch to java 11
jagrosh Mar 1, 2024
4f926ba
update circleci settings
jagrosh Mar 1, 2024
ac8661c
Merge pull request #1487 from MichailiK/fix/server-settings-logging
jagrosh Mar 1, 2024
4c8ff65
update github actions to jdk 11
jagrosh Mar 1, 2024
fd6de60
Merge pull request #1489 from jagrosh/add-more-sources
jagrosh Mar 2, 2024
18bf6ac
Remove channel topic info (#1485)
MichailiK Mar 2, 2024
23c2dfa
Make JMusicBot error & shut down if ran in an unsupported manner (#1486)
MichailiK Mar 2, 2024
8a1066c
Allow configurable default skip ratio (#1140)
t3rminus Mar 2, 2024
bb53bad
Update test.yml
jagrosh Mar 2, 2024
1ad1618
Support new Discord username (#1397)
MagicTeaMC Mar 3, 2024
2e9dd5d
add LinearQueue (#1194)
Woife5 Mar 4, 2024
a7807b9
Always self-deafen (#1491)
MichailiK Mar 5, 2024
bb17c98
Codefactor Fixes (#1493)
jagrosh Mar 5, 2024
6752695
rename github action file and update readme (#1494)
jagrosh Mar 5, 2024
49c3ec7
Switch to lavalink's lavaplayer fork (#1490)
MichailiK Mar 5, 2024
801b376
Fix startup message type and add URL to message (#1521)
jagrosh Mar 30, 2024
b3ffbdb
Add log level configuration (#1156)
MichailiK Mar 30, 2024
81322ef
Add seek command (supersedes #344) (#674)
MichailiK May 10, 2024
0afb3db
Switch to lavalink's new YouTube audio source manager (#1552)
MichailiK May 10, 2024
6f12c33
custom eval engine (#1530)
jagrosh May 10, 2024
48e62f1
Revert "Always self-deafen (#1491)" (#1551)
MichailiK May 10, 2024
8557f7a
Log track exceptions in the audio handler (#1558)
MichailiK May 10, 2024
6a5a9c7
Change playlist page count (#1542)
jagrosh May 10, 2024
e5fd05e
Update dependencies to fix youtube issues (#1609)
Morilli Jul 10, 2024
8733899
Update bug-report.yml
jagrosh Jul 10, 2024
f140b41
Use shell comparsion (#1627)
TimothyGillespie Aug 1, 2024
e6bfd18
fix error when playing (#1632)
kokofixcomputers Aug 1, 2024
eca2563
fix npe and an import (#1567)
jagrosh Aug 1, 2024
43b63f1
fixed a mistake (#1648)
nezjusz Aug 6, 2024
859e5c5
Update lavaplayer youtube source to 1.5.2 (#1655)
MichailiK Aug 12, 2024
2e3f47b
Create Nix flake devshell
MichailiK Sep 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
docker:
# specify the version you desire here
- image: circleci/openjdk:8u171-jdk
- image: cimg/openjdk:11.0

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand Down
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

10 changes: 8 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ body:
attributes:
label: Debug Output
description: Please run the `debug` command and paste it here or upload it as an attachment. If you cannot run the command, please provide information about your system such as operating system version, JMusicBot version, etc.
render: shell
validations:
required: true
- type: textarea
Expand All @@ -54,5 +53,12 @@ body:
required: true
- label: I have searched for similar issues [on the issues page](https://github.com/jagrosh/MusicBot/issues?q=is%3Aissue)
required: true
- label: "I am running the latest version of the bot: ![Release](https://img.shields.io/github/release/jagrosh/MusicBot.svg)"
- label: I am using an official release from [the releases page](https://github.com/jagrosh/MusicBot/releases)
required: true
- type: input
id: version
attributes:
label: JMusicBot Version
description: Which version of JMusicBot are you running?
validations:
required: true
27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/feature-request.md

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: Build and Test with Maven
run: mvn --batch-mode --update-snapshots verify
70 changes: 70 additions & 0 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Make Release
on:
workflow_dispatch:
inputs:
version_number:
description: 'Version Number'
required: true
type: string
info:
description: 'Description of this Release'
required: true
type: string

jobs:
build_jar:
name: Build Jar
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: Set Version
uses: datamonsters/replace-action@v2
with:
files: 'pom.xml'
replacements: 'Snapshot=${{ github.event.inputs.version_number }}'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
- name: Rename jar
run: mv target/*-All.jar JMusicBot-${{ github.event.inputs.version_number }}.jar
- name: Upload jar
uses: actions/upload-artifact@v3
with:
name: jar
path: JMusicBot-${{ github.event.inputs.version_number }}.jar
if-no-files-found: error
create_release:
name: Create Release
runs-on: ubuntu-latest
needs: build_jar
steps:
- name: Download a Build Artifact
uses: actions/download-artifact@v3.0.0
with:
name: jar
path: .
- name: Show Artifacts
run: ls -R
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.inputs.version_number }}
name: Version ${{ github.event.inputs.version_number }}
draft: true
prerelease: false
artifacts: "*.jar"
body: |
${{ github.event.inputs.info }}

---
### Setup
https://jmusicbot.com/setup
https://jmusicbot.com/config
# Download: [JMusicBot-${{ github.event.inputs.version_number }}.jar](https://github.com/jagrosh/MusicBot/releases/download/${{ github.event.inputs.version_number }}/JMusicBot-${{ github.event.inputs.version_number }}.jar)
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/.direnv/
/nbproject/
/target/
/Playlists/
/test/
*.json
*.txt
nb*.xml
nb*.xml
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
[![Release](https://img.shields.io/github/release/jagrosh/MusicBot.svg)](https://github.com/jagrosh/MusicBot/releases/latest)
[![License](https://img.shields.io/github/license/jagrosh/MusicBot.svg)](https://github.com/jagrosh/MusicBot/blob/master/LICENSE)
[![Discord](https://discordapp.com/api/guilds/147698382092238848/widget.png)](https://discord.gg/0p9LSGoRLu6Pet0k)<br>
[![CircleCI](https://img.shields.io/circleci/project/github/jagrosh/MusicBot/master.svg)](https://circleci.com/gh/jagrosh/MusicBot)
[![AppVeyor](https://ci.appveyor.com/api/projects/status/gdu6nyte5psj6xfk/branch/master?svg=true)](https://ci.appveyor.com/project/jagrosh/musicbot/branch/master)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/jagrosh/MusicBot/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/jagrosh/MusicBot/tree/master)
[![Build and Test](https://github.com/jagrosh/MusicBot/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/jagrosh/MusicBot/actions/workflows/build-and-test.yml)
[![CodeFactor](https://www.codefactor.io/repository/github/jagrosh/musicbot/badge)](https://www.codefactor.io/repository/github/jagrosh/musicbot)

A cross-platform Discord music bot with a clean interface, and that is easy to set up and run yourself!
Expand Down
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11";
};
outputs = {
self,
nixpkgs,
}: let
mapPkgsForEachSystem = callback:
nixpkgs.lib.genAttrs
nixpkgs.lib.systems.flakeExposed
(system: callback nixpkgs.legacyPackages.${system});
in {
devShells = mapPkgsForEachSystem (pkgs: {
default = pkgs.mkShellNoCC {
packages = with pkgs; [openjdk11 maven];
};
});
};
}
83 changes: 48 additions & 35 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>JMusicBot</artifactId>
<version>Snapshot</version>
<packaging>jar</packaging>

<repositories>
<repository>
<id>dv8tion</id>
Expand All @@ -20,53 +20,64 @@
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>m2.duncte123.dev</id>
<name>m2-duncte123</name>
<url>https://m2.duncte123.dev/releases</url>
</repository>
<repository>
<id>arbjergDev</id>
<name>Lavalink Repository</name>
<url>https://maven.lavalink.dev/releases</url>
</repository>
</repositories>

<dependencies>
<!-- Discord Dependencies -->
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>4.3.0_324</version>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>4.4.1_353</version>
</dependency>
<!-- using a fork of this to fix some issues faster -->
<!-- dependency>
<groupId>com.sedmelluq</groupId>
<artifactId>lavaplayer</artifactId>
<version>1.3.78</version>
</dependency -->
<dependency>
<groupId>com.github.jagrosh</groupId>
<artifactId>lavaplayer</artifactId>
<version>jmusicbot-SNAPSHOT</version>
</dependency>
<!-- this is needed, but isn't actually hosted anywhere anymore... uh -->
<!--dependency>
<groupId>com.sedmelluq</groupId>
<artifactId>lavaplayer-natives-extra</artifactId>
<version>1.3.13</version>
</dependency-->
<dependency>
<groupId>com.jagrosh</groupId>
<artifactId>jda-utilities</artifactId>
<version>3.0.5</version>
<type>pom</type>
</dependency>
<!-- jitpack for now, we need to version this correctly later -->

<!-- Music Dependencies -->
<dependency>
<groupId>dev.arbjerg</groupId>
<artifactId>lavaplayer</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>dev.lavalink.youtube</groupId>
<artifactId>common</artifactId>
<version>1.5.2</version>
</dependency>
<dependency>
<groupId>com.github.jagrosh</groupId>
<artifactId>JLyrics</artifactId>
<version>-SNAPSHOT</version>
<version>master-SNAPSHOT</version>
</dependency>
<!--dependency>
<groupId>com.jagrosh</groupId>
<artifactId>JLyrics</artifactId>
<version>0.6</version>
</dependency-->
<dependency>
<groupId>com.dunctebot</groupId>
<artifactId>sourcemanagers</artifactId>
<version>1.9.0</version>
</dependency>

<!-- Misc Internal Dependencies -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.3</version>
<version>1.2.13</version>
</dependency>
<dependency>
<groupId>com.typesafe</groupId>
Expand All @@ -76,8 +87,10 @@
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.14.2</version>
<version>1.15.3</version>
</dependency>

<!-- Testing Dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand All @@ -91,7 +104,7 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -133,10 +146,10 @@
</plugin>
</plugins>
</build>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</project>
Loading