experimental discord vc mod
by Sabrina
So wait why do i need this mod? well to put simply. its a mod for proximity voice chatting scrap mechanic via discord but to explain it in a long term, the game connects to my python script via JSON files, it basically "runs" the discord bot and all of its stuffs. It's not the fastest so don't expect it to be blazing quick but its a good alternative to doing DLL's which you need to inject. Is this mod a virus? will i get hacked if i run the python? no no, not at all! All my python script is doing is grabbing the JSON files data, and hosting a discord bot. Yes it may take some CPU to run but that's just running code, it cant just spontaneously run infinity optimized silly!! I have problems!!! / there are bugs!!! well i am going to support this mod for a bit, so you can comment below and tell me issues, and if you need help setting up the discord bot, add me on discord at retro_dogo and i can help you set it up. Steps to setup the mod as host 1 - Make sure that python is installed, it really doesn't matter what version, just one that works, but i suggest making sure that you have python installed before anything. 2 - Find the mod's directory, its usually in the path "C:\SteamLibrary\steamapps\workshop\content\387990\3423904098" but depending on the drive, it could be X or even D, but just look for what drive SM is installed on. 3 - Open the botConfig.json in any editor, just keep this open for later, we will need it. 4 - Make a discord bot, its not too hard just head over to Discord dev page and make a new discord bot, name it anything. 5 - Head over to the "Installation" tab and turn off "User Install" and also set the drop down for the "Install Link" to none, discord is weird with the invites. 6 - Head back over to the bot tab, turn off "PUBLIC BOT" under "Authorization Flow", this just makes it so that people cant put the bot into their own servers, basically private. 7 - Scroll down to the "Privileged Gateway Intents" and turn them all on, we need this so that the bot can see messages and members. 8 - Go to the Oauth2 Page and scroll down to the "OAuth2 URL Generator" and click "bot" and then select "Manage Channel" and "Move Members". Copy the link, and paste it in the browser and add it to a discord server. 9 - Make a category for the VCs and add a "lobby" VC for people to join the VCs. 11 - Head back to the discord dev page and go to the "Bot" tab and click the big blue reset token button, it should reset the token. Go back to the botConfig.json again, and replace the "BOT TOKEN" with the copied token. 12 - Again go back to the discord server and right click the category, copy the id, then head into the botConfig.json and replace the "SERVER CATEGORY ID" and replace it with the copied id. 13 - Again go back to the discord server and right click the lobby VC, copy the id, then head into the botConfig.json and replace the "LOBBY CHANNEL ID" and replace it with the copied id. 13.5 - Also while in the botConfig.json, you can edit other things like the distance of VC proximity. 14 - Open a terminal, i recommend opening a terminal in the same directory, so click at the top so that it highlights the directory, and replace it with "cmd" and it should open a terminal. 15 - type into the terminal "py discordbot.py", and watch the bot come online and work. Steps to setup the mod as client 1 - do "/link" in scrap mechanic, and copy the code 2 - paste the code into the discord bot dms 2.5 - do "unlink" to unlink your account. btw i will add a video for displaying how to set this up encase people cant follow the guide hehe.
Comments
0 total- No comments yet. Be first.
