From 2e31f2f604f7d51d663613c8a73c77a154fc5f07 Mon Sep 17 00:00:00 2001 From: topkecleon Date: Sun, 23 Aug 2015 02:19:45 -0400 Subject: [PATCH] Users can now display a list of reactions.lua options using /reactions, a help message dynamically generated at plugin load and streamlined into the reactions system. Added doc for /reactions. --- plugins/reaction.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/reaction.lua b/plugins/reaction.lua index 2e8907f..4c04451 100644 --- a/plugins/reaction.lua +++ b/plugins/reaction.lua @@ -1,3 +1,8 @@ +local doc = [[ + /reactions + Get a list of the available reaction emoticons. +]] + local triggers = { ['¯\\_(ツ)_/¯'] = '/shrug$', ['( ͡° ͜ʖ ͡°)'] = '/lenny$', @@ -36,5 +41,6 @@ triggers[help] = '^/reactions' return { triggers = triggers, - action = action + action = action, + doc = doc }