/[sudobot]/trunk/src/commands/settings/AboutCommand.ts
ViewVC logotype

Annotation of /trunk/src/commands/settings/AboutCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 70 - (hide annotations)
Mon Jul 29 17:28:28 2024 UTC (8 months, 1 week ago) by rakin
File MIME type: application/typescript
File size: 1299 byte(s)
Bump version number
1 rakin 51 import { CommandInteraction, GuildMember, Interaction, Message } from 'discord.js';
2     import BaseCommand from '../../utils/structures/BaseCommand';
3     import DiscordClient from '../../client/Client';
4     import CommandOptions from '../../types/CommandOptions';
5     import InteractionOptions from '../../types/InteractionOptions';
6     import MessageEmbed from '../../client/MessageEmbed';
7    
8     export default class AboutCommand extends BaseCommand {
9     supportsInteractions: boolean = true;
10 rakin 70 version: string;
11 rakin 51
12     constructor() {
13     super('about', 'settings', []);
14 rakin 70 const { version } = require('../../../package.json');
15     this.version = version;
16 rakin 51 }
17    
18     async run(client: DiscordClient, message: Message | CommandInteraction, options: CommandOptions | InteractionOptions) {
19     await message.reply({
20     embeds: [
21     new MessageEmbed()
22     .setTitle('SudoBot')
23     .setDescription('A free and open source discord moderation bot, specially created for **The Everything Server**.')
24 rakin 70 .addField('Version', this.version)
25 rakin 51 .addField('Support', '[email protected]')
26     .setFooter({
27     text: 'Copyright © Ar Rakin 2022, all rights reserved'
28     })
29     ]
30     });
31     }
32     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26