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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 51 by rakin, Mon Jul 29 17:28:23 2024 UTC revision 70 by rakin, Mon Jul 29 17:28:28 2024 UTC
# Line 4  import DiscordClient from '../../client/ Line 4  import DiscordClient from '../../client/
4  import CommandOptions from '../../types/CommandOptions';  import CommandOptions from '../../types/CommandOptions';
5  import InteractionOptions from '../../types/InteractionOptions';  import InteractionOptions from '../../types/InteractionOptions';
6  import MessageEmbed from '../../client/MessageEmbed';  import MessageEmbed from '../../client/MessageEmbed';
 import Help from '../../utils/help';  
7    
8  export default class AboutCommand extends BaseCommand {  export default class AboutCommand extends BaseCommand {
9      supportsInteractions: boolean = true;      supportsInteractions: boolean = true;
10        version: string;
11    
12      constructor() {      constructor() {
13          super('about', 'settings', []);          super('about', 'settings', []);
14            const { version } = require('../../../package.json');
15            this.version = version;
16      }      }
17    
18      async run(client: DiscordClient, message: Message | CommandInteraction, options: CommandOptions | InteractionOptions) {      async run(client: DiscordClient, message: Message | CommandInteraction, options: CommandOptions | InteractionOptions) {
# Line 19  export default class AboutCommand extend Line 21  export default class AboutCommand extend
21                  new MessageEmbed()                  new MessageEmbed()
22                  .setTitle('SudoBot')                  .setTitle('SudoBot')
23                  .setDescription('A free and open source discord moderation bot, specially created for **The Everything Server**.')                  .setDescription('A free and open source discord moderation bot, specially created for **The Everything Server**.')
24                  .addField('Version', Help.version)                  .addField('Version', this.version)
25                  .addField('Support', '[email protected]')                  .addField('Support', '[email protected]')
26                  .setFooter({                  .setFooter({
27                      text: 'Copyright © Ar Rakin 2022, all rights reserved'                      text: 'Copyright © Ar Rakin 2022, all rights reserved'

Legend:
Removed from v.51  
changed lines
  Added in v.70

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26