diff --git a/base/Guild.js b/base/Guild.js index 5a93cd5f..88c4b90f 100644 --- a/base/Guild.js +++ b/base/Guild.js @@ -1,6 +1,6 @@ const mongoose = require("mongoose"), Schema = mongoose.Schema, - config = require("../config.js"), + config = require("../config"), languages = require("../languages/language-meta.json"); module.exports = mongoose.model("Guild", new Schema({ diff --git a/commands/Administration/addcommand.js b/commands/Administration/addcommand.js index 682aab9a..82b71c06 100644 --- a/commands/Administration/addcommand.js +++ b/commands/Administration/addcommand.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Addcommand extends Command { constructor(client) { diff --git a/commands/Administration/addemoji.js b/commands/Administration/addemoji.js index 1e92c0a8..c3bc6f2f 100644 --- a/commands/Administration/addemoji.js +++ b/commands/Administration/addemoji.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Addemoji extends Command { constructor(client) { diff --git a/commands/Administration/automod.js b/commands/Administration/automod.js index 38ea0114..c19365bd 100644 --- a/commands/Administration/automod.js +++ b/commands/Administration/automod.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Automod extends Command { constructor(client) { diff --git a/commands/Administration/autorole.js b/commands/Administration/autorole.js index 53b2ef19..234d4d42 100644 --- a/commands/Administration/autorole.js +++ b/commands/Administration/autorole.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Resolvers = require("../../helpers/resolvers"); class Autorole extends Command { diff --git a/commands/Administration/backup.js b/commands/Administration/backup.js index ed27c3b2..0e0ae173 100644 --- a/commands/Administration/backup.js +++ b/commands/Administration/backup.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), backup = require("discord-backup"); diff --git a/commands/Administration/configuration.js b/commands/Administration/configuration.js index 98209cf9..db077647 100644 --- a/commands/Administration/configuration.js +++ b/commands/Administration/configuration.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Configuration extends Command { diff --git a/commands/Administration/delcommand.js b/commands/Administration/delcommand.js index 04f8cae9..183a3427 100644 --- a/commands/Administration/delcommand.js +++ b/commands/Administration/delcommand.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Delcommand extends Command { constructor(client) { diff --git a/commands/Administration/deletemod.js b/commands/Administration/deletemod.js index cbf1262a..ce4c9500 100644 --- a/commands/Administration/deletemod.js +++ b/commands/Administration/deletemod.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Deletemod extends Command { constructor(client) { diff --git a/commands/Administration/goodbye.js b/commands/Administration/goodbye.js index e054e346..ce514587 100644 --- a/commands/Administration/goodbye.js +++ b/commands/Administration/goodbye.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Resolvers = require("../../helpers/resolvers"); class Goodbye extends Command { diff --git a/commands/Administration/ignore.js b/commands/Administration/ignore.js index a66b4ba2..23070a0d 100644 --- a/commands/Administration/ignore.js +++ b/commands/Administration/ignore.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Ignore extends Command { constructor(client) { diff --git a/commands/Administration/set.js b/commands/Administration/set.js index 52e3458a..013784b5 100644 --- a/commands/Administration/set.js +++ b/commands/Administration/set.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Set extends Command { constructor(client) { diff --git a/commands/Administration/setbirthdays.js b/commands/Administration/setbirthdays.js index 17dd45bd..daf55a00 100644 --- a/commands/Administration/setbirthdays.js +++ b/commands/Administration/setbirthdays.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Resolvers = require("../../helpers/resolvers"); class Setbirthdays extends Command { diff --git a/commands/Administration/setlang.js b/commands/Administration/setlang.js index 6fdb8178..d31c3cf4 100644 --- a/commands/Administration/setlang.js +++ b/commands/Administration/setlang.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Setlang extends Command { constructor(client) { diff --git a/commands/Administration/setmodlogs.js b/commands/Administration/setmodlogs.js index f97090c1..3cd7f371 100644 --- a/commands/Administration/setmodlogs.js +++ b/commands/Administration/setmodlogs.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Resolvers = require("../../helpers/resolvers"); class Setmodlogs extends Command { diff --git a/commands/Administration/setprefix.js b/commands/Administration/setprefix.js index 21e89eed..a680f126 100644 --- a/commands/Administration/setprefix.js +++ b/commands/Administration/setprefix.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Setprefix extends Command { constructor(client) { diff --git a/commands/Administration/setreports.js b/commands/Administration/setreports.js index 7734355a..c167d77c 100644 --- a/commands/Administration/setreports.js +++ b/commands/Administration/setreports.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Resolvers = require("../../helpers/resolvers"); class Setreports extends Command { diff --git a/commands/Administration/setsuggests.js b/commands/Administration/setsuggests.js index b0b2c92d..4f92495e 100644 --- a/commands/Administration/setsuggests.js +++ b/commands/Administration/setsuggests.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Resolvers = require("../../helpers/resolvers"); class Setsuggests extends Command { diff --git a/commands/Administration/slowmode.js b/commands/Administration/slowmode.js index aad1f8a1..df3a5094 100644 --- a/commands/Administration/slowmode.js +++ b/commands/Administration/slowmode.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), ms = require("ms"); class Slowmode extends Command { diff --git a/commands/Administration/welcome.js b/commands/Administration/welcome.js index 837d02c3..3dbaf627 100644 --- a/commands/Administration/welcome.js +++ b/commands/Administration/welcome.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Resolvers = require("../../helpers/resolvers"); class Welcome extends Command { diff --git a/commands/Economy/achievements.js b/commands/Economy/achievements.js index a3256f4c..45049806 100644 --- a/commands/Economy/achievements.js +++ b/commands/Economy/achievements.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Achievements extends Command { diff --git a/commands/Economy/birthdate.js b/commands/Economy/birthdate.js index eb97d2ef..85e400a5 100644 --- a/commands/Economy/birthdate.js +++ b/commands/Economy/birthdate.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Birthdate extends Command { constructor(client) { diff --git a/commands/Economy/deposit.js b/commands/Economy/deposit.js index 04899e97..3cdd2547 100644 --- a/commands/Economy/deposit.js +++ b/commands/Economy/deposit.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Deposit extends Command { constructor(client) { diff --git a/commands/Economy/divorce.js b/commands/Economy/divorce.js index 37e57c3c..2f280fc5 100644 --- a/commands/Economy/divorce.js +++ b/commands/Economy/divorce.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Divorce extends Command { constructor(client) { diff --git a/commands/Economy/leaderboard.js b/commands/Economy/leaderboard.js index 87ed7ba7..c0bcafcf 100644 --- a/commands/Economy/leaderboard.js +++ b/commands/Economy/leaderboard.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), AsciiTable = require("ascii-table"); class Leaderboard extends Command { diff --git a/commands/Economy/marry.js b/commands/Economy/marry.js index 2029f25e..596c144c 100644 --- a/commands/Economy/marry.js +++ b/commands/Economy/marry.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); const pendings = {}; diff --git a/commands/Economy/money.js b/commands/Economy/money.js index 35777b3e..b3def9b1 100644 --- a/commands/Economy/money.js +++ b/commands/Economy/money.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); const asyncForEach = async (collection, callback) => { diff --git a/commands/Economy/pay.js b/commands/Economy/pay.js index 8beea6e0..96301dc9 100644 --- a/commands/Economy/pay.js +++ b/commands/Economy/pay.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Pay extends Command { constructor(client) { diff --git a/commands/Economy/profile.js b/commands/Economy/profile.js index 14c996d1..8489b82e 100644 --- a/commands/Economy/profile.js +++ b/commands/Economy/profile.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); const asyncForEach = async (collection, callback) => { diff --git a/commands/Economy/rep.js b/commands/Economy/rep.js index 25370782..b0c772c7 100644 --- a/commands/Economy/rep.js +++ b/commands/Economy/rep.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Rep extends Command { constructor(client) { diff --git a/commands/Economy/rob.js b/commands/Economy/rob.js index de6746d4..64cf31da 100644 --- a/commands/Economy/rob.js +++ b/commands/Economy/rob.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Rob extends Command { constructor(client) { diff --git a/commands/Economy/setbio.js b/commands/Economy/setbio.js index 7c54f76d..d3e8998e 100644 --- a/commands/Economy/setbio.js +++ b/commands/Economy/setbio.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Setbio extends Command { constructor(client) { diff --git a/commands/Economy/slots.js b/commands/Economy/slots.js index 56b3629c..166d69a9 100644 --- a/commands/Economy/slots.js +++ b/commands/Economy/slots.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Slots extends Command { constructor(client) { diff --git a/commands/Economy/transactions.js b/commands/Economy/transactions.js index e546744a..ed3aa5a7 100644 --- a/commands/Economy/transactions.js +++ b/commands/Economy/transactions.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Transactions extends Command { diff --git a/commands/Economy/withdraw.js b/commands/Economy/withdraw.js index c8140d04..f19dc6ad 100644 --- a/commands/Economy/withdraw.js +++ b/commands/Economy/withdraw.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Withdraw extends Command { constructor(client) { diff --git a/commands/Economy/work.js b/commands/Economy/work.js index 6669401d..d51f01b9 100644 --- a/commands/Economy/work.js +++ b/commands/Economy/work.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Work extends Command { diff --git a/commands/Fun/8ball.js b/commands/Fun/8ball.js index 5e4e0eea..7a016f80 100644 --- a/commands/Fun/8ball.js +++ b/commands/Fun/8ball.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Eightball extends Command { constructor(client) { diff --git a/commands/Fun/ascii.js b/commands/Fun/ascii.js index ca64835f..d0138916 100644 --- a/commands/Fun/ascii.js +++ b/commands/Fun/ascii.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), figlet = require("figlet"), util = require("util"), figletAsync = util.promisify(figlet); diff --git a/commands/Fun/choice.js b/commands/Fun/choice.js index 5d6d255f..d81ff687 100644 --- a/commands/Fun/choice.js +++ b/commands/Fun/choice.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Choice extends Command { constructor(client) { diff --git a/commands/Fun/findwords.js b/commands/Fun/findwords.js index 79637df4..f92128ae 100644 --- a/commands/Fun/findwords.js +++ b/commands/Fun/findwords.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); const currentGames = {}; diff --git a/commands/Fun/flip.js b/commands/Fun/flip.js index ab2ecc3d..09944fe1 100644 --- a/commands/Fun/flip.js +++ b/commands/Fun/flip.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Flip extends Command { constructor(client) { diff --git a/commands/Fun/fml.js b/commands/Fun/fml.js index 4b1deed1..c19a59c0 100644 --- a/commands/Fun/fml.js +++ b/commands/Fun/fml.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Fml extends Command { diff --git a/commands/Fun/joke.js b/commands/Fun/joke.js index 41327b3d..4133a957 100644 --- a/commands/Fun/joke.js +++ b/commands/Fun/joke.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Joke extends Command { diff --git a/commands/Fun/lmg.js b/commands/Fun/lmg.js index ab9701ff..d5017352 100644 --- a/commands/Fun/lmg.js +++ b/commands/Fun/lmg.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Lmg extends Command { constructor(client) { diff --git a/commands/Fun/lovecalc.js b/commands/Fun/lovecalc.js index b65b4155..7fd72649 100644 --- a/commands/Fun/lovecalc.js +++ b/commands/Fun/lovecalc.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), md5 = require("md5"); diff --git a/commands/Fun/number.js b/commands/Fun/number.js index 6d93ec86..5bc5423b 100644 --- a/commands/Fun/number.js +++ b/commands/Fun/number.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); const currentGames = {}; diff --git a/commands/Fun/tictactoe.js b/commands/Fun/tictactoe.js index d6c741a0..db7fb18c 100644 --- a/commands/Fun/tictactoe.js +++ b/commands/Fun/tictactoe.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), TTT = require("discord-tictactoe"); class TicTacToe extends Command { diff --git a/commands/General/activity.js b/commands/General/activity.js index cca1b6c1..63a2b106 100644 --- a/commands/General/activity.js +++ b/commands/General/activity.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Activity extends Command { diff --git a/commands/General/github.js b/commands/General/github.js index 88dfbabe..0d036e1d 100644 --- a/commands/General/github.js +++ b/commands/General/github.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), fetch = require("node-fetch"); diff --git a/commands/General/hastebin.js b/commands/General/hastebin.js index d6727adc..a6fc260a 100644 --- a/commands/General/hastebin.js +++ b/commands/General/hastebin.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), fetch = require("node-fetch"); diff --git a/commands/General/help.js b/commands/General/help.js index 7c475c3d..2050d4d4 100644 --- a/commands/General/help.js +++ b/commands/General/help.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Help extends Command { diff --git a/commands/General/invitations.js b/commands/General/invitations.js index d773fbc7..1ad5972a 100644 --- a/commands/General/invitations.js +++ b/commands/General/invitations.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Invitations extends Command { diff --git a/commands/General/invite.js b/commands/General/invite.js index 8972535c..3a47194e 100644 --- a/commands/General/invite.js +++ b/commands/General/invite.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Invite extends Command { diff --git a/commands/General/minecraft.js b/commands/General/minecraft.js index ba4b5050..8bb517c2 100644 --- a/commands/General/minecraft.js +++ b/commands/General/minecraft.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), fetch = require("node-fetch"), gamedig = require("gamedig"), diff --git a/commands/General/permissions.js b/commands/General/permissions.js index 87f77ab6..a5f44420 100644 --- a/commands/General/permissions.js +++ b/commands/General/permissions.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); const permissions = Object.keys(Discord.Permissions.FLAGS); diff --git a/commands/General/ping.js b/commands/General/ping.js index a4978094..d56eeb00 100644 --- a/commands/General/ping.js +++ b/commands/General/ping.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Ping extends Command { constructor(client) { diff --git a/commands/General/quote.js b/commands/General/quote.js index 8a34e78f..86250112 100644 --- a/commands/General/quote.js +++ b/commands/General/quote.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Quote extends Command { diff --git a/commands/General/remindme.js b/commands/General/remindme.js index e30b8bdf..eb5861b6 100644 --- a/commands/General/remindme.js +++ b/commands/General/remindme.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), ms = require("ms"); class Remindme extends Command { diff --git a/commands/General/report.js b/commands/General/report.js index 0aa5d0d8..72f8321e 100644 --- a/commands/General/report.js +++ b/commands/General/report.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Report extends Command { diff --git a/commands/General/serverinfo.js b/commands/General/serverinfo.js index 37e4d382..a4c42b0a 100644 --- a/commands/General/serverinfo.js +++ b/commands/General/serverinfo.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Serverinfo extends Command { diff --git a/commands/General/setafk.js b/commands/General/setafk.js index 885c0020..2d54f2b4 100644 --- a/commands/General/setafk.js +++ b/commands/General/setafk.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Setafk extends Command { constructor(client) { diff --git a/commands/General/shorturl.js b/commands/General/shorturl.js index 6f813f4c..0e443e18 100644 --- a/commands/General/shorturl.js +++ b/commands/General/shorturl.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), fetch = require("node-fetch"); diff --git a/commands/General/someone.js b/commands/General/someone.js index 8ebb847b..26925fcc 100644 --- a/commands/General/someone.js +++ b/commands/General/someone.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Someone extends Command { diff --git a/commands/General/staff.js b/commands/General/staff.js index ea17318a..44d69936 100644 --- a/commands/General/staff.js +++ b/commands/General/staff.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Staff extends Command { diff --git a/commands/General/stats.js b/commands/General/stats.js index b4f09f86..a790a14f 100644 --- a/commands/General/stats.js +++ b/commands/General/stats.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Stats extends Command { diff --git a/commands/General/suggest.js b/commands/General/suggest.js index 7a5d0444..ba0812e9 100644 --- a/commands/General/suggest.js +++ b/commands/General/suggest.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Suggest extends Command { diff --git a/commands/General/translate.js b/commands/General/translate.js index 0e5e226c..b5bb2219 100644 --- a/commands/General/translate.js +++ b/commands/General/translate.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), translate = require("@k3rn31p4nic/google-translate-api"); diff --git a/commands/General/userinfo.js b/commands/General/userinfo.js index 0afdf6c5..e21f79d7 100644 --- a/commands/General/userinfo.js +++ b/commands/General/userinfo.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), fetch = require("node-fetch"); diff --git a/commands/Images/approved.js b/commands/Images/approved.js index 7b1bb1b1..bc1798d2 100644 --- a/commands/Images/approved.js +++ b/commands/Images/approved.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Approved extends Command { constructor(client) { diff --git a/commands/Images/avatar.js b/commands/Images/avatar.js index c81f0089..767cb9fd 100644 --- a/commands/Images/avatar.js +++ b/commands/Images/avatar.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Avatar extends Command { constructor(client) { diff --git a/commands/Images/batslap.js b/commands/Images/batslap.js index 4345749c..a51c6b93 100644 --- a/commands/Images/batslap.js +++ b/commands/Images/batslap.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class BatSlap extends Command { constructor(client) { diff --git a/commands/Images/beautiful.js b/commands/Images/beautiful.js index 35401cb0..28182325 100644 --- a/commands/Images/beautiful.js +++ b/commands/Images/beautiful.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Beautiful extends Command { constructor(client) { diff --git a/commands/Images/bed.js b/commands/Images/bed.js index 53cad500..911921fb 100644 --- a/commands/Images/bed.js +++ b/commands/Images/bed.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), canvacord = require("canvacord"); class Bed extends Command { diff --git a/commands/Images/brazzers.js b/commands/Images/brazzers.js index f1e6c3ca..fdb77d06 100644 --- a/commands/Images/brazzers.js +++ b/commands/Images/brazzers.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Brazzers extends Command { constructor(client) { diff --git a/commands/Images/burn.js b/commands/Images/burn.js index 50936f7b..447dcf40 100644 --- a/commands/Images/burn.js +++ b/commands/Images/burn.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Burn extends Command { constructor(client) { diff --git a/commands/Images/captcha.js b/commands/Images/captcha.js index 929f69cd..f0b87990 100644 --- a/commands/Images/captcha.js +++ b/commands/Images/captcha.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), fetch = require("node-fetch"); class Captcha extends Command { diff --git a/commands/Images/challenger.js b/commands/Images/challenger.js index fed03f59..2ce70e1a 100644 --- a/commands/Images/challenger.js +++ b/commands/Images/challenger.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Challenger extends Command { constructor(client) { diff --git a/commands/Images/clyde.js b/commands/Images/clyde.js index fe7c7c6f..3ce9c40d 100644 --- a/commands/Images/clyde.js +++ b/commands/Images/clyde.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), fetch = require("node-fetch"); class Clyde extends Command { diff --git a/commands/Images/dictator.js b/commands/Images/dictator.js index 1e1140e0..f68022c2 100644 --- a/commands/Images/dictator.js +++ b/commands/Images/dictator.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Dictator extends Command { constructor(client) { diff --git a/commands/Images/facepalm.js b/commands/Images/facepalm.js index 9c6cd58b..3c904dab 100644 --- a/commands/Images/facepalm.js +++ b/commands/Images/facepalm.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Canvas = require("canvas"); class Facepalm extends Command { diff --git a/commands/Images/fire.js b/commands/Images/fire.js index d17929b4..685c452d 100644 --- a/commands/Images/fire.js +++ b/commands/Images/fire.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Fire extends Command { constructor(client) { diff --git a/commands/Images/jail.js b/commands/Images/jail.js index f301e221..7c0aca86 100644 --- a/commands/Images/jail.js +++ b/commands/Images/jail.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Jail extends Command { constructor(client) { diff --git a/commands/Images/love.js b/commands/Images/love.js index d2d7e5bc..74cefcdf 100644 --- a/commands/Images/love.js +++ b/commands/Images/love.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), fetch = require("node-fetch"); class Love extends Command { diff --git a/commands/Images/mission.js b/commands/Images/mission.js index 880804f5..745b8668 100644 --- a/commands/Images/mission.js +++ b/commands/Images/mission.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Mission extends Command { constructor(client) { diff --git a/commands/Images/phcomment.js b/commands/Images/phcomment.js index b04c062f..c5d494b1 100644 --- a/commands/Images/phcomment.js +++ b/commands/Images/phcomment.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), canvacord = require("canvacord"); class Phcomment extends Command { diff --git a/commands/Images/qrcode.js b/commands/Images/qrcode.js index 099d0205..5ccfab3c 100644 --- a/commands/Images/qrcode.js +++ b/commands/Images/qrcode.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Qrcode extends Command { diff --git a/commands/Images/rip.js b/commands/Images/rip.js index e4e462af..ef25b0a7 100644 --- a/commands/Images/rip.js +++ b/commands/Images/rip.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Rip extends Command { constructor(client) { diff --git a/commands/Images/scary.js b/commands/Images/scary.js index f09593ac..b23b2b55 100644 --- a/commands/Images/scary.js +++ b/commands/Images/scary.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Scary extends Command { constructor(client) { diff --git a/commands/Images/tobecontinued.js b/commands/Images/tobecontinued.js index 34605b01..95a288e3 100644 --- a/commands/Images/tobecontinued.js +++ b/commands/Images/tobecontinued.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Tobecontinued extends Command { constructor(client) { diff --git a/commands/Images/trash.js b/commands/Images/trash.js index 11135d8d..6b925c2c 100644 --- a/commands/Images/trash.js +++ b/commands/Images/trash.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), canvacord = require("canvacord"); class Trash extends Command { diff --git a/commands/Images/triggered.js b/commands/Images/triggered.js index 7783f945..d0c4380b 100644 --- a/commands/Images/triggered.js +++ b/commands/Images/triggered.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Triggered extends Command { constructor(client) { diff --git a/commands/Images/tweet.js b/commands/Images/tweet.js index 5b2d8f7b..e6dc7292 100644 --- a/commands/Images/tweet.js +++ b/commands/Images/tweet.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Tweet extends Command { constructor(client) { diff --git a/commands/Images/wanted.js b/commands/Images/wanted.js index ea616592..4865445d 100644 --- a/commands/Images/wanted.js +++ b/commands/Images/wanted.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Wanted extends Command { constructor(client) { diff --git a/commands/Images/wasted.js b/commands/Images/wasted.js index 736a293e..ca509618 100644 --- a/commands/Images/wasted.js +++ b/commands/Images/wasted.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Wasted extends Command { constructor(client) { diff --git a/commands/Images/youtube-comment.js b/commands/Images/youtube-comment.js index 71fcf53a..d046bee2 100644 --- a/commands/Images/youtube-comment.js +++ b/commands/Images/youtube-comment.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), canvacord = require("canvacord"); class YouTubeComment extends Command { diff --git a/commands/Moderation/announcement.js b/commands/Moderation/announcement.js index 0730c57b..dc3742e2 100644 --- a/commands/Moderation/announcement.js +++ b/commands/Moderation/announcement.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Announcement extends Command { diff --git a/commands/Moderation/ban.js b/commands/Moderation/ban.js index a6897ad1..8da683f5 100644 --- a/commands/Moderation/ban.js +++ b/commands/Moderation/ban.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Ban extends Command { diff --git a/commands/Moderation/clear.js b/commands/Moderation/clear.js index 818b3053..b4fab619 100644 --- a/commands/Moderation/clear.js +++ b/commands/Moderation/clear.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Clear extends Command { constructor(client) { diff --git a/commands/Moderation/clearsanctions.js b/commands/Moderation/clearsanctions.js index 744c05d2..5303012f 100644 --- a/commands/Moderation/clearsanctions.js +++ b/commands/Moderation/clearsanctions.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Clearwarns extends Command { constructor(client) { diff --git a/commands/Moderation/giveaway.js b/commands/Moderation/giveaway.js index 1d3b471e..fab89083 100644 --- a/commands/Moderation/giveaway.js +++ b/commands/Moderation/giveaway.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), ms = require("ms"); class Giveaway extends Command { diff --git a/commands/Moderation/kick.js b/commands/Moderation/kick.js index fc8dbaf6..f9b06ab3 100644 --- a/commands/Moderation/kick.js +++ b/commands/Moderation/kick.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Kick extends Command { diff --git a/commands/Moderation/mute.js b/commands/Moderation/mute.js index f6b349da..04c26702 100644 --- a/commands/Moderation/mute.js +++ b/commands/Moderation/mute.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), ms = require("ms"); diff --git a/commands/Moderation/poll.js b/commands/Moderation/poll.js index 9fa67e3c..0404a268 100644 --- a/commands/Moderation/poll.js +++ b/commands/Moderation/poll.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Poll extends Command { diff --git a/commands/Moderation/sanctions.js b/commands/Moderation/sanctions.js index f05f0d17..25b776a7 100644 --- a/commands/Moderation/sanctions.js +++ b/commands/Moderation/sanctions.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Sanctions extends Command { diff --git a/commands/Moderation/setwarns.js b/commands/Moderation/setwarns.js index a5f271d3..8aebfdee 100644 --- a/commands/Moderation/setwarns.js +++ b/commands/Moderation/setwarns.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Setwarns extends Command { constructor(client) { diff --git a/commands/Moderation/unban.js b/commands/Moderation/unban.js index 8f2f3816..ea0468be 100644 --- a/commands/Moderation/unban.js +++ b/commands/Moderation/unban.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Unban extends Command { constructor(client) { diff --git a/commands/Moderation/unmute.js b/commands/Moderation/unmute.js index 943295f9..6a8fb313 100644 --- a/commands/Moderation/unmute.js +++ b/commands/Moderation/unmute.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Unmute extends Command { constructor(client) { diff --git a/commands/Moderation/warn.js b/commands/Moderation/warn.js index 03e450f2..73a0fc42 100644 --- a/commands/Moderation/warn.js +++ b/commands/Moderation/warn.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Warn extends Command { diff --git a/commands/Music/autoplay.js b/commands/Music/autoplay.js index 8a927131..2372c601 100644 --- a/commands/Music/autoplay.js +++ b/commands/Music/autoplay.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class AutoPlay extends Command { constructor(client) { diff --git a/commands/Music/back.js b/commands/Music/back.js index 0d6add41..4ba3094e 100644 --- a/commands/Music/back.js +++ b/commands/Music/back.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Back extends Command { diff --git a/commands/Music/clip.js b/commands/Music/clip.js index 5b7390eb..6ea1a0c7 100644 --- a/commands/Music/clip.js +++ b/commands/Music/clip.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), fs = require("fs"), { joinVoiceChannel, createAudioResource, createAudioPlayer, getVoiceConnection } = require("@discordjs/voice"); diff --git a/commands/Music/clips.js b/commands/Music/clips.js index 7c95aa97..d076992d 100644 --- a/commands/Music/clips.js +++ b/commands/Music/clips.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), fs = require("fs"); diff --git a/commands/Music/filter.js b/commands/Music/filter.js index 9befd331..d26cea14 100644 --- a/commands/Music/filter.js +++ b/commands/Music/filter.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Filter extends Command { constructor(client) { diff --git a/commands/Music/filters.js b/commands/Music/filters.js index 55f882a9..978221c0 100644 --- a/commands/Music/filters.js +++ b/commands/Music/filters.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Filters extends Command { diff --git a/commands/Music/jump.js b/commands/Music/jump.js index 2c4a6164..2b341d05 100644 --- a/commands/Music/jump.js +++ b/commands/Music/jump.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Jump extends Command { diff --git a/commands/Music/loop.js b/commands/Music/loop.js index 5f5a7ec9..feff4d30 100644 --- a/commands/Music/loop.js +++ b/commands/Music/loop.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Loop extends Command { constructor(client) { diff --git a/commands/Music/lyrics.js b/commands/Music/lyrics.js index 837cba11..f4b65411 100644 --- a/commands/Music/lyrics.js +++ b/commands/Music/lyrics.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), lyricsParse = require("lyrics-finder"); diff --git a/commands/Music/np.js b/commands/Music/np.js index a7913a84..19d9d730 100644 --- a/commands/Music/np.js +++ b/commands/Music/np.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Np extends Command { diff --git a/commands/Music/pause.js b/commands/Music/pause.js index 15008997..efa90801 100644 --- a/commands/Music/pause.js +++ b/commands/Music/pause.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Pause extends Command { constructor(client) { diff --git a/commands/Music/play.js b/commands/Music/play.js index db8d12f1..1fa98543 100644 --- a/commands/Music/play.js +++ b/commands/Music/play.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), { Permissions } = require("discord.js"); class Play extends Command { diff --git a/commands/Music/queue.js b/commands/Music/queue.js index 44ef9f78..25cc3fdb 100644 --- a/commands/Music/queue.js +++ b/commands/Music/queue.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), Pagination = require("discord-paginationembed"); diff --git a/commands/Music/resume.js b/commands/Music/resume.js index c2424927..b056d6eb 100644 --- a/commands/Music/resume.js +++ b/commands/Music/resume.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Resume extends Command { constructor(client) { diff --git a/commands/Music/seek.js b/commands/Music/seek.js index 24b8b4b3..5501b67f 100644 --- a/commands/Music/seek.js +++ b/commands/Music/seek.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); const ms = require("ms"); class Seek extends Command { diff --git a/commands/Music/skip.js b/commands/Music/skip.js index c8612076..c3a78376 100644 --- a/commands/Music/skip.js +++ b/commands/Music/skip.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Skip extends Command { diff --git a/commands/Music/stop.js b/commands/Music/stop.js index cf19bc3f..9bb6abb4 100644 --- a/commands/Music/stop.js +++ b/commands/Music/stop.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class Stop extends Command { diff --git a/commands/NSFW/hentai.js b/commands/NSFW/hentai.js index 8b7b5623..3c989677 100644 --- a/commands/NSFW/hentai.js +++ b/commands/NSFW/hentai.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"), fetch = require("node-fetch"); diff --git a/commands/Owner/debug.js b/commands/Owner/debug.js index cc203d6c..228f93f9 100644 --- a/commands/Owner/debug.js +++ b/commands/Owner/debug.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Debug extends Command { constructor(client) { diff --git a/commands/Owner/eval.js b/commands/Owner/eval.js index 96f8e2ad..291808a5 100644 --- a/commands/Owner/eval.js +++ b/commands/Owner/eval.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Eval extends Command { constructor(client) { diff --git a/commands/Owner/reload.js b/commands/Owner/reload.js index cc1094a7..84d5a78f 100644 --- a/commands/Owner/reload.js +++ b/commands/Owner/reload.js @@ -1,5 +1,6 @@ -const Command = require("../../base/Command.js"), - i18next = require("i18next"); +const Command = require("../../base/Command"), + i18next = require("i18next"), + autoUpdateDocs = require("../../helpers/autoUpdateDocs"); class Reload extends Command { constructor(client) { @@ -27,6 +28,7 @@ class Reload extends Command { const lang = message.guild ? data.guild.language : "ru-RU"; i18next.reloadResources(lang); + autoUpdateDocs.update(this.client); message.success("owner/reload:SUCCESS", { command: cmd.help.name diff --git a/commands/Owner/say.js b/commands/Owner/say.js index 369ef355..7cc787d6 100644 --- a/commands/Owner/say.js +++ b/commands/Owner/say.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"); +const Command = require("../../base/Command"); class Say extends Command { constructor(client) { diff --git a/commands/Owner/servers-list.js b/commands/Owner/servers-list.js index 7a722701..992352f7 100644 --- a/commands/Owner/servers-list.js +++ b/commands/Owner/servers-list.js @@ -1,4 +1,4 @@ -const Command = require("../../base/Command.js"), +const Command = require("../../base/Command"), Discord = require("discord.js"); class ServersList extends Command { diff --git a/index.js b/index.js index 21a83b98..f7aa6f1c 100644 --- a/index.js +++ b/index.js @@ -74,7 +74,7 @@ const init = async () => { const languages = require("./helpers/languages"); client.translations = await languages(); - const autoUpdateDocs = require("./helpers/autoUpdateDocs.js"); + const autoUpdateDocs = require("./helpers/autoUpdateDocs"); autoUpdateDocs.update(client); }; diff --git a/scripts/create-db-indexes.js b/scripts/create-db-indexes.js index f5e9f462..fd4ac26e 100644 --- a/scripts/create-db-indexes.js +++ b/scripts/create-db-indexes.js @@ -10,7 +10,7 @@ try { process.exit(1); } -const config = require("../config.js"); +const config = require("../config"); const dbName = config.mongoDB.split("/").pop(); const baseURL = config.mongoDB.substr(0, config.mongoDB.length - dbName.length); const client = new MongoClient(baseURL, { diff --git a/scripts/migrate-db-from-v4.6-to-v4.7.js b/scripts/migrate-db-from-v4.6-to-v4.7.js index 3dec46a9..dcec93fa 100644 --- a/scripts/migrate-db-from-v4.6-to-v4.7.js +++ b/scripts/migrate-db-from-v4.6-to-v4.7.js @@ -10,7 +10,7 @@ try { process.exit(1); } -const config = require("../config.js"); +const config = require("../config"); const dbName = config.mongoDB.split("/").pop(); const baseURL = config.mongoDB.substr(0, config.mongoDB.length - dbName.length); const client = new MongoClient(baseURL, { diff --git a/scripts/verify-config.js b/scripts/verify-config.js index 57a67a65..71bd1fbb 100644 --- a/scripts/verify-config.js +++ b/scripts/verify-config.js @@ -1,5 +1,5 @@ /* eslint-disable no-async-promise-executor */ -const config = require("../config.js"); +const config = require("../config"); const fetch = require("node-fetch"); const chalk = require("chalk");