Implement Custom Level-Up Messages for Servers With Gamification #1083
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a new argument to the
/config gamification
command: "message," which allows the command user to customise the message sent to users who level up.The custom message supports emojis, markdown & variable tokens. The supported tokens are as follows:
I based the token format on that used by the locale system: surrounded by percent signs (%).
Usage
Configuring a custom message
![Screenshot_20250112_223602](https://private-user-images.githubusercontent.com/25354036/402392046-b164c67d-a535-4c6e-a447-1fc8938e4209.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Nzg4MjksIm5iZiI6MTczOTU3ODUyOSwicGF0aCI6Ii8yNTM1NDAzNi80MDIzOTIwNDYtYjE2NGM2N2QtYTUzNS00YzZlLWE0NDctMWZjODkzOGU0MjA5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAwMTUyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJlODM1Zjk0ODE1YzUwZDA2MWZjMTdkMWNlMTRhZGRhODEzMTVlNzczZmVhZGYyNThlMjMyNTBhZjY1MDQ4ZjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.rrLTP4SBLXc-jXMXjnT7vJ99xLidlCGr5tbexBBXbys)
Result of leveling up
![Screenshot_20250112_223535](https://private-user-images.githubusercontent.com/25354036/402392065-d2c52a56-281b-4fd2-a7b2-0e2c2ffb30cc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Nzg4MjksIm5iZiI6MTczOTU3ODUyOSwicGF0aCI6Ii8yNTM1NDAzNi80MDIzOTIwNjUtZDJjNTJhNTYtMjgxYi00ZmQyLWE3YjItMGUyYzJmZmIzMGNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAwMTUyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTljZjljMTI0MzRjNDg5Mjg3NjQ2OWU4YmE5Y2E3OGNkMTczODRlMjI3Zjc1ZjY3MzVlYmQ2MThjNDhhZDI3OTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.a2P4Ea32bxhHtCbOeS2Xs6gDwq3aB24M9yrxVx-fDg4)
References
Fixes: #1081
Checklist