Simp-O-Matic

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

commit ebda83fcde59d4bd7008c7d766a3d9aff610d51c
parent 60cf4ef5dfa152827c1f85e69960da505ecdd0f5
Author: Fredrik <moi@knutsen.co>
Date:   Wed, 27 May 2020 19:56:12 +0100

Merge pull request #14 from Shiimoe/master

Kill yourself
Diffstat:
Mlib/commands/kill.ts | 9+++++++--
Alib/resources/suicide.png | 0
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/lib/commands/kill.ts b/lib/commands/kill.ts @@ -1,12 +1,17 @@ import { Message } from 'discord.js'; +import { MessageAttachment } from 'discord.js'; import Action from '../action'; export default (home_scope: HomeScope) => { const { message, args } : { message: Message, args: string[] } = home_scope; - + + const attached = new MessageAttachment( + './lib/resources/suicide.png', + 'suicide.png'); + if (args.length === 0 || message.mentions.users.size === 0) - return message.channel.send("You killed yoursef."); + return message.channel.send("You killed yourself.", attached); message.channel.send(Action.get('kill', message)); }; diff --git a/lib/resources/suicide.png b/lib/resources/suicide.png Binary files differ.