Skip to content

Commit

Permalink
nut (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
benw202 authored Aug 25, 2021
1 parent b879b97 commit 6d3a6df
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { whois } from './whois'
import { donate } from './donate';
import { utf8 } from './utf-8';
import { calibrate } from './calibrate';
import { nut } from './nut';
import { CommandDefinition } from '../lib/command';
import Logger from '../lib/logger';

Expand Down Expand Up @@ -52,6 +53,7 @@ const commands: CommandDefinition[] = [
donate,
utf8,
calibrate,
nut,
];

const commandsObject: { [k: string]: CommandDefinition } = {};
Expand Down
12 changes: 12 additions & 0 deletions src/commands/nut.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { CommandDefinition } from '../lib/command';
import { makeEmbed } from '../lib/embed';
import { CommandCategory } from '../constants';

const NUT_URL = 'https://media.discordapp.net/attachments/838062729398976522/879523609926832198/meme.png?width=535&height=683';

export const nut: CommandDefinition = {
name: 'nut',
category: CommandCategory.FBW,
description: 'nut',
executor: (msg) => msg.channel.send(makeEmbed({ image: { url: NUT_URL } })),
};

0 comments on commit 6d3a6df

Please sign in to comment.