markov_bot

Crates.iomarkov_bot
lib.rsmarkov_bot
version1.0.4
sourcesrc
created_at2021-12-14 12:38:10.193344
updated_at2022-07-26 11:16:23.609042
descriptionA discord chat bot written in Rust
homepage
repositoryhttps://github.com/TheKroni/markov-bot
max_upload_size
id497710
size161,334
Dominik (TheKroni)

documentation

README

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.

Commit count: 351

cargo fmt