1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-01-08 04:17:54 -05:00

Add LFG channel cleaning and @mention command

This commit is contained in:
Ean Milligan (Bastion)
2023-04-21 02:27:29 -04:00
parent 00a98db405
commit 4011cf74d6
4 changed files with 38 additions and 14 deletions

View File

@ -1,6 +1,6 @@
import config from '../../config.ts';
import { ApplicationCommandTypes, Bot, Interaction, InteractionResponseTypes } from '../../deps.ts';
import { infoColor2, isLFGChannel } from '../commandUtils.ts';
import { infoEmbed, isLFGChannel } from '../commandUtils.ts';
import { dbClient, queries } from '../db.ts';
import { CommandDetails } from '../types/commandTypes.ts';
import utils from '../utils.ts';
@ -20,18 +20,7 @@ const execute = (bot: Bot, interaction: Interaction) => {
type: InteractionResponseTypes.ChannelMessageWithSource,
data: {
flags: isLFGChannel(interaction.guildId || 0n, interaction.channelId || 0n),
embeds: [{
color: infoColor2,
title: `${config.name}, the LFG bot`,
description: `${config.name} is developed by Ean AKA Burn_E99.
Want to check out my source code? Check it out [here](${config.links.sourceCode}).
Need help with this bot? Join my support server [here](${config.links.supportServer}).
Ran into a bug? Report it to my developers using \`/report [issue description]\`.`,
footer: {
text: `Current Version: ${config.version}`,
},
}],
embeds: [infoEmbed],
},
},
).catch((e: Error) => utils.commonLoggers.interactionSendError('info.ts', interaction, e));