Make Plugin Names Consistent

This commit is contained in:
thororen1234 2024-07-25 01:17:34 -04:00
parent b8cb056f13
commit 5b4fb13ab3
3 changed files with 9 additions and 4 deletions

View file

@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { definePluginSettings, Settings } from "@api/Settings";
import { definePluginSettings, migratePluginSettings, Settings } from "@api/Settings";
import { Devs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types";
@ -31,7 +31,7 @@ const settings = definePluginSettings({
},
onChange: () => {
// note: cant call the start() function from here. so i just copy pasted it (This was pointed out in the last commit i made. So this is to just clear stuff up for any future devs that work on this :D )
if (Settings.plugins.oneko.enabled) {
if (Settings.plugins.Oneko.enabled) {
document.getElementById("oneko")?.remove();
fetch("https://raw.githubusercontent.com/adryd325/oneko.js/8fa8a1864aa71cd7a794d58bc139e755e96a236c/oneko.js")
.then(x => x.text())
@ -45,8 +45,9 @@ const settings = definePluginSettings({
}
});
migratePluginSettings("Oneko", "oneko");
export default definePlugin({
name: "oneko",
name: "Oneko",
description: "cat follow mouse (real)",
// Listing adryd here because this literally just evals her script
authors: [Devs.Ven, Devs.adryd],