Coder Social home page Coder Social logo

chorusdownloader's Introduction

๐ŸŽถ Chorus Downloader ๐ŸŽถ

Chorus Downloader is a discord bot for downloading songs of Chorus like repositories to local/remote filestorages.

This bot is based on the API created by Paturages: Chorus.

Avaiable commands

Following is a list of available commands.

$ping pong

$api [url] Gets or Sets the api url.
Note: requires 'admin' role

$search <search_string> [query_type] Searches the api for a given 'search_string'. Optionaly a query_type can be supplied. These are currently the same as documented in Paturages API.
Note: If more than one word is needed for the search, the search_string needs to be encapsulated in quotes.

Currently the following query_types are available:

  • name
  • artist
  • album
  • genre
  • charter
  • tier_band
  • tier_guitarghl
  • diff_guitar
  • hasForced

Install

Make sure docker is running in your machine, or remote server, and you have created a discord bot. A tutorial to create your discord bot can be found here: Creating a bot account. Also make sure to create an Admin role inside your discord server, because this necessary for setting the url.

First create a docker image:

docker build -t chorusdownloader .

Secondly run the docker image:

docker run -d --name ChorusDownloader --env DISCORD_TOKEN=xxxx chorusdownloader

Note: As a default there is no volume attached to the download folder. You must add one yourself with the -v parameter.

Environment variables

The following environment variables can be set during the docker run command:

variable required default
DISCORD_TOKEN yes

To add these to the docker run command use --env KEY=VALUE

Config file settings

Located in the config.ini the following configurations are available:

variable required default
apiUrl false https://chorus.fightthe.pw/api/
chunkSize true 8192
defaultTimeout true 15.0
discordCommandPrefix true $
downloadedSongsCacheFile true ./downloaded_songs.txt
downloadPath true ./download

chorusdownloader's People

Contributors

zatura24 avatar

Stargazers

 avatar Lars avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.