Add !loglink command

master
Dragory 2018-02-19 00:45:56 +02:00
parent b9678d08dd
commit 87a2c885f8
1 changed files with 6 additions and 0 deletions

View File

@ -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