Skip to content

Commit e8caf64

Browse files
authored
Converted Codey emojis to snake case (#429)
1 parent 1d7d1a3 commit e8caf64

25 files changed

+11
-11
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/commandDetails/miscellaneous/member.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ const getMemberEmbed = async (uwid: UwIdType): Promise<MessageEmbed> => {
3838
return new MessageEmbed()
3939
.setColor('GREEN')
4040
.setTitle(title)
41-
.setDescription(`You're a CSC member! Hooray! ${getEmojiByName('codeyLove')}`);
41+
.setDescription(`You're a CSC member! Hooray! ${getEmojiByName('codey_love')}`);
4242
}
4343

44-
const NOT_MEMBER_DESCRIPTION = `You're not a CSC member! ${getEmojiByName('codeySad')}
44+
const NOT_MEMBER_DESCRIPTION = `You're not a CSC member! ${getEmojiByName('codey_sad')}
4545
4646
Being a CSC member comes with gaining access to CSC machines, cloud, email, web hosting, and more! Additional details can be found here! https://csclub.uwaterloo.ca/resources/services/
4747

src/commands/games/blackjack.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,18 @@ export class GamesBlackjackCommand extends Command {
169169
return `You surrendered and lost **${amountDiff}** Codey ${pluralize(
170170
'coin',
171171
amountDiff,
172-
)} ${getEmojiByName('codeySad')}.`;
172+
)} ${getEmojiByName('codey_sad')}.`;
173173
}
174174
if (game.amountWon < game.bet) {
175175
// player lost
176176
return `You lost **${amountDiff}** Codey ${pluralize('coin', amountDiff)} ${getEmojiByName(
177-
'codeySad',
177+
'codey_sad',
178178
)}, better luck next time!`;
179179
}
180180
if (game.amountWon > game.bet) {
181181
// player won
182182
return `You won **${amountDiff}** Codey ${pluralize('coin', amountDiff)} ${getEmojiByName(
183-
'codeyLove',
183+
'codey_love',
184184
)}, keep your win streak going!`;
185185
}
186186
// player tied with dealer
@@ -240,7 +240,7 @@ export class GamesBlackjackCommand extends Command {
240240
const playerBalance = await getCoinBalanceByUserId(author.id);
241241
if (playerBalance! < bet)
242242
return message.reply(
243-
`you don't have enough coins to place that bet. ${getEmojiByName('codeySad')}`,
243+
`you don't have enough coins to place that bet. ${getEmojiByName('codey_sad')}`,
244244
);
245245

246246
// initialize the game

src/commands/interviewer/interviewer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class InterviewerCommand extends SubCommandPluginCommand {
196196
await upsertInterviewer(id, parsedUrl);
197197
return message.reply(
198198
`your info has been updated. Thanks for helping out! ${getEmojiByName(
199-
'codeyLove',
199+
'codey_love',
200200
)?.toString()}`,
201201
);
202202
}

src/components/emojis.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const getEmojiByName = (name: string): Emoji | undefined => {
1313
};
1414

1515
export const getCoinEmoji = (): Emoji | string => {
16-
let emoji: Emoji | string = emojiList['codeyCoin'];
16+
let emoji: Emoji | string = emojiList['codey_coin'];
1717
if (emoji === undefined) emoji = '🪙';
1818
return emoji;
1919
};

src/components/games/rps.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class RpsGameTracker {
4747
player1Id: player1User.id,
4848
player1Username: player1User.username,
4949
player2Id: player2User?.id,
50-
player2Username: player2User?.username ?? `Codey ${getEmojiByName('codeyLove')}`,
50+
player2Username: player2User?.username ?? `Codey ${getEmojiByName('codey_love')}`,
5151
bet: bet,
5252
status: RpsGameStatus.Pending,
5353
player1Sign: RpsGameSign.Pending,
@@ -230,7 +230,7 @@ export class RpsGame {
230230
}
231231
// Timeout can be implemented later
232232
default:
233-
return `Something went wrong! ${getEmojiByName('codeySad')}`;
233+
return `Something went wrong! ${getEmojiByName('codey_sad')}`;
234234
}
235235
}
236236

src/interaction-handlers/games/rps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class RpsHandler extends InteractionHandler {
5353
): Promise<void> {
5454
if (interaction.user.id !== rpsGameTracker.getGameFromId(result.gameId)!.state.player1Id) {
5555
return await interaction.reply({
56-
content: `This isn't your game! ${getEmojiByName('codeyAngry')}`,
56+
content: `This isn't your game! ${getEmojiByName('codey_angry')}`,
5757
ephemeral: true,
5858
});
5959
}

0 commit comments

Comments
 (0)