Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaZorkane committed Aug 13, 2019
1 parent 61b9a07 commit 2ae6a0b
Show file tree
Hide file tree
Showing 7 changed files with 601 additions and 10 deletions.
11 changes: 6 additions & 5 deletions docs/introduction/plugins.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
id: plugins
title: Plugins
sidebar_label: Plugins
id: plugins-basic
title: Plugins - Basic
sidebar_label: Plugins - Basic
hide_title: true
---

# Plugins
# Plugins - Basic tutorial

Plugins are one of the core aspect difys is built on, you could see difys as an empty vessel without plugins.

Expand Down Expand Up @@ -174,6 +174,7 @@ class Chat {
this.exports = []
this.connections = {}
}
// mount method here
ChatServerMessage(payload) {
const sender = payload.data.senderName;
const content = payload.data.content;
Expand Down Expand Up @@ -234,7 +235,7 @@ export default Chat;
And you're done! You've made your first plugin :)
Now, this is a basic introduction to plugins, if you want a more advanced tutorial, where we talk about `exports` to add scripting functionalities and using the difys `logger` library, head out to the [Plugins API](../plugins/plugins-api) page
Now, this is a basic introduction to plugins, if you want a more advanced tutorial, where we talk about `exports` to add scripting functionalities and using the difys `logger` library, head out to the [Plugins - Advanced](../plugins/plugins-advanced) page
Expand Down
Loading

0 comments on commit 2ae6a0b

Please sign in to comment.