Skip to content

BrennerBot is a discord bot for playing Youtube and Spotify music :)

License

Notifications You must be signed in to change notification settings

br3nr/brennerbot

Repository files navigation


Brenner Bot <3

About

BrennerBot is a python discord bot that comes with a few 😎 cool 😎 features:

  • Play music spotify and youtube using Wavelink
  • Chat and generate images using GPT-3 from OpenAI

It is currently a work in progress, but feel free to use it as you wish.

If have any questions or need any help you can message me on discord: k4br.

Please consider leaving a ⭐ star ⭐ if you find this useful!

Features

GPT-3 & DALL-E Integration

/chat {prompt}


Brenner Bot <3

/draw {prompt}


Brenner Bot <3

Music Player

  • Music can be played with the following commands:
    • ?play, ?pause, ?resume, ?skip & ?stop
  • The bot will join on default, but can be manually moved using ?join and ?leave
  • All songs are queued by default if a song is currently playing

Reminders

  • Reminders can be set for you and your friends by using the ?remindme command
  • Usage:`?remindme
    • Example: `?remindme 1h30m Remove cake from oven
  • You can also include other people in your reminder
    • Example: `?remindme @brennerbot @max 1d5h10m CSGO 3v3
  • Reminders are received as a direct message from the bot

Requirements

Getting Started

Cloning the repo

git clone git@github.com:br3nr/brennerbot.git
cd brennerbot
python3 -m pip install -r requirements.txt

Adding the API keys & Bot Tokens

Before you can run the program, you need to include your discord bot token (See Creating your bot if you do not have this.)

The bot token is needed in bot.py. Replace the line:

client.run(os.environ["DISCORD_TOKEN"])

with,

client.run("YOUR TOKEN GOES HERE")

Spotify integration requires two keys, SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET. You can access these by creating a spotify application in the developer portal. These keys need to be set in music.py:

def __init__(self, bot: commands.Bot):
        self.cid = "YOUR CLIENT ID HERE"
        self.csecret = "YOUR CLIENT SECRET HERE"

The same goes for the OpenAI API key in gpt.py:

def __init__(self, bot: commands.Bot):
        self.bot = bot
        self.model_engine = "text-davinci-002"
        openai.api_key = "YOUR OPEN API KEY HERE"

Running the bot

This bot requires a Wavelink server to be running in the background. This needs to be running alongside the discord bot. Please visit the Wavelink repo for more information.

To launch the server, run the following command:

java -jar Lavalink.jar

Finally, the bot can be launched in a separate terminal using:

python3 bot.py

About

BrennerBot is a discord bot for playing Youtube and Spotify music :)

Topics

Resources

License

Stars

Watchers

Forks

Languages