mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
🤷
This commit is contained in:
parent
2ed1602c09
commit
fb4fe700a6
2 changed files with 4 additions and 5 deletions
|
@ -55,7 +55,6 @@ class Checkjar extends BaseCommand {
|
|||
jarTransactions.length = 10;
|
||||
|
||||
jarTransactions.forEach(t => {
|
||||
// TODO
|
||||
const time = moment.unix(t.time);
|
||||
|
||||
embed.data.fields.push([
|
||||
|
|
|
@ -9,8 +9,8 @@ module.exports.init = async client => {
|
|||
client.guilds.cache.forEach(async guild => {
|
||||
const guildData = await client.findOrCreateGuild(guild.id);
|
||||
|
||||
if (guildData.plugins.birthdays) {
|
||||
const channel = await guild.channels.fetch(guildData.plugins.birthdays),
|
||||
if (guildData.plugins.birthdays && client.channels.cache.get(guildData.plugins.birthdays)) {
|
||||
const channel = client.channels.cache.get(guildData.plugins.birthdays),
|
||||
date = new Date(),
|
||||
currentDay = date.getDate(),
|
||||
currentMonth = date.getMonth() + 1,
|
||||
|
@ -67,8 +67,8 @@ module.exports.run = async client => {
|
|||
client.guilds.cache.forEach(async guild => {
|
||||
const guildData = await client.findOrCreateGuild(guild.id);
|
||||
|
||||
if (guildData.plugins.birthdays) {
|
||||
const channel = await guild.channels.fetch(guildData.plugins.birthdays),
|
||||
if (guildData.plugins.birthdays && client.channels.cache.get(guildData.plugins.birthdays)) {
|
||||
const channel = client.channels.cache.get(guildData.plugins.birthdays),
|
||||
date = new Date(),
|
||||
currentDay = date.getDate(),
|
||||
currentMonth = date.getMonth() + 1,
|
||||
|
|
Loading…
Reference in a new issue