I was fed up of having to configure multiple different plugins to get various notifications in discord. So this plugin aims to compile all of them into a single plugin.
I used the following plugins to help with the development of this:
It is not a carbon copy-paste, it was all still written from the ground up using bits of each of these to get it working.
First step to getting this working is to setup the webhook in discord.
Integrations
tabCreate webhook
or View Webhooks
depending on if there is a webhook already for the channelCopy Webhook URL
button.Discord Webhook
text field in the plugin settingsYou can have multiple webhooks setup at the same time, you simply separate them with a newline between each URL.
As the collection notification uses the chat message to determine when a collection log item has been added, these messages
need to be enable in game. You can find this option in Settings > All Settings > Chat > Collection log - New addition notification
Most of the config options are self-explanatory. But the notification messages for each notification type also contain some bits that will be replaced with in-game values.
%USERNAME%
will be replaced with the username of the player
%ITEM%
will be replaced with the item that was dropped for the collection log.
%SKILL%
will be replaced with the skill name and level that was achieved
%LOOT%
will be replaced with a list of the loot and value of said loot
%SOURCE%
will be replace with the source that dropped or gave the loot
%TOTAL_VALUE%
will be replaced with the total value of the loot
%TASK%
will be replaced with the task that you have completed. E.g. 50 monkeys
%TASKCOUNT%
will be replaced with the number of tasks that you have completed.
%POINTS%
will be replaced with the number of points you obtained from the task
%QUEST%
will be replaced with the name of the quest completed
%CLUE%
will be replaced with the type of clue (beginner, easy, etc...)
%LOOT%
will be replaced with the loot that was obtained from the casket
%COUNT%
will be replaced by the number of times that you have completed that tier of clue scrolls
%TOTAL_VALUE%
will be replaced with the total value of the clue
All of these are optional and can be omitted from the message if desired.