Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Latest commit

 

History

History
12 lines (8 loc) · 870 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 870 Bytes

MCLBOT event configuration

This folder contains the files for discord websocket events the bots listens for. The filename represents the event name, which will be automatically registered.

There is also the possibility to create a folder with the event name and placing files (with freely selectable filenames) inside it, if you want to split files for the same event.

file parameters

  • disabled boolean value whether to disable this event or not (mostly for debugging / developing without having to delete / move the file)
  • fn() the actual function that will be called if this websocket event is fired, the following arguments will be passed:
    • main the main bot object
    • additional parameters: refer to the discord.js documentation what parameters will be passed for each websocket event