started as a music bot, now doing other commands i feel like doing for my personal server
dockerfile included, but not really structured and just for personal use. does NOT work with amd64 architecture
feel free to fork or steal and shit idc
note: use python3.11
3.12 breaks like 8 packages because it's not supported with some old ones.
some of these are aiohttp, Brotli and more. if you see it say it failed to build those then you're using 3.12
BOT_TOKEN=Your_Own_Bot_Token
SPOTIFY_ID=Your_Own_Spotify_ID
SPOTIFY_SECRET=Your_Own_Spotify_Secret
BOT_PREFIX=Your_Wanted_Prefix_For_Blueshell
SHOULD_AUTO_DISCONNECT_WHEN_ALONE=True
BOT_ADMINS="<userid1>,<userid2>"
BAT_PATH="C:\\Users\\HyperLexus\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\runbot.bat"
PROJECT_PATH="C:\\Users\\HyperLexus\\PycharmProjects\\blueshellbot2"
PROJECT_URL="https://github.com/hyperlexus/blueshellbot2"
and you can set every variable you can find in /Config/Configs.py in the .env file.
the default values are set as the second number or stat in the brackets there.
this .env file also has to be included when you build the docker image.
if you use a web portal instead of docker desktop to run the image, you have to pass the variables one by one.
if you do that, i recommend changing the default values so you have to pass less variables manually :)
if someone runsTHIS HAS BEEN FIXED AFTER A YEARb.alert ", the bot returns an error. why this happens is sorta known but it's sort of a running gag among my friends to make it produce a 🥶 emoji this easily, so i didnt fix it yetb.alertdoes not work with roles or bot users.\- A lot of the
b.restartproblems have been FIXED, now what you need to do to get it to work is the following:
Change the necessary config in.env, mainlyPROJECT_PATHandBAT_PATH, which point to where your project root and where the executable for the bot is. - Any admin commands (those in the
ModCog.pyfile) can only be executed by "Bot admins". These are to be defined by USER ID in the .env file.
As shown above, it should be likeBOT_ADMINS="<id1>,<id2>"with no space in between. - you can add new commands by adding a new command in the MiscCog.py file and following the rough structure of what I did.
If you know what you're doing, you'll figure it out.
The reason I'm adding this is that new commands will automatically be added to theb.helpoutput. - "Pizza Romani" only works when (boolean or):
- The user is NOT in the server defined in the config
- The user has the role defined in the config
- The user is sending a dm (currently broken) - "Pizza Romani"'s compiler and syntax is a little finnicky.
Enjoy! :D