-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a welcome message when join to guild. Fixed bug in /setprefix, when value output is interpolated. Fixed bug when song history is not deleted when bot leaves the guild/server. Fixed minor localization bugs.
- Loading branch information
1 parent
8183b69
commit f7152a1
Showing
13 changed files
with
80 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
src/locales/en/commandshandlers.json → src/locales/en/commandsHandlers.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"title": "Hello everyone!", | ||
"row_1": "My main purpose is alcotest, to check yourself write /alcotest", | ||
"row_2": "All jokes aside, I'm an advanced music bot that can play music from almost anywhere.", | ||
"row_3": "Write /play (slash command) or {{prefix}}play (text command) to begin **magic**", | ||
"row_4": "If you have any questions, write /help" | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"title": "Всем привет!", | ||
"row_1": "Моя основная функция это алкотест, чтобы проверить себя напишите /alcotest", | ||
"row_2": "А если отбросить шутки, то я продвинутый музыкальный бот который умеет играть музыку почти откуда угодно", | ||
"row_3": "Напиши /play (слеш команда) или {{prefix}}play (текстовая команда) чтобы началась **магия**", | ||
"row_4": "Если у тебя есть вопросы, то напиши /help" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Colors, EmbedBuilder } from 'discord.js'; | ||
import { ENV } from '../EnvironmentVariables.js'; | ||
import i18next from 'i18next'; | ||
|
||
export function generateNewGuildEmbed(): EmbedBuilder { | ||
return new EmbedBuilder() | ||
.setTitle(i18next.t('welcomeMessage:title')) | ||
.setDescription( | ||
i18next.t('welcomeMessage:row_1') + | ||
'\n\n' + | ||
i18next.t('welcomeMessage:row_2') + | ||
'\n\n' + | ||
i18next.t('welcomeMessage:row_3', { | ||
prefix: ENV.BOT_COMMAND_PREFIX, | ||
interpolation: { escapeValue: false } | ||
}) + | ||
'\n\n' + | ||
i18next.t('welcomeMessage:row_4') | ||
) | ||
.setColor(Colors.Yellow) | ||
.setImage( | ||
'https://github.com/AlexInCube/AlCoTest/blob/master/icons/repository-social.png?raw=true' | ||
); | ||
} |