Skip to content

A simple radio bot for Discord written in Typescript

License

Notifications You must be signed in to change notification settings

Noktomezo/Griza

Repository files navigation

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.