xyter/src/commands/utilities/modules/about.ts
2022-04-10 15:55:47 +00:00

26 lines
949 B
TypeScript

// Dependencies
import { CommandInteraction, ColorResolvable } from "discord.js";
// Configurations
import config from "../../../../config.json";
// Function
export default async (interaction: CommandInteraction) => {
const interactionEmbed = {
title: ":hammer: Utilities [About]" as string,
description: `This bot is hosted by ${
config?.hoster?.url
? `[${config?.hoster?.name}](${config?.hoster?.url})`
: `${config?.hoster?.name}`
}, the bot is developed by [Zyner](https://github.com/ZynerOrg)!
If you are interested in contributing, then just [fork it](https://github.com/ZynerOrg/xyter) yourself, we :heart: Open Source.` as string,
color: config?.colors?.success as ColorResolvable,
timestamp: new Date() as Date,
footer: {
iconURL: config?.footer?.icon as string,
text: config?.footer?.text as string,
},
};
interaction?.editReply({ embeds: [interactionEmbed] });
};