From 87a2c885f8509d6ee1b9b5eba1883e855879b2a7 Mon Sep 17 00:00:00 2001 From: Dragory Date: Mon, 19 Feb 2018 00:45:56 +0200 Subject: [PATCH] Add !loglink command --- src/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.js b/src/main.js index ea4f05e..a0b1271 100644 --- a/src/main.js +++ b/src/main.js @@ -307,6 +307,12 @@ addInboxServerCommand('move', async (msg, args, thread) => { thread.postSystemMessage(`Thread moved to ${targetCategory.name.toUpperCase()}`); }); +addInboxServerCommand('loglink', async (msg, args, thread) => { + if (! thread) return; + const logUrl = await thread.getLogUrl(); + thread.postNonLogMessage(`Log URL: ${logUrl}`); +}); + module.exports = { async start() { // Load plugins