BrennerBot is a python discord bot that comes with a few 😎 cool 😎 features:
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!
/chat {prompt}
/draw {prompt}
- 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 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
- Discord.py
- Wavelink Server
- API Keys:
git clone git@github.com:br3nr/brennerbot.git
cd brennerbot
python3 -m pip install -r requirements.txt
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"
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