Tempo 1.1.4 Release
Release Message 1.1.1, 1.1.2, 1.1.3, and 1.1.4:
Small bugfixes. I messed up the initial release by forgetting the code to update the database (very important), this is now fixed. Additionally a minimum of python 3.12 was required, this has been resolved and 3.10 up have been tested. On top of that a bug which would result in failure to run every launch has been fixed. finally the version number has now been bumped properly. This release is now actually ready.
Release Message 1.1.0:
I have added a bit more polish and some needed bugfixes, as well as a few features! You can now add a user to your spotify account, enable a global spotify account, DM the bot owner when updates are available (checks hourly), and set settings for those. loop and play/pause have also been added.
Updating
Just drag and drop the new bot.py on top of the old one (replace it) then run $sync
in your server.
Instructions:
- Install the dependencies.
- If you are on windows or MacOS go Download Python. If you are on linux figure it out.
- In your terminal run
python3 -m ensurepip
to make sure pip is installed. - In your terminal run
pip install pynacl discord asyncio youtube_search yt-dlp python-dotenv git+https://github.com/kokarare1212/librespot-python spotipy aiohttp
- If you are on windows download sqlite3. MacOS has this preinstalled. Linux guys can figure this out too.
- If you are on windows or MacOS download ffmpeg. Once again if you use linux: figure it out.
- Download the attached source code .zip file and unzip wherever you would like.
- Get your bot key ready. If you dont know how:
- Go to the Discord developer portal in your web browser.
- Sign in, then select New Application
- Create the Application (give it a name etc)
- Enable Message Content Intent as well as Server Members Intent in the Privileged Gateway Intents category in the Bot section
- Click on Reset Token in the Bot section and copy it
- In your terminal under the directory of the unzipped code folder run
python3 bot.py
. - It will tell you if there is an update available. If there is, update it
- It will ask for your token, give it your token
- It will run and tell you when it is online.
- Invite it to a server. If you dont know how:
- Go back to your bot on the Discord developer portal
- In General Information copy the Application ID.
- Go to the discord bot invite link generator
- Paste your Application ID into the Client ID field
- Enable the View Channels, Send Messages, Use Application Commands, Connect, and Speak permissions
- Click the link at the bottom and add it to a server
- In one server it is in put
$sync
in chat. The bot will sync its slash commands with discord, and will eventually be visible (this is usually fast but can take some time. To do it immediately for one server run$sync ~
. This can result in duplicate commands in that server.)
What is in the bot:
- Basic stop and skip commands
- Audio streaming from:
- Youtube (default)
- Spotify (can be enabled. requires a premium account, so users must provide their username/password)
- Song search from your audio provider
- Scaleable storage (sqlite3)
- Fully featured queue system with the following:
- Song rearrangment
- Song removal
- Shuffle
- Song addition
- Intuitive UI utilizing Discord-bot specific UI features
- Update notifications on launch
- Global Spotify key support (disabled by default)
- Update DMs
- User spotify account trusting (add friends to your account)
Future To-Do list:
- Inbuilt playlist support
- Spotify/Youtube playlist support
- Make UI even better!
- Publicly host the bot myself
- Include systemd service for autostart under linux (just need to pretty it up)
- Remove need for message content intent
Full Changelog: 1.1.2...1.1.3