mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
don't need to check twice
This commit is contained in:
parent
74e97e9ccc
commit
d57cc7145d
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ module.exports.init = async client => {
|
|||
const guildData = await client.getGuildData(guild.id);
|
||||
const channel = guildData.plugins.birthdays ? await client.channels.fetch(guildData.plugins.birthdays) : null;
|
||||
|
||||
if (guildData.plugins.birthdays && channel) {
|
||||
if (channel) {
|
||||
const date = new Date(),
|
||||
currentDay = date.getDate(),
|
||||
currentMonth = date.getMonth() + 1,
|
||||
|
@ -70,7 +70,7 @@ module.exports.run = async client => {
|
|||
const guildData = await client.getGuildData(guild.id);
|
||||
const channel = guildData.plugins.birthdays ? await client.channels.fetch(guildData.plugins.birthdays) : null;
|
||||
|
||||
if (guildData.plugins.birthdays && channel) {
|
||||
if (channel) {
|
||||
const date = new Date(),
|
||||
currentDay = date.getDate(),
|
||||
currentMonth = date.getMonth() + 1,
|
||||
|
|
Loading…
Reference in a new issue