Giter Club home page Giter Club logo

universaldiscordnotifier's Introduction

Universal Discord Notifier

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.


Webhook Setup

First step to getting this working is to setup the webhook in discord.

  1. Open the settings for the discord channel that you would like the notifications to be sent into
  2. Click on the Integrations tab
  3. Click on Create webhook or View Webhooks depending on if there is a webhook already for the channel
  4. Upon creating a webhook click the Copy Webhook URL button.
  5. Paste the copied link into the Discord Webhook text field in the plugin settings

You can have multiple webhooks setup at the same time, you simply separate them with a newline between each URL.


Other Setup

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

img.png


Config Options

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.

All messages:

%USERNAME% will be replaced with the username of the player

Collection:

%ITEM% will be replaced with the item that was dropped for the collection log.

Level:

%SKILL% will be replaced with the skill name and level that was achieved

Loot:

%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

Slayer:

%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

Quests:

%QUEST% will be replaced with the name of the quest completed

Clue Scrolls:

%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.

universaldiscordnotifier's People

Contributors

felanbird avatar midgetjake avatar mm2pl avatar tombolks avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.