Skip to content

johann-lr/cadence-v2

Repository files navigation

Cadence Build Status

Codacy Version Dashboard Version Discord


Notice!

This repository contains the old version (v2). The client has been rewritten with the latest libraries and coding standards (v3) using Typescript. This rewrite can be tested on every discord server: https://discordapp.com/api/oauth2/authorize?client_id=698914997400502272&permissions=36792384&scope=bot The source code will be released later after final client release.

Cadence Music Bot for discord
Language support for german, english and spanish (french coming soon)

Homepage & Dashboard: https://musicbot.ga/
Join the bot's server: https://discord.gg/tgmJRc7

Usage

  • Node version 10.15.3 or 11 (12 might not work correctly)
  • ffmpeg installation for audio
  • Start options:
    • -w write mode - logging outputs are going to be written in .log files
    • -s safe mode - additional script that checks installations is run first

FFmpeg

On Linux systems: ffmpeg can be installed via apt or apt-get
On darwin: third party package managers (like homebrew and macports) could have some missing dependencies that'll cause an error => Clone FFmpeg github repo and follow instructions from Install.md

More information regarding cadence with docker (compose)

Files

  • Install modules: npm install --save / npm ci (with package-lock file)
    Node needs to build some packages that have c/cpp headers, so at least 500MB of free RAM are required
  • For ssl-certificates: mkdir keys
  • create self-signed certs with openssl: openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out cert.pem
    (or use authorized software like certbot/letsencrypt)
  • For log files: mkdir logs -> To activate logfile writing run the bot with -w, for safe mode use -s (runs bootstrap.js first)

API Credentials

Information

Created by Johann Laur Support via discord (see above) or email associated with github account (jl.01@icloud.com) - Do not hesitate asking any further questions