-
Notifications
You must be signed in to change notification settings - Fork 10
Custom sounds
Robin B edited this page May 19, 2019
·
2 revisions
There are two ways to add custom sounds starting with version 5.0.0 -- via interface or manually. If done via interface then no restart is required, if done manually changes only take effect on restart.
- Open the admin panel at the
/admin
page and log in - Fill out the form for uploads on the very left and click "Upload sound"
- Put your new sound file in the
src/resources/sounds/
folder (in mp3 format) - Run this query with the values you want to use for the sound:
INSERT INTO sounds ( filename, displayname, source, count ) VALUES ( <your>, <values>, <here>, 0 );
- Restart the website
- Open the admin panel at the
/admin
page and log in - Fill out the form for renaming in the center and click "Update sound".
- Rename the file in the
src/resources/sounds
folder - Run this query with with the new values you want to use for the sound:
UPDATE sounds SET filename = <your>, displayname = <values>, source = <here> WHERE filename = <old filename>;
- Restart the website
- Open the admin panel at the
/admin
page and log in. - Fill out the form for deletion to the right and click "Delete sound"
- Delete the file in the
src/resources/sounds
folder - Run this query with with the value for the sound you want to delete:
DELETE FROM sounds WHERE filename = <your value here>;
- Restart the website