generated from nhcarrigan/template
feat: add an about command (#2)
Some checks failed
Node.js CI / Lint and Test (push) Has been cancelled
Some checks failed
Node.js CI / Lint and Test (push) Has been cancelled
### Explanation _No response_ ### Issue _No response_ ### Attestations - [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/) - [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/). - [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/). ### Dependencies - [x] I have pinned the dependencies to a specific patch version. ### Style - [x] I have run the linter and resolved any errors. - [x] My pull request uses an appropriate title, matching the conventional commit standards. - [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request. ### Tests - [ ] My contribution adds new code, and I have added tests to cover it. - [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes. - [x] All new and existing tests pass locally with my changes. - [x] Code coverage remains at or above the configured threshold. ### Documentation _No response_ ### Versioning Minor - My pull request introduces a new non-breaking feature. Reviewed-on: #2 Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com> Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
87
src/commands/about.ts
Normal file
87
src/commands/about.ts
Normal file
@ -0,0 +1,87 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import {
|
||||
ApplicationIntegrationType,
|
||||
SlashCommandBuilder,
|
||||
InteractionContextType,
|
||||
Locale,
|
||||
} from "discord.js";
|
||||
|
||||
const command = new SlashCommandBuilder().
|
||||
setContexts(
|
||||
InteractionContextType.BotDM,
|
||||
InteractionContextType.Guild,
|
||||
InteractionContextType.PrivateChannel,
|
||||
).
|
||||
setIntegrationTypes(ApplicationIntegrationType.UserInstall).
|
||||
setName("about").
|
||||
setNameLocalizations({
|
||||
[Locale.Indonesian]: "tentang",
|
||||
[Locale.EnglishGB]: "about",
|
||||
[Locale.EnglishUS]: "about",
|
||||
[Locale.Bulgarian]: "за",
|
||||
[Locale.ChineseCN]: "关于",
|
||||
[Locale.ChineseTW]: "關於",
|
||||
[Locale.Czech]: "o-aplikaci",
|
||||
[Locale.Danish]: "om",
|
||||
[Locale.Dutch]: "over",
|
||||
[Locale.Finnish]: "tietoja",
|
||||
[Locale.French]: "à-propos",
|
||||
[Locale.German]: "über",
|
||||
[Locale.Greek]: "σχετικά-με",
|
||||
[Locale.Hindi]: "के-बारे-में",
|
||||
[Locale.Hungarian]: "rólunk",
|
||||
[Locale.Italian]: "informazioni",
|
||||
[Locale.Japanese]: "約",
|
||||
[Locale.Korean]: "약",
|
||||
[Locale.Lithuanian]: "apie",
|
||||
[Locale.Polish]: "o-nas",
|
||||
[Locale.PortugueseBR]: "sobre",
|
||||
[Locale.Romanian]: "despre",
|
||||
[Locale.Russian]: "о",
|
||||
[Locale.SpanishES]: "acerca-de",
|
||||
[Locale.SpanishLATAM]: "acerca-de",
|
||||
[Locale.Swedish]: "om",
|
||||
[Locale.Thai]: "เกี่ยวกับ",
|
||||
[Locale.Turkish]: "hakkında",
|
||||
[Locale.Ukrainian]: "про",
|
||||
}).
|
||||
setDescription("Learn more about this bot!").
|
||||
setDescriptionLocalizations({
|
||||
[Locale.Indonesian]: "Pelajari lebih lanjut tentang bot ini!",
|
||||
[Locale.EnglishGB]: "Learn more about this bot!",
|
||||
[Locale.EnglishUS]: "Learn more about this bot!",
|
||||
[Locale.Bulgarian]: "Научете повече за този бот!",
|
||||
[Locale.ChineseCN]: "了解有关此机器人的更多信息!",
|
||||
[Locale.ChineseTW]: "了解有關此機器人的更多信息!",
|
||||
[Locale.Czech]: "Dozvědět se více o tomto botovi!",
|
||||
[Locale.Danish]: "Lær mere om denne bot!",
|
||||
[Locale.Dutch]: "Leer meer over deze bot!",
|
||||
[Locale.Finnish]: "Lisätietoja tästä botista!",
|
||||
[Locale.French]: "En savoir plus sur ce bot!",
|
||||
[Locale.German]: "Erfahren Sie mehr über diesen Bot!",
|
||||
[Locale.Greek]: "Μάθετε περισσότερα για αυτό το bot!",
|
||||
[Locale.Hindi]: "इस बॉट के बारे में और अधिक जानें!",
|
||||
[Locale.Hungarian]: "Tudj meg többet erről a botról!",
|
||||
[Locale.Italian]: "Scopri di più su questo bot!",
|
||||
[Locale.Japanese]: "このボットについてもっと詳しく知る!",
|
||||
[Locale.Korean]: "이 봇에 대해 더 알아보기!",
|
||||
[Locale.Lithuanian]: "Sužinokite daugiau apie šį botą!",
|
||||
[Locale.Polish]: "Dowiedz się więcej o tym bocie!",
|
||||
[Locale.PortugueseBR]: "Saiba mais sobre este bot!",
|
||||
[Locale.Romanian]: "Aflați mai multe despre acest bot!",
|
||||
[Locale.Russian]: "Узнайте больше об этом боте!",
|
||||
[Locale.SpanishES]: "¡Obtén más información sobre este bot!",
|
||||
[Locale.SpanishLATAM]: "¡Obtén más información sobre este bot!",
|
||||
[Locale.Swedish]: "Lär dig mer om denna bot!",
|
||||
[Locale.Thai]: "เรียนรู้เพิ่มเติมเกี่ยวกับบอตนี้!",
|
||||
[Locale.Turkish]: "Bu bot hakkında daha fazla bilgi edinin!",
|
||||
[Locale.Ukrainian]: "Дізнайтеся більше про цього бота!",
|
||||
});
|
||||
|
||||
// eslint-disable-next-line no-console -- We don't need our logger here as this never runs in production.
|
||||
console.log(JSON.stringify(command.toJSON()));
|
Reference in New Issue
Block a user