#discord-bot #chat-bot #music #file #environment #create #id

app markov_bot

A discord chat bot written in Rust

2 stable releases

1.0.4 Jul 26, 2022
1.0.2 Dec 14, 2021

#1725 in Web programming

37 downloads per month

MIT and GPL-3.0-only

110KB
2.5K SLoC

markov-bot

A discord chat and music bot written in Rust

Deployment instructions

In the same folder as the executable you'll need to create a .env file with the environment variables DISCORD_TOKEN and APPLICATION_ID.

Example:

DISCORD_TOKEN=OPc7yOsdaGAEgegTU2.GakxzW23dh6g4G46GADKJBZs
APPLICATION_ID=973467367436746574

Optional dependencies

The bot will work without these dependencies but it's music functionality won't work.

  • yt-dlp
  • Opus
  • FFmpeg

Linux instructions for installing the dependencies:

  • yt-dlp - apt install yt-dlp on Ubuntu or pacman -S yt-dlp on Arch Linux.
  • Opus - apt install libopus-dev on Ubuntu or pacman -S opus on Arch Linux
  • FFmpeg - apt install ffmpeg on Ubuntu or pacman -S ffmpeg on Arch Linux

Windows instructions for installing the dependencies:

  • yt-dlp - Download from here and add it to your PATH system environment variable
  • Opus - A prebuilt DLL is provided for you, you do not have to do anything.
  • FFmpeg - Download from here and follow these instructions. You can test if it works by opening up the cmd and typing in ffmpeg.

After you've installed the dependencies and created a .env file with your discord token and application id you can run the bot.

Dependencies

~25–41MB
~746K SLoC