mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 22:24:58 +05:00
fixes for birthdays
This commit is contained in:
parent
7c7931c7f8
commit
1d2a1d488f
7 changed files with 32 additions and 0 deletions
|
@ -53,6 +53,9 @@ class Configuration extends Command {
|
||||||
message.translate("administration/configuration:MODLOGS", {
|
message.translate("administration/configuration:MODLOGS", {
|
||||||
channel: guildData.plugins.modlogs ? `<#${guildData.plugins.modlogs}>` : message.translate("common:NOT_DEFINED")
|
channel: guildData.plugins.modlogs ? `<#${guildData.plugins.modlogs}>` : message.translate("common:NOT_DEFINED")
|
||||||
}) + "\n" +
|
}) + "\n" +
|
||||||
|
message.translate("administration/configuration:BIRTHDAYS", {
|
||||||
|
channel: guildData.plugins.birthdays ? `<#${guildData.plugins.birthdays}>` : message.translate("common:NOT_DEFINED")
|
||||||
|
}) + "\n" +
|
||||||
message.translate("administration/configuration:FORTNITESHOP", {
|
message.translate("administration/configuration:FORTNITESHOP", {
|
||||||
channel: guildData.plugins.fortniteshop ? `<#${guildData.plugins.fortniteshop}>` : message.translate("common:NOT_DEFINED")
|
channel: guildData.plugins.fortniteshop ? `<#${guildData.plugins.fortniteshop}>` : message.translate("common:NOT_DEFINED")
|
||||||
}) + "\n" +
|
}) + "\n" +
|
||||||
|
|
|
@ -149,6 +149,24 @@
|
||||||
<% } %>
|
<% } %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label><%= translate("common:BIRTHDAYS") %></label>
|
||||||
|
<select class="form-control" name="birthdays">
|
||||||
|
<% if(guild.plugins.birthdays && bot.channels.cache.has(guild.plugins.birthdays)) { %>
|
||||||
|
<option selected="selected">
|
||||||
|
#<%= bot.channels.cache.get(guild.plugins.birthdays).name %></option>
|
||||||
|
<% guild.channels.cache.filter((ch) => ch.type === "text" && ch.id !== guild.plugins.birthdays).forEach((ch) => { %>
|
||||||
|
<option>#<%= ch.name %></option>
|
||||||
|
<% }); %>
|
||||||
|
<option><%= translate("common:NO_CHANNEL") %></option>
|
||||||
|
<% } else { %>
|
||||||
|
<option selected="selected"><%= translate("common:NO_CHANNEL") %></option>
|
||||||
|
<% guild.channels.cache.filter((ch) => ch.type === "text").forEach((ch) => { %>
|
||||||
|
<option>#<%= ch.name %></option>
|
||||||
|
<% }); %>
|
||||||
|
<% } %>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><%= translate("common:FORTNITESHOP") %></label>
|
<label><%= translate("common:FORTNITESHOP") %></label>
|
||||||
<select class="form-control" name="fortniteshop">
|
<select class="form-control" name="fortniteshop">
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
"GOODBYE_DISABLED": "Goodbye messages disabled.",
|
"GOODBYE_DISABLED": "Goodbye messages disabled.",
|
||||||
"SPECIAL_CHANNELS": "Special channels",
|
"SPECIAL_CHANNELS": "Special channels",
|
||||||
"MODLOGS": "Moderation logs: *{{channel}}*",
|
"MODLOGS": "Moderation logs: *{{channel}}*",
|
||||||
|
"BIRTHDAYS": "Birthdays announcements: *{{channel}}*",
|
||||||
"FORTNITESHOP": "Fortnite daily shop: *{{channel}}*",
|
"FORTNITESHOP": "Fortnite daily shop: *{{channel}}*",
|
||||||
"SUGGESTIONS": "Suggestions: *{{channel}}*",
|
"SUGGESTIONS": "Suggestions: *{{channel}}*",
|
||||||
"REPORTS": "Reports: *{{channel}}*",
|
"REPORTS": "Reports: *{{channel}}*",
|
||||||
|
|
7
languages/en-US/administration/setbirthdays.json
Normal file
7
languages/en-US/administration/setbirthdays.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"DESCRIPTION": "Set the birthdays announcements channel!",
|
||||||
|
"USAGE": "{{prefix}}setbirthdays (#channel)",
|
||||||
|
"EXAMPLES": "{{prefix}}setbirthdays #birthdays\n{{prefix}}setbirthdays",
|
||||||
|
"SUCCESS_ENABLED": "Birthdays announcements will be sent in **{{channel}}**!",
|
||||||
|
"SUCCESS_DISABLED": "Birthdays announcements disabled!"
|
||||||
|
}
|
|
@ -59,5 +59,6 @@
|
||||||
"FORTNITESHOP": "Fortnite shop",
|
"FORTNITESHOP": "Fortnite shop",
|
||||||
"NO_CHANNEL": "No channel",
|
"NO_CHANNEL": "No channel",
|
||||||
"REPORTS": "Reports",
|
"REPORTS": "Reports",
|
||||||
|
"BIRTHDAYS": "Birthdays",
|
||||||
"DISCONNECT": "Disconnect"
|
"DISCONNECT": "Disconnect"
|
||||||
}
|
}
|
|
@ -16,6 +16,7 @@
|
||||||
"GOODBYE_DISABLED": "Прощальные сообщения отключены.",
|
"GOODBYE_DISABLED": "Прощальные сообщения отключены.",
|
||||||
"SPECIAL_CHANNELS": "Специальные каналы",
|
"SPECIAL_CHANNELS": "Специальные каналы",
|
||||||
"MODLOGS": "Логи модерации: *{{channel}}*",
|
"MODLOGS": "Логи модерации: *{{channel}}*",
|
||||||
|
"BIRTHDAYS": "Поздравления с днём рождения: *{{channel}}*",
|
||||||
"FORTNITESHOP": "Ежедневный магазин Fortnite: *{{channel}}*",
|
"FORTNITESHOP": "Ежедневный магазин Fortnite: *{{channel}}*",
|
||||||
"SUGGESTIONS": "Предложения: *{{channel}}*",
|
"SUGGESTIONS": "Предложения: *{{channel}}*",
|
||||||
"REPORTS": "Жалобы: *{{channel}}*",
|
"REPORTS": "Жалобы: *{{channel}}*",
|
||||||
|
|
|
@ -59,5 +59,6 @@
|
||||||
"FORTNITESHOP": "Магазин Fortnite",
|
"FORTNITESHOP": "Магазин Fortnite",
|
||||||
"NO_CHANNEL": "Канал не выбран",
|
"NO_CHANNEL": "Канал не выбран",
|
||||||
"REPORTS": "Жалобы",
|
"REPORTS": "Жалобы",
|
||||||
|
"BIRTHDAYS": "Поздравления с днём рождения",
|
||||||
"DISCONNECT": "Отключить"
|
"DISCONNECT": "Отключить"
|
||||||
}
|
}
|
Loading…
Reference in a new issue