Skip to content

Commit

Permalink
feat: remove love, pop, rate (#2615)
Browse files Browse the repository at this point in the history
  • Loading branch information
OfficialSirH authored Apr 11, 2024
1 parent 9ecae32 commit e3c0fc0
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 364 deletions.
46 changes: 0 additions & 46 deletions src/commands/Fun/love.ts

This file was deleted.

118 changes: 0 additions & 118 deletions src/commands/Fun/pop.ts

This file was deleted.

48 changes: 0 additions & 48 deletions src/commands/Fun/rate.ts

This file was deleted.

87 changes: 1 addition & 86 deletions src/languages/en-US/commands/fun.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,90 +3,5 @@
"escaperopeExtended": {
"extendedHelp": "**Skyra** used **Escape Rope**."
},
"loveDescription": "Lovemeter, online!",
"loveExtended": {
"usages": [
"User"
],
"extendedHelp": "Hey! Wanna check the lovemeter? I know it's a ridiculous machine, but many humans love it! Don't be shy and try it!",
"explainedUsage": [
[
"user",
"The user to rate."
]
],
"examples": [
"Skyra"
]
},
"popDescription": "Generates a board to pop, pop, pop, and pop.",
"popExtended": {
"usages": [
"Duration",
"--x/--width",
"--y/--height",
"--length"
],
"extendedHelp": "Allows you to generate a pop board where there is one non-pop word, which you have to find and send to the channel. For example, you must send `e60` from ||`pop`||||`e60`||||`pop`|| to win.",
"explainedUsage": [
[
"Duration",
"The amount of time I should allow you to find the non-pop, defaults to 30 seconds."
],
[
"--x/--width",
"The amount of columns the board should have, defaults to 8."
],
[
"--y/--height",
"The amount of rows the board should have, defaults to 3."
],
[
"--length",
"The length of the pops and the solution, defaults to 3."
]
],
"examples": [
"15",
"--x=10",
"--y=5",
"--length=4"
]
},
"popTitle": "POP! Let the pops begin!",
"popTitleLost": "POP! Nobody got it in time!",
"popTitleWinner": "POP! We got a winner: {{value}}!",
"rateDescription": "Let bots have opinions and rate somebody.",
"rateExtended": {
"usages": [
"Content"
],
"extendedHelp": "Just because I am a bot doesn't mean I cannot rate you properly. I can grade you with a random number generator to ease the process. Okay okay, it's not fair, but I mean... I can also give you a 💯.",
"explainedUsage": [
[
"user",
"The user to rate."
]
],
"examples": [
"Skyra",
"me"
]
},
"escaperopeOutput": "**{{user}}** used **Escape Rope**",
"loveLess45": "Try again next time...",
"loveLess75": "Good enough!",
"loveLess100": "Good match!",
"love100": "Perfect match!",
"loveItself": "You are a special creature and you should love yourself more than anyone <3",
"loveResult": "Result",
"rateOutput": "**{{author}}**, I would give **{{userToRate}}** a **{{rate}}**/100 {{emoji}}",
"rateMyself": [
". I love myself a lot 😊",
"myself"
],
"rateOwners": [
". I love my developers a lot 🥰",
"my developers"
]
"escaperopeOutput": "**{{user}}** used **Escape Rope**"
}
18 changes: 0 additions & 18 deletions src/lib/i18n/languageKeys/keys/commands/Fun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,3 @@ import { FT, T } from '#lib/types';
export const EscapeRopeDescription = T<string>('commands/fun:escaperopeDescription');
export const EscapeRopeExtended = T<LanguageHelpDisplayOptions>('commands/fun:escaperopeExtended');
export const EscapeRopeOutput = FT<{ user: string }, string>('commands/fun:escaperopeOutput');
export const Love100 = T<string>('commands/fun:love100');
export const LoveDescription = T<string>('commands/fun:loveDescription');
export const LoveExtended = T<LanguageHelpDisplayOptions>('commands/fun:loveExtended');
export const LoveItself = T<string>('commands/fun:loveItself');
export const LoveLess100 = T<string>('commands/fun:loveLess100');
export const LoveLess45 = T<string>('commands/fun:loveLess45');
export const LoveLess75 = T<string>('commands/fun:loveLess75');
export const LoveResult = T<string>('commands/fun:loveResult');
export const PopDescription = T<string>('commands/fun:popDescription');
export const PopExtended = T<LanguageHelpDisplayOptions>('commands/fun:popExtended');
export const PopTitle = T<string>('commands/fun:popTitle');
export const PopTitleLost = T<string>('commands/fun:popTitleLost');
export const PopTitleWinner = FT<{ value: string }, string>('commands/fun:popTitleWinner');
export const RateDescription = T<string>('commands/fun:rateDescription');
export const RateExtended = T<LanguageHelpDisplayOptions>('commands/fun:rateExtended');
export const RateMyOwners = T<[string, string]>('commands/fun:rateOwners');
export const RateMyself = T<[string, string]>('commands/fun:rateMyself');
export const RateOutput = FT<{ author: string; userToRate: string; rate: number; emoji: string }, string>('commands/fun:rateOutput');
26 changes: 0 additions & 26 deletions src/lib/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,6 @@ import {
} from 'discord.js';
import { first } from './common/iterators.js';

const ONE_TO_TEN = new Map<number, UtilOneToTenEntry>([
[0, { emoji: '😪', color: 0x5b1100 }],
[1, { emoji: '😪', color: 0x5b1100 }],
[2, { emoji: '😫', color: 0xab1100 }],
[3, { emoji: '😔', color: 0xff2b00 }],
[4, { emoji: '😒', color: 0xff6100 }],
[5, { emoji: '😌', color: 0xff9c00 }],
[6, { emoji: '😕', color: 0xb4bf00 }],
[7, { emoji: '😬', color: 0x84fc00 }],
[8, { emoji: '🙂', color: 0x5bf700 }],
[9, { emoji: '😃', color: 0x24f700 }],
[10, { emoji: '😍', color: 0x51d4ef }]
]);

/**
* Image extensions:
* - bmp
Expand All @@ -56,13 +42,6 @@ export const IMAGE_EXTENSION = /\.(bmp|jpe?g|png|gif|webp)$/i;
*/
export const MEDIA_EXTENSION = /\.(bmp|jpe?g|png|gifv?|web[pm]|wav|mp[34]|ogg)$/i;

export function oneToTen(level: number): UtilOneToTenEntry | undefined {
level |= 0;
if (level < 0) level = 0;
else if (level > 10) level = 10;
return ONE_TO_TEN.get(level);
}

/**
* Get the content from a message.
* @param message The Message instance to get the content from
Expand Down Expand Up @@ -377,11 +356,6 @@ export function isUserSelf(userId: Snowflake) {
return userId === process.env.CLIENT_ID;
}

export interface UtilOneToTenEntry {
emoji: string;
color: number;
}

export interface MuteOptions {
reason?: string;
duration?: number | string | null;
Expand Down
Loading

0 comments on commit e3c0fc0

Please sign in to comment.