Skip to content

PieInOblivion/PieBotReborn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PieBotReborn

PieInOblivion's JS Discord bot written in Rust this time.

Features

  • Multi-server compatibility
  • Slash command
  • A unique queue system in which individual song requests take priority above playlists and albums
  • Automatically leaves the voice channel when it's alone (Has the side effect of being able to stop it by moving it into an empty voice channel)
  • Youtube text searching, urls and playlist urls
  • Spotify songs, albums and user playlists
  • Rock, Paper, Scissors vs the bot

Commands

Play or Search Music

/play (Youtube search, YouTube song url, YouTube playlist url, Spotify song url/uri, Spotify album url/uri, Spotify playlist url/uri)

Now Playing Title and URL

/np

Skip Current Song

/skip

Pause Current Song

/pause

Resume Current Song

/resume

Stop Current Playback and Reset Song Queues

/stop

Show Both Queue Lengths

/queue

Remove Last Song added in the User Priority Queue. (Useful for removing search mismatches, etc.)

/remove

Play Rock, Paper or Scissors vs the PieBot

/rps rock /rps paper /rps scissors

Requirements

  1. Rust (Not required after it's compiled)
  2. yt-dlp in PATH
  3. ffmpeg in PATH

Setup

  1. Clone this repo: git clone https://github.com/PieInOblivion/PieBotReborn.git

  2. Create a folder named secret in the projects root directory. You can also rename secret_example and edit the required files

  3. Inside this secret folder create/edit these files:

    1. discord which stores your Discord API Key
    2. guilds which stores the Server ID of each server you want the bot the listen to, each seperated by a new line
      • Note: Discord has built-in tools for limiting slash commands to certain roles and channels
    3. youtube which stores your Youtube API Key
    4. spotifyId which stores your Spotify Web API / Client ID
    5. spotifySecret which stores your Spotify Web API Client Secret
    6. rps with 0 0. For global tracking of our rock, paper, scissors scores
  4. Run cargo b --release to compile. The compiled binary will contain your API keys, so keep it safe. The only file that must remain after compilation is the rps file

  5. cargo r --release to run

About

PieInOblivion's Discord bot written in Rust this time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages