From cd6e1c04b22c20adca1f76ee0dd162a8df09f1be Mon Sep 17 00:00:00 2001 From: Arne <78976058+4rneee@users.noreply.github.com> Date: Fri, 14 Apr 2023 20:19:24 +0200 Subject: [PATCH] Adjust plugin documentation to match implementation (#4540) --- docs/wip-plugins.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/wip-plugins.md b/docs/wip-plugins.md index d27f0ced..8bb0cf61 100644 --- a/docs/wip-plugins.md +++ b/docs/wip-plugins.md @@ -31,7 +31,7 @@ Example file: "$schema": "https://raw.githubusercontent.com/Chatterino/chatterino2/master/docs/plugin-info.schema.json", "name": "Test plugin", "description": "This plugin is for testing stuff.", - "authors": "Mm2PL", + "authors": ["Mm2PL"], "homepage": "https://github.com/Chatterino/Chatterino2", "tags": ["test"], "version": "0.0.0", @@ -100,8 +100,8 @@ Example: function cmdWords(ctx) -- ctx contains: -- words - table of words supplied to the command including the trigger - -- channelName - name of the channel the command is being run in - c2.system_msg(ctx.channelName, "Words are: " .. table.concat(ctx.words, " ")) + -- channel_name - name of the channel the command is being run in + c2.system_msg(ctx.channel_name, "Words are: " .. table.concat(ctx.words, " ")) end c2.register_command("/words", cmdWords) @@ -123,7 +123,7 @@ Example: function cmdShout(ctx) table.remove(ctx.words, 1) local output = table.concat(ctx.words, " ") - c2.send_msg(ctx.channelName, string.upper(output)) + c2.send_msg(ctx.channel_name, string.upper(output)) end c2.register_command("/shout", cmdShout) ```