Managing events

This is how you enable/disable events

Event Management

You can manage Wump's events in various ways, some of them are:

  1. Deleting an event's file

  2. Editing the enabled events inside of the configuration file

Deleting an event file

This is the simplest way to disable an event: by deleting it entirely. Although this is not recommended but it is an option, do as followed inside of the root directory:

delete.sh
#!/bin/bash

# Linux / Mac
rm -rf src/events/Discord/<event>

# Windows
del ./src/events/Discord/<event>

Editing the config

The best way is by editing the Discord.events array inside of your configuration file, the syntax is as followed:

application.yml
...
Discord:
    ...
    events: # An array of all events to enable
        - ready
        - messageCreate
        - guildMemberAdd

Last updated