Skip to content

How to add custom messages

3urobeat edited this page Mar 4, 2021 · 7 revisions

This page will instruct you on how to modify the messages the bot will send to a user.
This includes nearly all messages and isn't difficult!

Please open the file customlang.json which is located in the bot's folder.
If this file doesn't exist for you (which will be the case if you updated to 2.10) then please create it and copy&paste this into it.

Every message that you are able to change is included here.

To change a message add a comma to the end of the previous line and add the key of the message you want to change to your customlang.json with the same syntax you saw in the list with all messages.
After you have done that add a colon behind your key and write your message in the brackets.

Example of how your customlang.json could look like after changing the useradded message:

{
    "note": "Please read here on how to use this file: https://github.com/HerrEurobeat/steam-comment-service-bot/wiki/How-to-add-custom-messages",
    "useradded": "You will recieve this message if you add me and it was modified using the customlang file!",
}

Note: Some messages may have words in them that will be replaced by the bot when sending the message. You should be able to spot them easily like for example steam64id in the failedcmdmsg message. You should include them in your custom message aswell.

Clone this wiki locally