generated from nhcarrigan/template
@@ -14,16 +14,15 @@ import {
|
|||||||
ActionRowBuilder,
|
ActionRowBuilder,
|
||||||
} from "discord.js";
|
} from "discord.js";
|
||||||
|
|
||||||
|
|
||||||
export const blocks = [
|
export const blocks = [
|
||||||
new ContainerBuilder().
|
new ContainerBuilder().
|
||||||
addTextDisplayComponents(
|
addTextDisplayComponents(
|
||||||
new TextDisplayBuilder().setContent("# About Lynira"),
|
new TextDisplayBuilder().setContent("# About Altaria"),
|
||||||
).
|
).
|
||||||
addTextDisplayComponents(
|
addTextDisplayComponents(
|
||||||
new TextDisplayBuilder().setContent(
|
new TextDisplayBuilder().setContent(
|
||||||
// eslint-disable-next-line stylistic/max-len -- Big boi string.
|
// eslint-disable-next-line stylistic/max-len -- Big boi string.
|
||||||
"Hi there~! I am Lynira, a bot that allows you to create and delete short URLs. Links will be available under the `lynira.link` domain.",
|
"Hi there~! I am Altaria, a bot that reminds your community members to include alt text in their images!",
|
||||||
),
|
),
|
||||||
).
|
).
|
||||||
addSeparatorComponents(
|
addSeparatorComponents(
|
||||||
@@ -37,7 +36,7 @@ export const blocks = [
|
|||||||
addTextDisplayComponents(
|
addTextDisplayComponents(
|
||||||
new TextDisplayBuilder().setContent(
|
new TextDisplayBuilder().setContent(
|
||||||
// eslint-disable-next-line stylistic/max-len -- Big boi string.
|
// eslint-disable-next-line stylistic/max-len -- Big boi string.
|
||||||
"To get started, you will need to subscribe to our service. We offer four tiers, each with different limits on the number of short URLs you can create. Once you have subscribed, you can use `/add`, `/delete`, and `/list` to manage your short URLs.",
|
"Super-duper simple! All you need to do is add me to your community, and ensure I can both see and send messages in whichever channels you want me to help out in! I will take care of the rest~",
|
||||||
),
|
),
|
||||||
).
|
).
|
||||||
addSeparatorComponents(
|
addSeparatorComponents(
|
||||||
|
|||||||
+9
-3
@@ -19,7 +19,10 @@ const client = new Client({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.once(Events.ClientReady, () => {
|
client.once(Events.ClientReady, () => {
|
||||||
void logger.log("info", `Logged in as ${client.user?.username ?? "unknown user"}`);
|
void logger.log(
|
||||||
|
"info",
|
||||||
|
`Logged in as ${client.user?.username ?? "unknown user"}`,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on(Events.MessageCreate, (message) => {
|
client.on(Events.MessageCreate, (message) => {
|
||||||
@@ -30,8 +33,11 @@ client.on(Events.InteractionCreate, (interaction) => {
|
|||||||
if (!interaction.isChatInputCommand()) {
|
if (!interaction.isChatInputCommand()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
void interaction.reply({ components: blocks, flags: MessageFlags.IsComponentsV2 });
|
void interaction.reply({
|
||||||
})
|
components: blocks,
|
||||||
|
flags: MessageFlags.IsComponentsV2,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
await client.login(process.env.BOT_TOKEN);
|
await client.login(process.env.BOT_TOKEN);
|
||||||
instantiateServer();
|
instantiateServer();
|
||||||
|
|||||||
Reference in New Issue
Block a user