Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (37 sloc) 1.04 KB
This is how you enable/disable events

Managing 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:

{% code-tabs %} {% code-tabs-item title="" %}


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

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

{% endcode-tabs-item %} {% endcode-tabs %}

Editing the config

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

{% code-tabs %} {% code-tabs-item title="application.yml" %}

    events: # An array of all events to enable
        - ready
        - messageCreate
        - guildMemberAdd

{% endcode-tabs-item %} {% endcode-tabs %}

You can’t perform that action at this time.