Giter Club home page Giter Club logo

griza's Introduction

Overview

Griza is a simple radio bot for Discord. If you're a fan of listening to music, and you are bored with your playlist, then Griza is the best solution for you and the members of your server.

Installation does not take long if you follow the instructions. Just a few clicks and the bot is already on your server in the right channel, tuned to the right frequency and playing cool music.

What makes it different from the others?

  • Multiple language support
  • Support for slash commands
  • Radio setup in 1 command
  • Large number of radio stations
  • Music playback 24/7
  • Easily find out the current track on the radio

Prerequisites

Before starting the installation, make sure you have the following tools installed:

Installation

First, you need to clone the bot repository using the command:

git clone https://github.com/Noktomezo/griza-discord-bot.git

Then you need to install all dependencies:

yarn
# or
yarn install

Before you run it, you need to set up environment variables. Rename the file .env.example to .env and change the values to the desired ones:

  • DISCORD_TOKEN: Token of your Discord-bot. To get it, log in to this site and create a new application. Under the "Bot" tab, copy the token of your bot
  • MONGO_CONNECTION_URL: The link to connect to your MongoDB database. Register or log in, then create a new database by clicking on the "New Project" button and follow the instructions, deploy your database with the desired plan (the free plan fully covers the bot's needs). Then configure the data to connect to your database and click "Create User". In the line "IP Address" enter 0.0.0.0.0/0 so you can connect to the database from any IP or enter your own. Finish creating your database and click "Connect" and find the connection URL (for example click on the "Compass" tab), it should look something like this: mongodb+srv://{username}:{password}@xxx.xxx.mongodb.net/. All you need to do is replace {username} and {password} with the values specified at the very beginning of the database creation. If you plan to connect multiple bots to the same database, specify the name of the collection at the end of the connection URL, like mongodb+srv://uuu:[email protected]/{collection}
  • DEFAULT_LOCALE: The default language of the bot is required for correct display of logs (does not affect the language of the bot on the servers), available languages can be found in the locales folder, specify the file name without its extension (without '.json').
  • TIMEZONE: Time zone, needed for correct time display in logs, can be found here in column "TZ identifier"

Run

When you're all set, build your bot and launch it:

yarn build
yarn start

Run in dev mode

The bot can also be run in dev mode, where the bot will instantly restart when any changes are made:

yarn start:dev

License

Released under the GNU GPL v3 license.

griza's People

Contributors

noktomezo 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.