mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-13 16:10:36 +00:00
Compare commits
6 Commits
default
...
1713130489
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a3a00f4ed | |||
|
|
0673653491 | ||
| a650fd431e | |||
| f6a763589e | |||
| b7198bd01e | |||
| f0678a4244 |
14
.github/workflows/dotnet.yml
vendored
14
.github/workflows/dotnet.yml
vendored
@@ -26,17 +26,25 @@ jobs:
|
|||||||
- name: Publish
|
- name: Publish
|
||||||
run: dotnet publish ./Bot/Lunaris2.csproj --configuration Release --output ./out
|
run: dotnet publish ./Bot/Lunaris2.csproj --configuration Release --output ./out
|
||||||
|
|
||||||
|
- name: Zip the build
|
||||||
|
run: 7z a -tzip ./out/Bot.zip ./out/*
|
||||||
|
|
||||||
- name: Get the tag name
|
- name: Get the tag name
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
|
run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
|
||||||
|
|
||||||
|
- name: Get the version
|
||||||
|
id: get_version
|
||||||
|
run: echo "::set-output name=version::$(date +%s).${{ github.run_id }}"
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.get_tag.outputs.tag || 'default' }}
|
tag_name: ${{ steps.get_version.outputs.version }}
|
||||||
release_name: Release ${{ github.ref }}
|
release_name: Release v${{ steps.get_version.outputs.version }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
@@ -46,7 +54,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./out/Bot.zip
|
asset_path: ./out/Bot.zip
|
||||||
asset_name: Bot.zip
|
asset_name: Bot.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|||||||
13
Bot/appsettings.json
Normal file
13
Bot/appsettings.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Debug",
|
||||||
|
"System": "Information",
|
||||||
|
"Microsoft": "Information"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Token": "discordToken",
|
||||||
|
"LavaLinkPassword": "youshallnotpass",
|
||||||
|
"LavaLinkHostname": "127.0.0.1",
|
||||||
|
"LavaLinkPort": 2333
|
||||||
|
}
|
||||||
10
README.md
10
README.md
@@ -10,10 +10,12 @@ Lunaris2 is a Discord bot designed to play music in your server's voice channels
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
1. Clone the repository.
|
1. Clone the repo.
|
||||||
2. Install the required packages by running `dotnet restore`.
|
2. Extract.
|
||||||
3. Build the project using `dotnet build`.
|
3. If there isn't already a appsettings.json file in there, create one.
|
||||||
4. Run the bot using `dotnet run`.
|
4. Set the discord bot token. How the file should look (without token): [appsettings.json](https://github.com/Myxelium/Lunaris2.0/blob/master/Bot/appsettings.json)]
|
||||||
|
5. Make sure you got docker installed. And run the file ``start-services.sh``, make sure you got git-bash installed.
|
||||||
|
6. Now you can start the project and run the application.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,16 @@
|
|||||||
server: # REST and WS server
|
server: # REST and WS server
|
||||||
port: 2333
|
port: 2333
|
||||||
address: 0.0.0.0
|
address: 0.0.0.0
|
||||||
http2:
|
|
||||||
enabled: false # Whether to enable HTTP/2 support
|
|
||||||
plugins:
|
plugins:
|
||||||
# name: # Name of the plugin
|
# name: # Name of the plugin
|
||||||
# some_key: some_value # Some key-value pair for the plugin
|
# some_key: some_value # Some key-value pair for the plugin
|
||||||
# another_key: another_value
|
# another_key: another_value
|
||||||
lavalink:
|
lavalink:
|
||||||
plugins:
|
plugins:
|
||||||
# - dependency: "com.github.example:example-plugin:1.0.0" # required, the coordinates of your plugin
|
# - dependency: "group:artifact:version"
|
||||||
# repository: "https://maven.example.com/releases" # optional, defaults to the Lavalink releases repository by default
|
# repository: "repository"
|
||||||
# snapshot: false # optional, defaults to false, used to tell Lavalink to use the snapshot repository instead of the release repository
|
|
||||||
# pluginsDir: "./plugins" # optional, defaults to "./plugins"
|
|
||||||
# defaultPluginRepository: "https://maven.lavalink.dev/releases" # optional, defaults to the Lavalink release repository
|
|
||||||
# defaultPluginSnapshotRepository: "https://maven.lavalink.dev/snapshots" # optional, defaults to the Lavalink snapshot repository
|
|
||||||
server:
|
server:
|
||||||
|
password: "youshallnotpass"
|
||||||
sources:
|
sources:
|
||||||
youtube: true
|
youtube: true
|
||||||
bandcamp: true
|
bandcamp: true
|
||||||
@@ -93,4 +88,4 @@ logging:
|
|||||||
logback:
|
logback:
|
||||||
rollingpolicy:
|
rollingpolicy:
|
||||||
max-file-size: 1GB
|
max-file-size: 1GB
|
||||||
max-history: 30
|
max-history: 30
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
lavalink:
|
lavalink:
|
||||||
# pin the image version to Lavalink v4
|
# pin the image version to Lavalink v4
|
||||||
image: ghcr.io/lavalink-devs/lavalink:3.7.10
|
image: ghcr.io/lavalink-devs/lavalink:3.7.11
|
||||||
container_name: lavalink
|
container_name: lavalink
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user