2025-09-27 20:10:37 +02:00
|
|
|
import { plugin } from "@vendetta";
|
2025-09-27 21:22:17 +02:00
|
|
|
import { storage } from "@vendetta/plugin";
|
|
|
|
|
import { useProxy } from "@vendetta/storage";
|
2025-10-01 16:18:11 +02:00
|
|
|
import { React, ReactNative as RN, stylesheet } from "@vendetta/metro/common";
|
2025-09-27 20:10:37 +02:00
|
|
|
import { findByProps } from "@vendetta/metro";
|
2025-10-01 16:18:11 +02:00
|
|
|
import { semanticColors } from "@vendetta/ui";
|
|
|
|
|
import { getAssetIDByName } from "@vendetta/ui/assets";
|
|
|
|
|
import { Forms } from "@vendetta/ui/components";
|
2025-09-27 21:37:28 +02:00
|
|
|
import { alerts } from "@vendetta/ui";
|
2025-09-27 19:17:06 +02:00
|
|
|
|
2025-09-27 20:10:37 +02:00
|
|
|
const { ScrollView } = findByProps("ScrollView");
|
2025-09-27 20:44:51 +02:00
|
|
|
const { TableRowGroup, TableSwitchRow, Stack, TableRow } = findByProps(
|
2025-09-27 20:10:37 +02:00
|
|
|
"TableSwitchRow",
|
|
|
|
|
"TableRowGroup",
|
|
|
|
|
"Stack",
|
2025-09-27 20:44:51 +02:00
|
|
|
"TableRow",
|
2025-09-27 20:10:37 +02:00
|
|
|
);
|
2025-09-27 19:40:15 +02:00
|
|
|
|
2025-10-01 16:18:11 +02:00
|
|
|
// Header Component
|
|
|
|
|
function Header() {
|
|
|
|
|
const styles = stylesheet.createThemedStyleSheet({
|
|
|
|
|
container: {
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
paddingVertical: 24,
|
|
|
|
|
paddingHorizontal: 16,
|
|
|
|
|
},
|
|
|
|
|
title: {
|
|
|
|
|
fontSize: 28,
|
|
|
|
|
fontWeight: "700",
|
|
|
|
|
color: semanticColors.TEXT_NORMAL,
|
|
|
|
|
marginBottom: 4,
|
|
|
|
|
},
|
|
|
|
|
subtitle: {
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: "500",
|
|
|
|
|
color: semanticColors.TEXT_MUTED,
|
|
|
|
|
},
|
|
|
|
|
iconContainer: {
|
|
|
|
|
backgroundColor: semanticColors.BACKGROUND_SECONDARY,
|
|
|
|
|
borderRadius: 16,
|
|
|
|
|
padding: 12,
|
|
|
|
|
marginBottom: 16,
|
|
|
|
|
},
|
|
|
|
|
icon: {
|
|
|
|
|
width: 32,
|
|
|
|
|
height: 32,
|
|
|
|
|
tintColor: semanticColors.TEXT_NORMAL,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<RN.View style={styles.container}>
|
|
|
|
|
<RN.View style={styles.iconContainer}>
|
|
|
|
|
<RN.Image
|
|
|
|
|
source={getAssetIDByName("SettingsIcon")}
|
|
|
|
|
style={styles.icon}
|
|
|
|
|
/>
|
|
|
|
|
</RN.View>
|
|
|
|
|
<RN.Text style={styles.title}>Commands</RN.Text>
|
|
|
|
|
<RN.Text style={styles.subtitle}>A collection of useful commands</RN.Text>
|
|
|
|
|
</RN.View>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Gary API Selection Component
|
|
|
|
|
function GaryAPISelection({ forceRerender }: { forceRerender: () => void }) {
|
|
|
|
|
const styles = stylesheet.createThemedStyleSheet({
|
|
|
|
|
container: {
|
|
|
|
|
backgroundColor: semanticColors.BACKGROUND_SECONDARY,
|
|
|
|
|
borderRadius: 12,
|
|
|
|
|
marginHorizontal: 16,
|
|
|
|
|
marginVertical: 8,
|
|
|
|
|
padding: 16,
|
|
|
|
|
},
|
|
|
|
|
title: {
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
fontWeight: "600",
|
|
|
|
|
color: semanticColors.TEXT_NORMAL,
|
|
|
|
|
marginBottom: 12,
|
|
|
|
|
},
|
|
|
|
|
optionContainer: {
|
|
|
|
|
flexDirection: "row",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
paddingVertical: 12,
|
|
|
|
|
paddingHorizontal: 8,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
marginVertical: 2,
|
|
|
|
|
},
|
|
|
|
|
selectedOption: {
|
|
|
|
|
backgroundColor: semanticColors.BACKGROUND_MODIFIER_SELECTED,
|
|
|
|
|
},
|
|
|
|
|
optionText: {
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: "500",
|
|
|
|
|
marginLeft: 12,
|
|
|
|
|
flex: 1,
|
|
|
|
|
},
|
|
|
|
|
selectedText: {
|
|
|
|
|
color: semanticColors.TEXT_BRAND,
|
|
|
|
|
},
|
|
|
|
|
normalText: {
|
|
|
|
|
color: semanticColors.TEXT_NORMAL,
|
|
|
|
|
},
|
|
|
|
|
radioButton: {
|
|
|
|
|
width: 20,
|
|
|
|
|
height: 20,
|
|
|
|
|
borderRadius: 10,
|
|
|
|
|
borderWidth: 2,
|
|
|
|
|
borderColor: semanticColors.TEXT_MUTED,
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
justifyContent: "center",
|
|
|
|
|
},
|
|
|
|
|
selectedRadio: {
|
|
|
|
|
borderColor: semanticColors.TEXT_BRAND,
|
|
|
|
|
},
|
|
|
|
|
radioInner: {
|
|
|
|
|
width: 10,
|
|
|
|
|
height: 10,
|
|
|
|
|
borderRadius: 5,
|
|
|
|
|
backgroundColor: semanticColors.TEXT_BRAND,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const options = [
|
|
|
|
|
{ value: "gary", label: "Gary API", desc: "Original Gary cat images" },
|
|
|
|
|
{ value: "catapi", label: "Cat API", desc: "Random cat pictures" },
|
|
|
|
|
{ value: "minker", label: "Minker API", desc: "Minky images" },
|
|
|
|
|
{ value: "goober", label: "Goober API", desc: "Goober images" },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const currentSource = storage.garySettings?.imageSource || "gary";
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<RN.View style={styles.container}>
|
|
|
|
|
<RN.Text style={styles.title}>Gary Image Source</RN.Text>
|
|
|
|
|
{options.map((option) => {
|
|
|
|
|
const isSelected = currentSource === option.value;
|
|
|
|
|
return (
|
|
|
|
|
<RN.Pressable
|
|
|
|
|
key={option.value}
|
|
|
|
|
style={[
|
|
|
|
|
styles.optionContainer,
|
|
|
|
|
isSelected && styles.selectedOption,
|
|
|
|
|
]}
|
|
|
|
|
onPress={() => {
|
|
|
|
|
storage.garySettings.imageSource = option.value;
|
|
|
|
|
forceRerender();
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<RN.View style={[
|
|
|
|
|
styles.radioButton,
|
|
|
|
|
isSelected && styles.selectedRadio,
|
|
|
|
|
]}>
|
|
|
|
|
{isSelected && <RN.View style={styles.radioInner} />}
|
|
|
|
|
</RN.View>
|
|
|
|
|
<RN.View style={{ flex: 1, marginLeft: 12 }}>
|
|
|
|
|
<RN.Text style={[
|
|
|
|
|
styles.optionText,
|
|
|
|
|
isSelected ? styles.selectedText : styles.normalText,
|
|
|
|
|
]}>
|
|
|
|
|
{option.label}
|
|
|
|
|
</RN.Text>
|
|
|
|
|
<RN.Text style={{
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
color: semanticColors.TEXT_MUTED,
|
|
|
|
|
marginTop: 2,
|
|
|
|
|
}}>
|
|
|
|
|
{option.desc}
|
|
|
|
|
</RN.Text>
|
|
|
|
|
</RN.View>
|
|
|
|
|
</RN.Pressable>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</RN.View>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-27 21:22:17 +02:00
|
|
|
// Initialize storage with default values
|
2025-09-27 20:15:20 +02:00
|
|
|
if (!storage.factSettings) {
|
|
|
|
|
storage.factSettings = {
|
|
|
|
|
sendAsReply: true,
|
|
|
|
|
includeCitation: false,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!storage.listSettings) {
|
|
|
|
|
storage.listSettings = {
|
|
|
|
|
pluginListAlwaysDetailed: false,
|
|
|
|
|
themeListAlwaysDetailed: false,
|
|
|
|
|
};
|
|
|
|
|
}
|
2025-09-27 19:17:06 +02:00
|
|
|
|
2025-10-01 15:41:01 +02:00
|
|
|
if (!storage.garySettings) {
|
|
|
|
|
storage.garySettings = {
|
2025-10-01 16:18:11 +02:00
|
|
|
imageSource: "gary",
|
2025-10-01 15:41:01 +02:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-27 20:30:21 +02:00
|
|
|
if (!storage.enabledCommands) {
|
|
|
|
|
storage.enabledCommands = {
|
|
|
|
|
catfact: true,
|
|
|
|
|
dogfact: true,
|
|
|
|
|
useless: true,
|
|
|
|
|
petpet: true,
|
|
|
|
|
pluginList: true,
|
|
|
|
|
themeList: true,
|
|
|
|
|
konoself: true,
|
|
|
|
|
konosend: true,
|
2025-09-27 23:19:06 +02:00
|
|
|
firstmessage: true,
|
2025-09-28 23:45:17 +02:00
|
|
|
sysinfo: true,
|
2025-09-30 19:03:33 +02:00
|
|
|
spotifyTrack: true,
|
|
|
|
|
spotifyAlbum: true,
|
|
|
|
|
spotifyArtists: true,
|
|
|
|
|
spotifyCover: true,
|
2025-10-01 15:41:01 +02:00
|
|
|
gary: true,
|
2025-09-27 20:30:21 +02:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-27 20:44:51 +02:00
|
|
|
if (!storage.pendingRestart) {
|
|
|
|
|
storage.pendingRestart = false;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-27 20:10:37 +02:00
|
|
|
export default function Settings() {
|
2025-09-27 20:15:20 +02:00
|
|
|
useProxy(storage);
|
|
|
|
|
const [rerender, forceRerender] = React.useReducer((x) => x + 1, 0);
|
2025-09-27 19:17:06 +02:00
|
|
|
|
2025-10-01 16:18:11 +02:00
|
|
|
const styles = stylesheet.createThemedStyleSheet({
|
|
|
|
|
container: {
|
|
|
|
|
flex: 1,
|
|
|
|
|
backgroundColor: semanticColors.BACKGROUND_PRIMARY,
|
|
|
|
|
},
|
|
|
|
|
spacing: {
|
|
|
|
|
height: 16,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2025-09-27 21:22:17 +02:00
|
|
|
// Check for pending restart when unmounting
|
2025-09-27 20:44:51 +02:00
|
|
|
React.useEffect(() => {
|
|
|
|
|
return () => {
|
|
|
|
|
if (storage.pendingRestart) {
|
2025-09-27 21:08:38 +02:00
|
|
|
storage.pendingRestart = false;
|
2025-09-27 21:37:28 +02:00
|
|
|
alerts.showConfirmationAlert({
|
|
|
|
|
title: "Restart Required",
|
|
|
|
|
content:
|
|
|
|
|
"You have made changes to commands. Please restart Discord to apply these changes.",
|
|
|
|
|
confirmText: "Okay",
|
|
|
|
|
cancelText: null,
|
|
|
|
|
});
|
2025-09-27 20:44:51 +02:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}, []);
|
|
|
|
|
|
2025-09-27 20:30:21 +02:00
|
|
|
const handleCommandToggle = (commandName: string, value: boolean) => {
|
2025-09-27 20:44:51 +02:00
|
|
|
storage.enabledCommands[commandName] = value;
|
|
|
|
|
storage.pendingRestart = true;
|
2025-09-27 20:30:21 +02:00
|
|
|
forceRerender();
|
|
|
|
|
};
|
|
|
|
|
|
2025-09-27 19:40:15 +02:00
|
|
|
return (
|
2025-10-01 16:18:11 +02:00
|
|
|
<RN.View style={styles.container}>
|
2025-09-27 21:22:17 +02:00
|
|
|
<ScrollView
|
|
|
|
|
style={{ flex: 1 }}
|
|
|
|
|
contentContainerStyle={{ paddingBottom: 38 }}
|
2025-10-01 16:18:11 +02:00
|
|
|
showsVerticalScrollIndicator={false}
|
2025-09-27 21:22:17 +02:00
|
|
|
>
|
2025-10-01 16:18:11 +02:00
|
|
|
<Header />
|
|
|
|
|
|
2025-09-27 20:15:20 +02:00
|
|
|
<Stack spacing={8}>
|
2025-09-27 20:30:21 +02:00
|
|
|
{/* Facts Commands */}
|
2025-09-27 20:22:48 +02:00
|
|
|
<TableRowGroup title="Facts Commands">
|
2025-09-27 20:15:20 +02:00
|
|
|
<TableSwitchRow
|
|
|
|
|
label="Send as Reply"
|
|
|
|
|
subLabel="Send facts as a reply to the command message"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.factSettings?.sendAsReply ?? true}
|
2025-09-27 20:15:20 +02:00
|
|
|
onValueChange={(v: boolean) => {
|
|
|
|
|
storage.factSettings.sendAsReply = v;
|
|
|
|
|
forceRerender();
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<TableSwitchRow
|
|
|
|
|
label="Include Source Citation"
|
|
|
|
|
subLabel="Include the source of facts when available"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.factSettings?.includeCitation ?? false}
|
2025-09-27 20:15:20 +02:00
|
|
|
onValueChange={(v: boolean) => {
|
|
|
|
|
storage.factSettings.includeCitation = v;
|
|
|
|
|
forceRerender();
|
|
|
|
|
}}
|
|
|
|
|
/>
|
2025-09-27 20:22:48 +02:00
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/catfact"
|
|
|
|
|
subLabel="Get random cat facts"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.enabledCommands?.catfact ?? true}
|
2025-09-27 20:30:21 +02:00
|
|
|
onValueChange={(v) => handleCommandToggle("catfact", v)}
|
2025-09-27 20:22:48 +02:00
|
|
|
/>
|
|
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/dogfact"
|
|
|
|
|
subLabel="Get random dog facts"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.enabledCommands?.dogfact ?? true}
|
2025-09-27 20:30:21 +02:00
|
|
|
onValueChange={(v) => handleCommandToggle("dogfact", v)}
|
2025-09-27 20:22:48 +02:00
|
|
|
/>
|
|
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/useless"
|
|
|
|
|
subLabel="Get random useless facts"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.enabledCommands?.useless ?? true}
|
2025-09-27 20:30:21 +02:00
|
|
|
onValueChange={(v) => handleCommandToggle("useless", v)}
|
2025-09-27 20:22:48 +02:00
|
|
|
/>
|
2025-09-27 20:15:20 +02:00
|
|
|
</TableRowGroup>
|
2025-09-27 19:17:06 +02:00
|
|
|
|
2025-09-27 20:44:51 +02:00
|
|
|
{/* List Commands */}
|
2025-09-27 20:22:48 +02:00
|
|
|
<TableRowGroup title="List Commands">
|
2025-09-27 20:15:20 +02:00
|
|
|
<TableSwitchRow
|
2025-09-27 20:22:48 +02:00
|
|
|
label="Always Send Detailed Plugin List"
|
2025-09-27 20:15:20 +02:00
|
|
|
subLabel="Always use detailed mode when listing plugins"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.listSettings?.pluginListAlwaysDetailed ?? false}
|
2025-09-27 20:15:20 +02:00
|
|
|
onValueChange={(v: boolean) => {
|
|
|
|
|
storage.listSettings.pluginListAlwaysDetailed = v;
|
|
|
|
|
forceRerender();
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<TableSwitchRow
|
2025-09-27 20:22:48 +02:00
|
|
|
label="Always Send Detailed Theme List"
|
2025-09-27 20:15:20 +02:00
|
|
|
subLabel="Always use detailed mode when listing themes"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.listSettings?.themeListAlwaysDetailed ?? false}
|
2025-09-27 20:15:20 +02:00
|
|
|
onValueChange={(v: boolean) => {
|
|
|
|
|
storage.listSettings.themeListAlwaysDetailed = v;
|
|
|
|
|
forceRerender();
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<TableSwitchRow
|
2025-09-27 20:22:48 +02:00
|
|
|
label="/plugin-list"
|
|
|
|
|
subLabel="List all installed plugins"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.enabledCommands?.pluginList ?? true}
|
2025-09-27 20:30:21 +02:00
|
|
|
onValueChange={(v) => handleCommandToggle("pluginList", v)}
|
2025-09-27 20:15:20 +02:00
|
|
|
/>
|
|
|
|
|
<TableSwitchRow
|
2025-09-27 20:22:48 +02:00
|
|
|
label="/theme-list"
|
|
|
|
|
subLabel="List all installed themes"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.enabledCommands?.themeList ?? true}
|
2025-09-27 20:30:21 +02:00
|
|
|
onValueChange={(v) => handleCommandToggle("themeList", v)}
|
2025-09-27 20:15:20 +02:00
|
|
|
/>
|
2025-09-27 20:22:48 +02:00
|
|
|
</TableRowGroup>
|
|
|
|
|
|
|
|
|
|
{/* Image Commands */}
|
2025-09-30 19:03:33 +02:00
|
|
|
<TableRowGroup title="Petpet Commands">
|
2025-09-27 20:15:20 +02:00
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/petpet"
|
|
|
|
|
subLabel="Create pet-pet GIF of a user"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.enabledCommands?.petpet ?? true}
|
2025-09-27 20:30:21 +02:00
|
|
|
onValueChange={(v) => handleCommandToggle("petpet", v)}
|
2025-09-27 20:15:20 +02:00
|
|
|
/>
|
2025-09-27 20:22:48 +02:00
|
|
|
</TableRowGroup>
|
|
|
|
|
|
|
|
|
|
{/* KonoChan Commands */}
|
|
|
|
|
<TableRowGroup title="KonoChan Commands">
|
2025-09-27 20:15:20 +02:00
|
|
|
<TableSwitchRow
|
2025-09-27 20:22:48 +02:00
|
|
|
label="/konoself"
|
|
|
|
|
subLabel="Get random image from KonoChan (private)"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.enabledCommands?.konoself ?? true}
|
2025-09-27 20:30:21 +02:00
|
|
|
onValueChange={(v) => handleCommandToggle("konoself", v)}
|
2025-09-27 20:15:20 +02:00
|
|
|
/>
|
|
|
|
|
<TableSwitchRow
|
2025-09-27 20:22:48 +02:00
|
|
|
label="/konosend"
|
|
|
|
|
subLabel="Send random image from KonoChan to channel"
|
2025-09-27 21:22:17 +02:00
|
|
|
value={storage.enabledCommands?.konosend ?? true}
|
2025-09-27 20:30:21 +02:00
|
|
|
onValueChange={(v) => handleCommandToggle("konosend", v)}
|
2025-09-27 20:15:20 +02:00
|
|
|
/>
|
|
|
|
|
</TableRowGroup>
|
2025-09-27 20:10:37 +02:00
|
|
|
|
2025-09-27 23:19:06 +02:00
|
|
|
{/* Message Commands */}
|
|
|
|
|
<TableRowGroup title="Message Commands">
|
|
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/firstmessage"
|
|
|
|
|
subLabel="Get the first message in a channel"
|
|
|
|
|
value={storage.enabledCommands?.firstmessage ?? true}
|
|
|
|
|
onValueChange={(v) => handleCommandToggle("firstmessage", v)}
|
|
|
|
|
/>
|
|
|
|
|
</TableRowGroup>
|
|
|
|
|
|
2025-09-28 23:45:17 +02:00
|
|
|
{/* System Commands */}
|
|
|
|
|
<TableRowGroup title="System Commands">
|
|
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/sysinfo"
|
|
|
|
|
subLabel="Display system information"
|
|
|
|
|
value={storage.enabledCommands?.sysinfo ?? true}
|
|
|
|
|
onValueChange={(v) => handleCommandToggle("sysinfo", v)}
|
|
|
|
|
/>
|
|
|
|
|
</TableRowGroup>
|
|
|
|
|
|
2025-09-30 19:03:33 +02:00
|
|
|
{/* Spotify Commands */}
|
|
|
|
|
<TableRowGroup title="Spotify Commands">
|
|
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/spotify track"
|
|
|
|
|
subLabel="Share your current Spotify track"
|
|
|
|
|
value={storage.enabledCommands?.spotifyTrack ?? true}
|
|
|
|
|
onValueChange={(v) => handleCommandToggle("spotifyTrack", v)}
|
|
|
|
|
/>
|
|
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/spotify album"
|
|
|
|
|
subLabel="Share your current track's album"
|
|
|
|
|
value={storage.enabledCommands?.spotifyAlbum ?? true}
|
|
|
|
|
onValueChange={(v) => handleCommandToggle("spotifyAlbum", v)}
|
|
|
|
|
/>
|
|
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/spotify artists"
|
|
|
|
|
subLabel="Share your current track's artists"
|
|
|
|
|
value={storage.enabledCommands?.spotifyArtists ?? true}
|
|
|
|
|
onValueChange={(v) => handleCommandToggle("spotifyArtists", v)}
|
|
|
|
|
/>
|
|
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/spotify cover"
|
|
|
|
|
subLabel="Share your current track's cover"
|
|
|
|
|
value={storage.enabledCommands?.spotifyCover ?? true}
|
|
|
|
|
onValueChange={(v) => handleCommandToggle("spotifyCover", v)}
|
|
|
|
|
/>
|
2025-10-01 16:03:33 +02:00
|
|
|
</TableRowGroup>
|
|
|
|
|
|
|
|
|
|
{/* Gary Commands */}
|
|
|
|
|
<TableRowGroup title="Gary Commands">
|
|
|
|
|
<TableSwitchRow
|
|
|
|
|
label="/gary"
|
|
|
|
|
subLabel="Send random Gary images to channel"
|
|
|
|
|
value={storage.enabledCommands?.gary ?? true}
|
|
|
|
|
onValueChange={(v) => handleCommandToggle("gary", v)}
|
|
|
|
|
/>
|
2025-09-30 19:03:33 +02:00
|
|
|
</TableRowGroup>
|
2025-10-01 16:18:11 +02:00
|
|
|
</Stack>
|
|
|
|
|
|
|
|
|
|
{/* Custom Gary API Selection */}
|
|
|
|
|
<GaryAPISelection forceRerender={forceRerender} />
|
2025-09-30 19:03:33 +02:00
|
|
|
|
2025-10-01 16:18:11 +02:00
|
|
|
<RN.View style={styles.spacing} />
|
|
|
|
|
|
|
|
|
|
<Stack spacing={8}>
|
2025-09-27 21:08:38 +02:00
|
|
|
{/* Credits */}
|
|
|
|
|
<TableRowGroup title="Credits">
|
2025-09-27 21:37:28 +02:00
|
|
|
<TableRow label="Facts Commands" subLabel="by jdev082" />
|
|
|
|
|
<TableRow label="List Commands" subLabel="by Kitomanari" />
|
|
|
|
|
<TableRow label="PetPet Command" subLabel="by wolfieeee" />
|
2025-09-27 21:08:38 +02:00
|
|
|
<TableRow
|
|
|
|
|
label="KonoChan Commands"
|
|
|
|
|
subLabel="by btmc727 & Rico040"
|
|
|
|
|
/>
|
2025-09-27 23:47:29 +02:00
|
|
|
<TableRow label="FirstMessage Command" subLabel="by sapphire" />
|
2025-09-29 22:52:12 +02:00
|
|
|
<TableRow label="Sysinfo Command" subLabel="by mugman" />
|
2025-09-30 19:03:33 +02:00
|
|
|
<TableRow label="Spotify Commands" subLabel="by Kitomanari" />
|
2025-10-01 15:41:01 +02:00
|
|
|
<TableRow label="Gary Command" subLabel="by Zach Orange" />
|
2025-09-27 21:08:38 +02:00
|
|
|
</TableRowGroup>
|
|
|
|
|
|
|
|
|
|
{/* About */}
|
2025-09-27 20:15:20 +02:00
|
|
|
<TableRowGroup title="About">
|
2025-09-27 20:44:51 +02:00
|
|
|
<TableRow
|
2025-09-29 22:52:12 +02:00
|
|
|
label="Commands"
|
|
|
|
|
subLabel="A collection of commands"
|
2025-09-27 20:15:20 +02:00
|
|
|
/>
|
|
|
|
|
</TableRowGroup>
|
|
|
|
|
</Stack>
|
2025-10-01 16:18:11 +02:00
|
|
|
|
|
|
|
|
<RN.View style={styles.spacing} />
|
2025-09-27 20:15:20 +02:00
|
|
|
</ScrollView>
|
2025-10-01 16:18:11 +02:00
|
|
|
</RN.View>
|
2025-09-27 19:40:15 +02:00
|
|
|
);
|
2025-09-27 20:10:37 +02:00
|
|
|
}
|