Skip to content

Commit

Permalink
Converted Codey emojis to snake case (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
Picowchew authored Jan 18, 2023
1 parent 1d7d1a3 commit e8caf64
Show file tree
Hide file tree
Showing 25 changed files with 11 additions and 11 deletions.
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
4 changes: 2 additions & 2 deletions src/commandDetails/miscellaneous/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ const getMemberEmbed = async (uwid: UwIdType): Promise<MessageEmbed> => {
return new MessageEmbed()
.setColor('GREEN')
.setTitle(title)
.setDescription(`You're a CSC member! Hooray! ${getEmojiByName('codeyLove')}`);
.setDescription(`You're a CSC member! Hooray! ${getEmojiByName('codey_love')}`);
}

const NOT_MEMBER_DESCRIPTION = `You're not a CSC member! ${getEmojiByName('codeySad')}
const NOT_MEMBER_DESCRIPTION = `You're not a CSC member! ${getEmojiByName('codey_sad')}
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/
Expand Down
8 changes: 4 additions & 4 deletions src/commands/games/blackjack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,18 @@ export class GamesBlackjackCommand extends Command {
return `You surrendered and lost **${amountDiff}** Codey ${pluralize(
'coin',
amountDiff,
)} ${getEmojiByName('codeySad')}.`;
)} ${getEmojiByName('codey_sad')}.`;
}
if (game.amountWon < game.bet) {
// player lost
return `You lost **${amountDiff}** Codey ${pluralize('coin', amountDiff)} ${getEmojiByName(
'codeySad',
'codey_sad',
)}, better luck next time!`;
}
if (game.amountWon > game.bet) {
// player won
return `You won **${amountDiff}** Codey ${pluralize('coin', amountDiff)} ${getEmojiByName(
'codeyLove',
'codey_love',
)}, keep your win streak going!`;
}
// player tied with dealer
Expand Down Expand Up @@ -240,7 +240,7 @@ export class GamesBlackjackCommand extends Command {
const playerBalance = await getCoinBalanceByUserId(author.id);
if (playerBalance! < bet)
return message.reply(
`you don't have enough coins to place that bet. ${getEmojiByName('codeySad')}`,
`you don't have enough coins to place that bet. ${getEmojiByName('codey_sad')}`,
);

// initialize the game
Expand Down
2 changes: 1 addition & 1 deletion src/commands/interviewer/interviewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export class InterviewerCommand extends SubCommandPluginCommand {
await upsertInterviewer(id, parsedUrl);
return message.reply(
`your info has been updated. Thanks for helping out! ${getEmojiByName(
'codeyLove',
'codey_love',
)?.toString()}`,
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/emojis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const getEmojiByName = (name: string): Emoji | undefined => {
};

export const getCoinEmoji = (): Emoji | string => {
let emoji: Emoji | string = emojiList['codeyCoin'];
let emoji: Emoji | string = emojiList['codey_coin'];
if (emoji === undefined) emoji = '🪙';
return emoji;
};
4 changes: 2 additions & 2 deletions src/components/games/rps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class RpsGameTracker {
player1Id: player1User.id,
player1Username: player1User.username,
player2Id: player2User?.id,
player2Username: player2User?.username ?? `Codey ${getEmojiByName('codeyLove')}`,
player2Username: player2User?.username ?? `Codey ${getEmojiByName('codey_love')}`,
bet: bet,
status: RpsGameStatus.Pending,
player1Sign: RpsGameSign.Pending,
Expand Down Expand Up @@ -230,7 +230,7 @@ export class RpsGame {
}
// Timeout can be implemented later
default:
return `Something went wrong! ${getEmojiByName('codeySad')}`;
return `Something went wrong! ${getEmojiByName('codey_sad')}`;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/interaction-handlers/games/rps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class RpsHandler extends InteractionHandler {
): Promise<void> {
if (interaction.user.id !== rpsGameTracker.getGameFromId(result.gameId)!.state.player1Id) {
return await interaction.reply({
content: `This isn't your game! ${getEmojiByName('codeyAngry')}`,
content: `This isn't your game! ${getEmojiByName('codey_angry')}`,
ephemeral: true,
});
}
Expand Down

0 comments on commit e8caf64

Please sign in to comment.