Skip to content

Commit

Permalink
misc formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowsink committed Oct 9, 2024
1 parent d79267d commit b4473b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
5 changes: 4 additions & 1 deletion plugins/invidivizer/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const {
plugin: { store },
observeDom,
flux: { dispatcher, storesFlat: { SelectedChannelStore } },
flux: {
dispatcher,
storesFlat: { SelectedChannelStore },
},
util: { reactFiberWalker, getFiber },
ui: { Header, HeaderTags, TextBox },
} = shelter;
Expand Down
6 changes: 2 additions & 4 deletions plugins/lastfm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ const setPresence = async (name = "", activity?: Track, start?: number) =>
details: activity.name,
state: activity.artist,
application_id: DISCORD_APP_ID,
timestamps: store.stamp
? { start }
: undefined,
timestamps: store.stamp ? { start } : undefined,
assets: {
large_image:
activity.albumArt && (await getAsset(activity.albumArt)),
Expand Down Expand Up @@ -193,7 +191,7 @@ const updateStatus = async () => {

if (lastTrack.url !== lastUrl || !startTimestamp) {
startTimestamp = Date.now();
};
}

lastUrl = lastTrack.url;

Expand Down
9 changes: 4 additions & 5 deletions plugins/pronoundb/db.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { FluxStore } from "@uwu/shelter-defs";

const UserProfileStore = shelter.flux.stores.UserProfileStore as FluxStore<{
getUserProfile(id: string): { bio: string, pronouns: string } | undefined;
getUserProfile(id: string): { bio: string; pronouns: string } | undefined;
}>;

const pronouns = {
Expand Down Expand Up @@ -42,13 +42,12 @@ export const fromStore = (id) => {
return pronounsToSearch.find((p) => pronounSource.includes(p));
};

const endpoint =
"https://pronoundb.org/api/v2/lookup?platform=discord&ids=";
const endpoint = "https://pronoundb.org/api/v2/lookup?platform=discord&ids=";

const options = {
headers: {
"X-PronounDB-Source": "yellowsink/shelter-plugins"
}
"X-PronounDB-Source": "yellowsink/shelter-plugins",
},
};

let batch = new Map<string, (v: string) => void>();
Expand Down

0 comments on commit b4473b6

Please sign in to comment.