Added command list.
This commit is contained in:
@@ -95,9 +95,9 @@ export default function Home() {
|
|||||||
<Fragment>
|
<Fragment>
|
||||||
<VStack
|
<VStack
|
||||||
bg="cyan.950"
|
bg="cyan.950"
|
||||||
minH="100vh"
|
minH="100dvh"
|
||||||
h="100%"
|
h="100%"
|
||||||
py="5vh"
|
py="5dvh"
|
||||||
minW="fit-content"
|
minW="fit-content"
|
||||||
textAlign="center"
|
textAlign="center"
|
||||||
>
|
>
|
||||||
@@ -194,7 +194,7 @@ export default function Home() {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</VStack>
|
</VStack>
|
||||||
<VStack w="95%" gap="5vh">
|
<VStack w="95%" gap="5dvh">
|
||||||
<VStack gap={1}>
|
<VStack gap={1}>
|
||||||
<Heading as="h1" fontSize="3xl">{`30 Day Stats`}</Heading>
|
<Heading as="h1" fontSize="3xl">{`30 Day Stats`}</Heading>
|
||||||
<Text textAlign="center" fontSize="sm" color="whiteAlpha.800">
|
<Text textAlign="center" fontSize="sm" color="whiteAlpha.800">
|
||||||
@@ -240,7 +240,7 @@ export default function Home() {
|
|||||||
rgb(147, 40, 142)
|
rgb(147, 40, 142)
|
||||||
)`}
|
)`}
|
||||||
w="100%"
|
w="100%"
|
||||||
py="5vh"
|
py="5dvh"
|
||||||
textAlign="center"
|
textAlign="center"
|
||||||
>
|
>
|
||||||
<VStack
|
<VStack
|
||||||
@@ -263,7 +263,7 @@ export default function Home() {
|
|||||||
minW="fit-content"
|
minW="fit-content"
|
||||||
w={{ base: "100%", sm: "auto" }}
|
w={{ base: "100%", sm: "auto" }}
|
||||||
bg="blackAlpha.600"
|
bg="blackAlpha.600"
|
||||||
maxW={{ base: "", sm: "62vw" }}
|
maxW={{ base: "", sm: "62dvw" }}
|
||||||
px={2}
|
px={2}
|
||||||
>
|
>
|
||||||
{"Down with fascism! Fuck MAGA! Fuck Trump! Fuck Nazis!"}
|
{"Down with fascism! Fuck MAGA! Fuck Trump! Fuck Nazis!"}
|
||||||
@@ -273,7 +273,7 @@ export default function Home() {
|
|||||||
minW="fit-content"
|
minW="fit-content"
|
||||||
w={{ base: "100%", sm: "auto" }}
|
w={{ base: "100%", sm: "auto" }}
|
||||||
bg="blackAlpha.600"
|
bg="blackAlpha.600"
|
||||||
maxW={{ base: "", sm: "62vw" }}
|
maxW={{ base: "", sm: "62dvw" }}
|
||||||
px={2}
|
px={2}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const LineChartComponent = ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Chart.Root maxH="xs" chart={chart} maxW="100vw">
|
<Chart.Root maxH="xs" chart={chart} maxW="100dvw">
|
||||||
<LineChart data={chart.data}>
|
<LineChart data={chart.data}>
|
||||||
<CartesianGrid stroke={chart.color("border")} vertical={false} />
|
<CartesianGrid stroke={chart.color("border")} vertical={false} />
|
||||||
<XAxis
|
<XAxis
|
||||||
|
|||||||
56
src/data/botCommands.ts
Normal file
56
src/data/botCommands.ts
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
// * Commands *
|
||||||
|
|
||||||
|
interface Commands {
|
||||||
|
command: String;
|
||||||
|
description: String;
|
||||||
|
groups: boolean;
|
||||||
|
private: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
const botInfo: Commands = {
|
||||||
|
command: "/botInfo",
|
||||||
|
description:
|
||||||
|
"Lists information about the bot such as: creator, reason for creation, purpose, etc",
|
||||||
|
groups: true,
|
||||||
|
private: true
|
||||||
|
};
|
||||||
|
|
||||||
|
const getGroupStats: Commands = {
|
||||||
|
command: "/groupStats",
|
||||||
|
description:
|
||||||
|
"Displays the number of times the bot has deleted links in your group for the lifetime of the bot",
|
||||||
|
groups: true,
|
||||||
|
private: false
|
||||||
|
};
|
||||||
|
|
||||||
|
const help: Commands = {
|
||||||
|
command: "/help",
|
||||||
|
description:
|
||||||
|
"Lists information about how to use and setup the bot and the list of available commands for the bot",
|
||||||
|
groups: true,
|
||||||
|
private: true
|
||||||
|
};
|
||||||
|
|
||||||
|
const registerGroup: Commands = {
|
||||||
|
command: "/registerGroup",
|
||||||
|
description: `Will add your group to the database, if your group doesn't exist already, to add to the "total groups" count on the bot stats website`,
|
||||||
|
groups: true,
|
||||||
|
private: true
|
||||||
|
};
|
||||||
|
|
||||||
|
const botStatsSite: Commands = {
|
||||||
|
command: "/botStats",
|
||||||
|
description: "Provides the bot stats website link as an embed",
|
||||||
|
groups: true,
|
||||||
|
private: true
|
||||||
|
};
|
||||||
|
|
||||||
|
const commands: Commands[] = [
|
||||||
|
botInfo,
|
||||||
|
getGroupStats,
|
||||||
|
help,
|
||||||
|
registerGroup,
|
||||||
|
botStatsSite
|
||||||
|
];
|
||||||
|
|
||||||
|
export default commands;
|
||||||
Reference in New Issue
Block a user