From 3fbfdeff760794d8e0b22b67c429fb12e1b55483 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sun, 10 Jul 2022 00:04:52 -0500 Subject: [PATCH] feat: add diagram --- assets/images/Untitled Diagram.drawio | 61 --------------------------- guide-en/README.md | 6 ++- 2 files changed, 4 insertions(+), 63 deletions(-) delete mode 100644 assets/images/Untitled Diagram.drawio diff --git a/assets/images/Untitled Diagram.drawio b/assets/images/Untitled Diagram.drawio deleted file mode 100644 index 79ce00a8f..000000000 --- a/assets/images/Untitled Diagram.drawio +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/guide-en/README.md b/guide-en/README.md index c8cb8c88e..1bd56f1b3 100644 --- a/guide-en/README.md +++ b/guide-en/README.md @@ -256,7 +256,9 @@ export function logCreated(): CommandPlugin { } ``` Above, this simple plugin logs that the module has been loaded along with a timestamp.
-Again, it is up to the user to define plugin logic! The possibilities to customize your bots is endless. +Again, it is up to **you** to define plugin logic! The possibilities to customize your bots is endless. ## Event Plugins -sern hooks up to a discord.js event, and then handles which command is fired.
\ No newline at end of file +![event-plugins](/assets/images/eventplugins.drawio.svg)
+The diagram should explain most of it. An event is emitted by discord.js, run through all the plugins, and if they are
+all successful, the command is executed.