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
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix file import
  • Loading branch information
Vendicated committed May 27, 2024
commit 8f48b04c7db54af5a46e076997db2596667b1c27
3 changes: 1 addition & 2 deletions src/plugins/loadingQuotes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
import { definePluginSettings } from "@api/Settings";
import { Devs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types";

import presetQuotesText from "~fileContent/quotes.txt";
import presetQuotesText from "file:https://quotes.txt";

const presetQuotes = presetQuotesText.split("\n").map(quote => /^\s*[^#\s]/.test(quote) && quote.trim()).filter(Boolean) as string[];
const noQuotesQuote = "Did you really disable all loading quotes? What a buffoon you are...";
Expand Down