Code Monkey home page Code Monkey logo

mooosic's Introduction

Mooosic

A WIP discord music bot

Building

This project requires .Net 7 SDK to be built from source. Once installed use dotnet build in the project directory to produce a binary. More information on compiling can found here for dotnet build, publish and run commands.

Configuration

The binary requires a configuration file named config.json in its working directory to function.

Here is a sample config file:

{
  "discord_token": "YOUR_TOKEN_HERE",
  "admin_ids": ["ADMIN_1", "ADMIN_2"],
  "lavalink": {
    "password": "youshallnotpass"
 },
  "spotify": {
    "secret": "YOUR_SPOTIFY_SECRET",
    "client_id": "YOUR_SPOTIFY_CLIENT_ID"
  }
}

Create an application on discord's developer platform and go to the bot tab to get your token.

DONOT SHARE ANY TOKENS WITH ANYONE!

Get spotify creds by creting an app here

You can remove the spotify section if needed but the bot will not accept spotify links

Admin ids are the discord user ids of the users that have full control over the bot. Only these users can invoke the refresh commands.

This bot requires lavalink setup and running. TODO: Document this more...

Usage

Use @bot_name refresh global to register all the slash commands in all guilds. The bot will react with a thumbs up if the command was typed correctly. Now wait for upto 5 mins to see all the slash commands available in all the guilds the bot is in.

Use @bot_name refresh guild to do this only for the current guild. This is usually instant and you will see all the commands in only the current guild.

NOTE: It isn't usually reccommended to use the refresh guild command as this will create duplicate entries if the refresh global command was run before or afterwards.

mooosic's People

Contributors

josebritto avatar

Watchers

 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.