Simp-O-Matic

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

commit f374c7d2b43104727d180e4eee8efaffe9f5cf30
parent 92ddc8c7335d1b2adb97e500f4df5c10c3ec434a
Author: Fredrik <moi@knutsen.co>
Date:   Tue,  3 Nov 2020 16:44:39 +0000

Merge pull request #22 from greatredheron/master

Purrrrrr
Diffstat:
MHELP.md | 1+
Mlib/action.ts | 14++++++++++++--
Alib/commands/purr.ts | 13+++++++++++++
3 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/HELP.md b/HELP.md @@ -115,6 +115,7 @@ - `!lick [@user-name]` — Give someone a lickety lick! - `!slap [@user-name]` — Slap someone hard in the face! - `!rim [@user-name]` — Rim someones butthole! +- `!purr [@user-name]` — Purr at someone! - `!emojify [phrase]` — Turn your text into discord-style emoji. - `!B [phrase]` — Replace some elements of your text with a certain U+1F171. - `!uwu [phrase]` — “uwuify” your text. diff --git a/lib/action.ts b/lib/action.ts @@ -1,7 +1,7 @@ import { FORMATS } from './extensions'; import { Message, MessageEmbed } from 'discord.js'; -type ActionType = 'kiss' | 'suck' | 'rape' | 'slap' | 'hug' | 'lick' | 'rim' | 'kill'; +type ActionType = 'kiss' | 'suck' | 'rape' | 'slap' | 'hug' | 'lick' | 'rim' | 'kill' | 'purr'; interface Actions { title: string; @@ -147,7 +147,17 @@ const ACTIONS: Record<ActionType, Actions> = { "https://img2.gelbooru.com/images/7c/9c/7c9cdd15e03df0a2ba06b9bb9aa98180.png", ], transitiveness: true - } + }, + purr: { + title: "You are being purred at!", + message: ":3", + emoji: 'cat', + images: [ + "https://cdn.discordapp.com/attachments/768154669037125712/773217352081735710/giphy.gif", + "https://cdn.discordapp.com/attachments/768154669037125712/773217347884417024/giphy_2.gif" + ], + transitiveness: true + } }; export default class Action { diff --git a/lib/commands/purr.ts b/lib/commands/purr.ts @@ -0,0 +1,13 @@ +import { Message } from 'discord.js'; +import Action from '../action'; + +export default (home_scope: HomeScope) => { + const { message, args } + : { message: Message, args: string[] } = home_scope; + + if (args.length === 0 || message.mentions.users.size === 0) + return message.channel.send( + "You're purringgggggg, good kitten! :cat:"); + + message.channel.send(Action.get('purr', message)); +};