This commit is contained in:
Erik 2022-05-06 18:41:50 +03:00
parent 228d5d8dc6
commit 113190aceb
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
3 changed files with 7 additions and 6 deletions

View File

@ -47,7 +47,7 @@ class Logger {
this.shardingManager
.on('shardCreate', (shard) => {
this.write('debug', "Shard created.", shard);
this.write('info', "Shard created.", shard);
});
}

View File

@ -102,14 +102,15 @@ class InvokerWrapper {
const data = {
content: str,
files: opts.files,
embeds: opts.embed ? [opts.embed] : [],
embeds: opts.embed ? [opts.embed] : opts.embeds || [],
disableMentions: opts.disableMentions
};
if (opts.editReply) await this.editReply(data);
else await this.channel.send(data).then((msg) => {
if (opts.delete) msg.delete();
});
else await this.reply(data) //this.channel.send(data)
.then((msg) => {
if (opts.delete) msg.delete();
});
return this.channel.awaitMessages({
filter: (m) => m.author.id === this.user.id, max: 1, time: opts.time * 1000 || 30_000, errors: ['time']

View File

@ -6,7 +6,7 @@ class WordWatcher extends FilterSetting {
constructor(client) {
super(client, {
name: 'wordwatcher',
description: 'Flag messages for potentially offensive content, useful when you don\'t want to outright filter out messages',
description: 'Flag messages for potentially offensive content instead of deleting automatically',
module: 'moderation',
default: {
channel: null,