-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
28 lines (21 loc) · 818 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Automatic OOF sound replacer for Roblox.
# main.py
#
import requests
import os
import json
import wget
# Get current version of roblox to variable by querying roblox api
winplayersettings = requests.get('https://clientsettings.roblox.com/v2/client-version/WindowsPlayer')
winplayerdict = winplayersettings.json()
currentversion = list(winplayerdict.values())[1]
# Prepare folders/files to preform oof operation
appdata = os.getenv('LOCALAPPDATA')
targetfolder = appdata + '/Roblox/Versions/' + currentversion + '/content/sounds'
goofyahhsound = targetfolder + '/ouch.ogg'
# Remove goofy ahh "duh" sound and replace with the one and only
os.remove(goofyahhsound)
os.chdir(targetfolder)
oofurl = "https://str5.cdn.trolling.solutions/ouch.ogg"
wget.download(oofurl, "ouch.ogg")
# OOF!