Отправлять пользователю сообщени о разводе в лс
This commit is contained in:
JonnyBro 2022-01-09 15:28:51 +05:00
parent 4d8749fa5c
commit c1c71d5146
4 changed files with 14 additions and 2 deletions

View file

@ -33,6 +33,11 @@ class Divorce extends Command {
message.success("economy/divorce:DIVORCED", { message.success("economy/divorce:DIVORCED", {
username: user.username username: user.username
}); });
user.send({
content: message.translate("economy/divorce:DIVORCED_U", {
username: message.author.username
})
});
} }
}; };

View file

@ -193,6 +193,12 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<pre class="brush: html"> <pre class="brush: html">
-----------------------------------------------------------------------------------------
JaBa v3.2.4
-----------------------------------------------------------------------------------------
Добавлено
- Теперь при разводе (divorce) ползователь получает сообщение о разводе в ЛС.
----------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------
JaBa v3.2.3 JaBa v3.2.3
----------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------

View file

@ -3,5 +3,6 @@
"USAGE": "{{prefix}}divorce", "USAGE": "{{prefix}}divorce",
"EXAMPLES": "{{prefix}}divorce", "EXAMPLES": "{{prefix}}divorce",
"NOT_MARRIED": "Вы не состоите в браке!", "NOT_MARRIED": "Вы не состоите в браке!",
"DIVORCED": "Вы развелись с **{{username}}**!" "DIVORCED": "Вы развелись с **{{username}}**!",
"DIVORCED_U": "**{{username}}** развёлся с вами!"
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "jaba", "name": "jaba",
"version": "3.2.3", "version": "3.2.4",
"description": "A very complete Discord bot (more than 100 commands) that uses the Discord.js", "description": "A very complete Discord bot (more than 100 commands) that uses the Discord.js",
"main": "index.js", "main": "index.js",
"private": true, "private": true,