Skip to content

Custom sounds

Robin B edited this page May 19, 2019 · 2 revisions

Adding custom sounds

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.

Interface:

  1. Open the admin panel at the /admin page and log in
  2. Fill out the form for uploads on the very left and click "Upload sound"

Manually:

  1. Put your new sound file in the src/resources/sounds/ folder (in mp3 format)
  2. 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 );
  3. Restart the website

Renaming sounds

Interface:

  1. Open the admin panel at the /admin page and log in
  2. Fill out the form for renaming in the center and click "Update sound".

Manually:

  1. Rename the file in the src/resources/sounds folder
  2. 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>;
  3. Restart the website

Removing sounds

Interface:

  1. Open the admin panel at the /admin page and log in.
  2. Fill out the form for deletion to the right and click "Delete sound"

Manually:

  1. Delete the file in the src/resources/sounds folder
  2. Run this query with with the value for the sound you want to delete:
    • DELETE FROM sounds WHERE filename = <your value here>;
  3. Restart the website