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

Set activity and use codey coin emojis #276

Merged
merged 7 commits into from
Aug 12, 2022
Merged

Conversation

KevinBacabac
Copy link
Contributor

@KevinBacabac KevinBacabac commented Aug 10, 2022

Summary of Changes
Resolves these issues.
#253
#254

Steps to Reproduce
The bot's status is Playing CSC | .help
image

Play blackjack and confirm codey coins appear properly.
image

@mcpenguin
Copy link
Collaborator

Pls provide screenshots, thanks :))

@KevinBacabac
Copy link
Contributor Author

Added

@mcpenguin
Copy link
Collaborator

when running .coin info:
image
pls fix bug thankss

@adntaha
Copy link
Contributor

adntaha commented Aug 11, 2022

also the linter is angy

@KevinBacabac
Copy link
Contributor Author

I don't know why the linter is still angry
/home/runner/work/codeybot/codeybot/src/commandDetails/coin/adjust.ts
Error: 49:82 error Replace user.username with ⏎····user.username⏎·· prettier/prettier

Copy link
Collaborator

@Picowchew Picowchew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR! :) Prettier is telling you to write the code on more lines. You can do yarn format for automatic formatting. I also left a comment.

Comment on lines 13 to 14
const COIN = getCoinEmoji();
const infoEmbed = new MessageEmbed()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess as to why "undefined" appeared in the coin info embed is that these constants are initialized before initEmojis() in ready.ts is completed (I don't currently have my dev environment with me to verify). Would the custom emoji show if you try placing these 2 constants into coinInfoExecuteCommand instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks it worked! The linter's nice

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad it worked! :)

Copy link
Collaborator

@Picowchew Picowchew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Picowchew Picowchew merged commit bf5db7c into uwcsc:master Aug 12, 2022
@KevinBacabac KevinBacabac deleted the small branch August 12, 2022 22:33
hydrobeam added a commit to hydrobeam/codeybot that referenced this pull request Aug 13, 2022
`/coin check` originally had a mandatory argument of a target user to
check the balance of. Now the argument defaults to the user who called
the command, making it more ergonomic to use.

Set activity and use codey coin emojis (uwcsc#276)

* uwcsc#254

* Change default coin emoji to the Codey coin emoji

* Add fallback if codeycoin emoji does not exist

* Embed the codey coin image as a thumbnail

* Fix bot.ts 43:32 linter issue

* Fix undefined coin emoji in .coin info

* Fix linter in adjust.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants