Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFerryn committed Jun 19, 2021
2 parents 296bbae + 7bb0d3e commit bef9de0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/commands/economy/FishCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class FishCommand extends FlameCommand {
const data = await message.client.database.collection('guildusers').findOne({ guildID: message.guild.id, userID: message.author.id });

const transport = guild.transport?.find((t) => t.requiredFor === this.name);
if (transport && !data.ownedTransport.includes(transport.key)) return message.fail(`Для выполнения данного действия вам необходимо иметь транспорт "**${transport.name}**".`);
if (transport && !data.ownedTransport?.includes(transport.key)) return message.fail(`Для выполнения данного действия вам необходимо иметь транспорт "**${transport.name}**".`);
if (!data.ownedRods?.length) return message.fail('Похоже, пока что вы не имеете ни одной доступной удочки.');

let rod = args[0];
Expand Down
2 changes: 1 addition & 1 deletion src/commands/economy/MineCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MineCommand extends FlameCommand {
const data = await message.client.database.collection('guildusers').findOne({ guildID: message.guild.id, userID: message.author.id });

const transport = guild.transport?.find((t) => t.requiredFor === this.name);
if (transport && !data.ownedTransport.includes(transport.key)) return message.fail(`Для выполнения данного действия вам необходимо иметь транспорт "**${transport.name}**".`);
if (transport && !data.ownedTransport?.includes(transport.key)) return message.fail(`Для выполнения данного действия вам необходимо иметь транспорт "**${transport.name}**".`);
if (!data.ownedPickaxes?.length) return message.fail('Похоже, пока что вы не имеете ни одной доступной кирки.');

let pickaxe = args[0];
Expand Down
2 changes: 1 addition & 1 deletion src/commands/general/WarnsCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class WarnsCommand extends FlameCommand {
else {
embed.setThumbnail(message.guild.iconURL());
for (const warn of warns.slice(-10)) {
embed.addField(`\`Предупреждение #${warn.id}\`: ${new Date(warn.time).toISOString().replace('T', ' ').substr(0, 19)} (${warn.moderator})`, `**Причина:** ${warn.reason.slice(0, 999) || 'Причина не указана.'}`);
embed.addField(`\`Предупреждение #${warn.id}\`: ${new Date(warn.time).toISOString().replace('T', ' ').substr(0, 19)} (${warn.moderator})`, `**Причина:** ${warn.reason?.slice(0, 999) ?? 'Причина не указана.'}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const client = new FlameClient({
ws: {
intents: Intents.ALL,
},
disableMentions: 'all',
disableMentions: 'everyone',
});

// eslint-disable-next-line no-console,no-underscore-dangle
Expand Down
3 changes: 1 addition & 2 deletions src/listeners/ReadyListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const ReminderManager = require('../managers/ReminderManager');
const StatisticsSenderService = require('../services/StatisticsSenderService');
const Logger = require('../utils/misc/Logger');


class ReadyListener extends FlameListener {
constructor() {
super('ReadyListener', { event: 'ready' });
Expand All @@ -27,7 +26,7 @@ class ReadyListener extends FlameListener {
cooldowns.forEach((cooldown) => new CooldownManager(client).handle(cooldown));
reminders.forEach((reminder) => new ReminderManager(client).handle(reminder));

// new StatisticsSenderService(client).init();
new StatisticsSenderService(client).init();

await client.user.setActivity('https://flamebot.ru', { type: 3 });
return Logger.info(
Expand Down

0 comments on commit bef9de0

Please sign in to comment.