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

LoadingQuotes: more customization & custom quotes support #1795

Merged
merged 17 commits into from
May 27, 2024

Conversation

UlyssesZh
Copy link
Contributor

@UlyssesZh UlyssesZh commented Oct 13, 2023

Resolve #1654. Resolve Vencord/plugin-requests#185.

Fix quotes not replaced during Halloween.

src/plugins/loadingQuotes/index.ts Outdated Show resolved Hide resolved
src/plugins/loadingQuotes/index.ts Outdated Show resolved Hide resolved
src/plugins/loadingQuotes/index.ts Outdated Show resolved Hide resolved
src/plugins/loadingQuotes/index.ts Outdated Show resolved Hide resolved
src/plugins/loadingQuotes/index.ts Outdated Show resolved Hide resolved
Copy link
Owner

@Vendicated Vendicated left a comment

Choose a reason for hiding this comment

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

looks pretty good!

can definitely go forward with a merge after addressing a few issues and making sure it still works

also unrelated to your pr, but in hindsight the XOR encryption is a bit cursed... maybe we could instead move the quotes to a separate file quotes.txt (in plain text) and use

import QuoteLines from "~includeFile/quotes.txt"

perhaps you'd like to do that in your pr as well, and maybe we could then also add some fresh quotes

src/plugins/loadingQuotes/index.ts Outdated Show resolved Hide resolved
src/plugins/loadingQuotes/index.ts Show resolved Hide resolved
src/plugins/loadingQuotes/index.ts Outdated Show resolved Hide resolved
@UlyssesZh UlyssesZh marked this pull request as draft May 15, 2024 04:10
@UlyssesZh
Copy link
Contributor Author

Converting to a draft because I suddenly cannot get my installation of Vencord working. The last commit is untested.

Accomodate Discord update
Removes an NSFW quote (Vencord/plugin-requests#129)
Fix: it is possible to get an empty quote when additional quotes are
empty
Fix typo in patch from the merge in last commit
Joke quote when no quotes are enabled
@UlyssesZh UlyssesZh marked this pull request as ready for review May 15, 2024 05:16
@UlyssesZh
Copy link
Contributor Author

Back on. It should be good now.

@UlyssesZh UlyssesZh requested a review from Vendicated May 15, 2024 05:20
@lewisakura
Copy link
Sponsor Collaborator

Can you please outright remove the Vaporeon copypasta quote (see #2474)

@UlyssesZh
Copy link
Contributor Author

Already removed. See the last commit message.

@lewisakura
Copy link
Sponsor Collaborator

Outright, not commented out, I don't think we need to keep the line if it's never seen.

@UlyssesZh
Copy link
Contributor Author

UlyssesZh commented May 18, 2024

Outright, not commented out, I don't think we need to keep the line if it's never seen.

Done. The commenting syntax is retained, though, in case people want to leave comments there.

@lewisakura lewisakura changed the base branch from main to dev May 27, 2024 16:11
@lewisakura lewisakura enabled auto-merge (squash) May 27, 2024 16:11
@lewisakura
Copy link
Sponsor Collaborator

thank you!

@Vendicated Vendicated disabled auto-merge May 27, 2024 16:16
@Vendicated
Copy link
Owner

the patches were kinda bad for the following reasons, thus I changed them:

  • reliant on the current easter egg that might get removed at any time
  • reassigning the variable which might be made a const in the future. the plugin now mutates the array in place
  • just generally using fixed length anything matchers is best avoided

but the rest is good now so I'll go ahead and merge this, thank you for your work!!

@Vendicated Vendicated changed the title [LoadingQuotes] Custom quotes LoadingQuotes: more customization & custom quotes support May 27, 2024
@Vendicated Vendicated merged commit 8bda3a1 into Vendicated:dev May 27, 2024
1 check passed
ImLvna pushed a commit to ImLvna/Vencord that referenced this pull request May 27, 2024
MaiKokain pushed a commit to MaiKokain/Vencord that referenced this pull request May 28, 2024
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.

Custom quotes for LoadingQuotes Plugin [Feature Request] LoadingQuotes Add custom Quotes
3 participants