Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

commit f38b839058bcdefc226ed1e577a0c467d86dd151
parent 585104fd6b74592f8752a70da362e120507154f3
Author: Demonstrandum <moi@knutsen.co>
Date:   Thu, 19 Mar 2020 17:07:51 +0000

Fix ID...

Diffstat:
Mlib/commands/id.ts | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/commands/id.ts b/lib/commands/id.ts @@ -3,8 +3,14 @@ import { Message } from 'discord.js'; export default home_scope => { const { message } : { message : Message } = home_scope; const rep = []; +<<<<<<< HEAD ['channel', 'user', 'role'].forEach(n => message.mentions[`${n}s`].forEach(o => rep.push(`${n} id: \`${o.id}\``))); +======= + message.mentions.channels.each(o => rep.push('channel id: `' + o.id + '`')) + message.mentions.users.each(o => rep.push('user id: `' + o.id + '`')) + message.mentions.roles.each(o => rep.push('role id: `' + o.id + '`')) +>>>>>>> 2fb48d88264b67abc4f73d99871d1a4ea78290e5 // Joining an empty array yields an empty string which is false const reply = rep.join(', ') || `User ID: \`${message.author.id}\` Author: ${message.author}