Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow memes in support-ops #501

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

Update <small>_ October 2023</small>

- feat: ebable memes in support-ops (09/10/2023)

Update <small>_ August 2023</small>

- feat: enhancing user delete log with reference if a reply is deleted, and with embed and attachment data (27/08/2023)
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/addon.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandDefinition } from '../../lib/command';
import { makeEmbed } from '../../lib/embed';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const ADDON_URL = `${imageBaseUrl}/memes/addon.png`;

Expand All @@ -9,7 +9,7 @@ export const addon: CommandDefinition = {
description: 'addon not mod meme',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/boratorium.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandDefinition } from '../../lib/command';
import { makeEmbed } from '../../lib/embed';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { Channels, ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const BORATORIUM_URL = `${imageBaseUrl}/memes/boratorium.png`;

Expand All @@ -9,7 +9,7 @@ export const boratorium: CommandDefinition = {
description: 'B O R A T',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS, Channels.SOUND],
channels: ChannelGroups.LiberalChannels.concat(Channels.SOUND),
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/boris.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandDefinition } from '../../lib/command';
import { makeEmbed } from '../../lib/embed';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { Channels, ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const BORIS_URL = `${imageBaseUrl}/memes/boris.gif`;

Expand All @@ -9,7 +9,7 @@ export const boris: CommandDefinition = {
description: 'boris soudn',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS, Channels.SOUND],
channels: ChannelGroups.LiberalChannels.concat(Channels.SOUND),
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/bruheg.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandDefinition } from '../../lib/command';
import { makeEmbed } from '../../lib/embed';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const BRUHEG_URL = `${imageBaseUrl}/memes/bruheg.png`;

Expand All @@ -9,7 +9,7 @@ export const bruheg: CommandDefinition = {
description: 'bruheg momen',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/coffee.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory } from '../../constants';
import { ChannelGroups, CommandCategory } from '../../constants';

const COFFEE_URL = 'https://www.youtube.com/watch?v=QPfIeVnkZ4Q';

Expand All @@ -8,7 +8,7 @@ export const coffee: CommandDefinition = {
description: 'Would you like some coffee?',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => msg.channel.send(COFFEE_URL),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/cowsay.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import Filter from 'bad-words';
import { say } from 'cowsay';
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory } from '../../constants';
import { ChannelGroups, CommandCategory } from '../../constants';

export const cowsay: CommandDefinition = {
name: ['cowsay', 'cs'],
description: 'Emulates the famous UNIX program `cowsay`.',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/crak.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandDefinition } from '../../lib/command';
import { makeEmbed } from '../../lib/embed';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const CRAK_URL = `${imageBaseUrl}/memes/crak.png`;

Expand All @@ -9,7 +9,7 @@ export const crak: CommandDefinition = {
description: 'What\'s your sim version?',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/default.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';
import { makeEmbed } from '../../lib/embed';

const DEFAULT_URL = `${imageBaseUrl}/memes/default.gif`;
Expand All @@ -9,7 +9,7 @@ export const defaultmeme: CommandDefinition = {
description: 'O_o',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/fms.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandDefinition } from '../../lib/command';
import { makeEmbed } from '../../lib/embed';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const FMS_URL = `${imageBaseUrl}/memes/fms.png`;

Expand All @@ -9,7 +9,7 @@ export const fms: CommandDefinition = {
description: 'That\'s how the real FMS draws it',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/fridge.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandDefinition } from '../../lib/command';
import { makeEmbed } from '../../lib/embed';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const FRIDGE_URL = `${imageBaseUrl}/memes/fridge.png`;

Expand All @@ -9,7 +9,7 @@ export const fridge: CommandDefinition = {
description: 'fridge',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/guard.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const GUARD_URL = `${imageBaseUrl}/memes/guard.gif`;

Expand All @@ -8,7 +8,7 @@ export const guard: CommandDefinition = {
description: 'MEOW',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => msg.channel.send(GUARD_URL),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/juan.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';
import { makeEmbed } from '../../lib/embed';

const JAUN_URL = `${imageBaseUrl}/memes/juan.png`;
Expand All @@ -9,7 +9,7 @@ export const juan: CommandDefinition = {
description: 'just... Jaun',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/mico.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { Channels, ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const MICO_URL = `${imageBaseUrl}/memes/mico.png`;

Expand All @@ -8,7 +8,7 @@ export const mico: CommandDefinition = {
description: 'mico!',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS, Channels.SOUND],
channels: ChannelGroups.LiberalChannels.concat(Channels.SOUND),
verboseErrors: true,
},
executor: (msg) => msg.channel.send(MICO_URL),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/nut.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandDefinition } from '../../lib/command';
import { makeEmbed } from '../../lib/embed';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const NUT_URLS = [
`${imageBaseUrl}/memes/nut.png`,
Expand Down Expand Up @@ -28,7 +28,7 @@ export const nut: CommandDefinition = {
description: 'nut',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/oim.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const OIM_URL = `${imageBaseUrl}/memes/oim.gif`;

Expand All @@ -8,7 +8,7 @@ export const oim: CommandDefinition = {
category: CommandCategory.MEMES,
description: 'oim',
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => msg.channel.send(OIM_URL),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/otter.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory } from '../../constants';
import { ChannelGroups, CommandCategory } from '../../constants';

export const otter: CommandDefinition = {
name: 'otter',
description: 'Well, it\'s an otter',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => msg.channel.send('<:otter:905529385292029972>'),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/p3d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const P3D_URL = `${imageBaseUrl}/memes/p3d.png`;

Expand All @@ -8,7 +8,7 @@ export const p3d: CommandDefinition = {
description: 'No!',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => msg.channel.send(P3D_URL),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/poggers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const POGGERS_URL = `${imageBaseUrl}/memes/poggers.gif`;

Expand All @@ -8,7 +8,7 @@ export const poggers: CommandDefinition = {
description: 'POG',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => msg.channel.send(POGGERS_URL),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/pov.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';
import { makeEmbed } from '../../lib/embed';

const POV_URL = `${imageBaseUrl}/memes/pov_downscaled.gif`;
Expand All @@ -9,7 +9,7 @@ export const pov: CommandDefinition = {
description: 'Oof',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/ptu.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';
import { makeEmbed } from '../../lib/embed';

const PTU_URL = `${imageBaseUrl}/memes/ptu.jpg`;
Expand All @@ -9,7 +9,7 @@ export const ptu: CommandDefinition = {
description: 'Bark',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/pw.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';
import { makeEmbed } from '../../lib/embed';

const PW_URL = `${imageBaseUrl}/memes/pw.png`;
Expand All @@ -9,7 +9,7 @@ export const pw: CommandDefinition = {
description: 'Whale noises',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/shame.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommandDefinition } from '../../lib/command';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const SHAME_URL = `${imageBaseUrl}/memes/shame.gif`;

Expand All @@ -8,7 +8,7 @@ export const shame: CommandDefinition = {
description: 'Shame, shame, shame',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => msg.channel.send(SHAME_URL),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/memes/shomas.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandDefinition } from '../../lib/command';
import { makeEmbed } from '../../lib/embed';
import { Channels, CommandCategory, imageBaseUrl } from '../../constants';
import { ChannelGroups, CommandCategory, imageBaseUrl } from '../../constants';

const SHOMAS_URL = `${imageBaseUrl}/memes/shomas.png`;

Expand All @@ -9,7 +9,7 @@ export const shomas: CommandDefinition = {
description: 'oldest pilot',
category: CommandCategory.MEMES,
requirements: {
channels: [Channels.CHAT, Channels.BOT_COMMANDS],
channels: ChannelGroups.LiberalChannels,
verboseErrors: true,
},
executor: (msg) => {
Expand Down
Loading
Loading