From db7f9693fe4fdcaa53b6c0665ddc6cc2fa6e7548 Mon Sep 17 00:00:00 2001 From: Slincnik Date: Mon, 9 Dec 2024 13:09:57 +0300 Subject: [PATCH] feat: new structure, and fixes paths on handlers --- base/newClient.js | 19 ----------- package.json | 4 +-- src/adapters/database/IDatabaseAdapter.js | 9 +++++ src/adapters/database/MongooseAdapter.js | 31 ++++++++++++++++++ .../assets}/fonts/KeepCalm-Medium.ttf | Bin .../assets}/fonts/RubikMonoOne-Regular.ttf | Bin .../assets}/img/achievements/achievement1.png | Bin .../assets}/img/achievements/achievement2.png | Bin .../assets}/img/achievements/achievement3.png | Bin .../assets}/img/achievements/achievement4.png | Bin .../assets}/img/achievements/achievement5.png | Bin .../assets}/img/achievements/achievement6.png | Bin .../assets}/img/achievements/achievement7.png | Bin .../img/achievements/achievement_colored1.png | Bin .../img/achievements/achievement_colored2.png | Bin .../img/achievements/achievement_colored3.png | Bin .../img/achievements/achievement_colored4.png | Bin .../img/achievements/achievement_colored5.png | Bin .../img/achievements/achievement_colored6.png | Bin .../img/achievements/achievement_colored7.png | Bin .../achievements/achievement_unlocked1.png | Bin .../achievements/achievement_unlocked2.png | Bin .../achievements/achievement_unlocked3.png | Bin .../achievements/achievement_unlocked4.png | Bin .../achievements/achievement_unlocked5.png | Bin .../achievements/achievement_unlocked6.png | Bin .../achievements/achievement_unlocked7.png | Bin .../assets}/img/greetings_background.png | Bin {base => src/base}/BaseCommand.js | 0 {base => src/base}/BaseEvent.js | 0 {base => src/base}/Client.js | 10 +++--- .../commands}/Administration/addemoji.js | 0 .../commands}/Administration/automod.js | 0 .../commands}/Administration/autorole.js | 0 .../commands}/Administration/config.js | 0 .../commands}/Administration/goodbye.js | 0 .../commands}/Administration/selectroles.js | 0 .../commands}/Administration/set.js | 0 .../commands}/Administration/setlang.js | 0 .../commands}/Administration/stealemoji.js | 0 .../commands}/Administration/welcome.js | 0 {commands => src/commands}/Beatrun/courses.js | 0 .../commands}/Economy/achievements.js | 0 {commands => src/commands}/Economy/bank.js | 0 .../commands}/Economy/birthdate.js | 0 {commands => src/commands}/Economy/divorce.js | 0 .../commands}/Economy/leaderboard.js | 0 {commands => src/commands}/Economy/marry.js | 0 {commands => src/commands}/Economy/money.js | 0 {commands => src/commands}/Economy/pay.js | 0 {commands => src/commands}/Economy/profile.js | 0 {commands => src/commands}/Economy/rep.js | 0 {commands => src/commands}/Economy/rob.js | 0 {commands => src/commands}/Economy/setbio.js | 0 {commands => src/commands}/Economy/slots.js | 0 .../commands}/Economy/transactions.js | 0 {commands => src/commands}/Economy/work.js | 0 {commands => src/commands}/Fun/8ball.js | 0 {commands => src/commands}/Fun/cat.js | 0 {commands => src/commands}/Fun/dog.js | 0 {commands => src/commands}/Fun/lmgtfy.js | 0 {commands => src/commands}/Fun/lovecalc.js | 0 {commands => src/commands}/Fun/number.js | 0 {commands => src/commands}/Fun/tictactoe.js | 0 {commands => src/commands}/General/afk.js | 0 .../commands}/General/avatar.c.js | 0 {commands => src/commands}/General/avatar.js | 0 .../commands}/General/boosters.js | 0 {commands => src/commands}/General/emoji.js | 0 {commands => src/commands}/General/help.js | 0 {commands => src/commands}/General/info.js | 0 .../commands}/General/minecraft.js | 0 {commands => src/commands}/General/ping.js | 0 .../commands}/General/remindme.js | 0 {commands => src/commands}/General/reminds.js | 0 {commands => src/commands}/General/report.js | 0 .../commands}/General/shorturl.js | 0 {commands => src/commands}/General/stats.js | 0 {commands => src/commands}/General/suggest.js | 0 {commands => src/commands}/General/whois.js | 0 {commands => src/commands}/IAT/checkjar.js | 0 .../commands}/Moderation/clear.js | 0 .../commands}/Moderation/clearwarns.js | 0 .../commands}/Moderation/giveaway.js | 0 .../commands}/Moderation/unban.js | 0 .../commands}/Moderation/untimeout.js | 0 .../commands}/Moderation/warn.c.js | 0 .../commands}/Moderation/warns.js | 0 {commands => src/commands}/Music/back.js | 0 {commands => src/commands}/Music/clips.js | 0 {commands => src/commands}/Music/loop.js | 0 .../commands}/Music/nowplaying.js | 0 {commands => src/commands}/Music/play.c.js | 0 {commands => src/commands}/Music/play.js | 0 {commands => src/commands}/Music/queue.js | 0 {commands => src/commands}/Music/seek.js | 0 {commands => src/commands}/Music/shuffle.js | 0 {commands => src/commands}/Music/skip.js | 0 {commands => src/commands}/Music/stop.js | 0 {commands => src/commands}/Music/volume.js | 0 {commands => src/commands}/Owner/debug.js | 0 {commands => src/commands}/Owner/eval.js | 0 {commands => src/commands}/Owner/reload.js | 0 {commands => src/commands}/Owner/say.js | 0 {commands => src/commands}/Owner/servers.js | 0 {commands => src/commands}/Tickets/adduser.js | 0 .../commands}/Tickets/closeticket.js | 0 .../commands}/Tickets/createticketembed.js | 0 .../commands}/Tickets/removeuser.js | 0 src/constants/index.js | 3 ++ {events => src/events}/CommandHandler.js | 0 {events => src/events}/Guild/guildBanAdd.js | 0 {events => src/events}/Guild/guildCreate.js | 0 {events => src/events}/Guild/guildDelete.js | 0 .../events}/Guild/guildMemberAdd.js | 0 .../events}/Guild/guildMemberRemove.js | 0 .../events}/Guild/guildMemberUpdate.js | 0 {events => src/events}/MessageHandler.js | 0 .../events}/Monitoring/messageDelete.js | 0 .../events}/Monitoring/messageUpdate.js | 0 {events => src/events}/Ready.js | 0 {events => src/events}/TicketsButton.js | 0 .../functions/registerCommands.js | 0 .../handlers}/command-handler/index.js | 0 .../utils/differentcommands.js | 0 .../handlers}/event-handler/index.js | 0 {helpers => src/helpers}/birthdays.js | 0 {helpers => src/helpers}/checkReminds.js | 0 {helpers => src/helpers}/cleanup.js | 0 {helpers => src/helpers}/extenders.js | 0 {helpers => src/helpers}/functions.js | 0 {helpers => src/helpers}/languages.js | 0 {helpers => src/helpers}/logger.js | 0 {helpers => src/helpers}/tictactoe.js | 0 index.js => src/index.js | 2 +- .../en-US/administration/addemoji.json | 0 .../en-US/administration/automod.json | 0 .../en-US/administration/autorole.json | 0 .../en-US/administration/config.json | 0 .../en-US/administration/deletemod.json | 0 .../en-US/administration/goodbye.json | 0 .../en-US/administration/selectroles.json | 0 .../languages}/en-US/administration/set.json | 0 .../en-US/administration/setlang.json | 0 .../en-US/administration/stealemoji.json | 0 .../en-US/administration/welcome.json | 0 .../languages}/en-US/beatrun/courses.json | 0 .../languages}/en-US/common.json | 0 .../en-US/economy/achievements.json | 0 .../languages}/en-US/economy/bank.json | 0 .../languages}/en-US/economy/birthdate.json | 0 .../languages}/en-US/economy/divorce.json | 0 .../languages}/en-US/economy/importmee6.json | 0 .../languages}/en-US/economy/leaderboard.json | 0 .../languages}/en-US/economy/marry.json | 0 .../languages}/en-US/economy/money.json | 0 .../languages}/en-US/economy/pay.json | 0 .../languages}/en-US/economy/profile.json | 0 .../languages}/en-US/economy/rep.json | 0 .../languages}/en-US/economy/rob.json | 0 .../languages}/en-US/economy/setbio.json | 0 .../languages}/en-US/economy/slots.json | 0 .../en-US/economy/transactions.json | 0 .../languages}/en-US/economy/work.json | 0 .../languages}/en-US/fun/8ball.json | 0 .../languages}/en-US/fun/cat.json | 0 .../languages}/en-US/fun/dog.json | 0 .../languages}/en-US/fun/lmgtfy.json | 0 .../languages}/en-US/fun/lovecalc.json | 0 .../languages}/en-US/fun/memes.json | 0 .../languages}/en-US/fun/number.json | 0 .../languages}/en-US/fun/tictactoe.json | 0 .../languages}/en-US/general/afk.json | 0 .../languages}/en-US/general/avatar.json | 0 .../languages}/en-US/general/boosters.json | 0 .../languages}/en-US/general/emoji.json | 0 .../languages}/en-US/general/help.json | 0 .../languages}/en-US/general/info.json | 0 .../languages}/en-US/general/minecraft.json | 0 .../languages}/en-US/general/ping.json | 0 .../languages}/en-US/general/remindme.json | 0 .../languages}/en-US/general/reminds.json | 0 .../languages}/en-US/general/report.json | 0 .../languages}/en-US/general/shorturl.json | 0 .../languages}/en-US/general/staff.json | 0 .../languages}/en-US/general/stats.json | 0 .../languages}/en-US/general/suggest.json | 0 .../languages}/en-US/general/whois.json | 0 .../languages}/en-US/iat/checkjar.json | 0 {languages => src/languages}/en-US/misc.json | 0 .../languages}/en-US/moderation/ban.json | 0 .../languages}/en-US/moderation/clear.json | 0 .../en-US/moderation/clearwarns.json | 0 .../languages}/en-US/moderation/giveaway.json | 0 .../languages}/en-US/moderation/kick.json | 0 .../languages}/en-US/moderation/unban.json | 0 .../en-US/moderation/untimeout.json | 0 .../languages}/en-US/moderation/warn.json | 0 .../languages}/en-US/moderation/warns.json | 0 .../languages}/en-US/music/back.json | 0 .../languages}/en-US/music/clips.json | 0 .../languages}/en-US/music/loop.json | 0 .../languages}/en-US/music/nowplaying.json | 0 .../languages}/en-US/music/play.json | 0 .../languages}/en-US/music/queue.json | 0 .../languages}/en-US/music/seek.json | 0 .../languages}/en-US/music/shuffle.json | 0 .../languages}/en-US/music/skip.json | 0 .../languages}/en-US/music/stop.json | 0 .../languages}/en-US/music/volume.json | 0 .../languages}/en-US/owner/announcement.json | 0 .../languages}/en-US/owner/debug.json | 0 .../languages}/en-US/owner/eval.json | 0 .../languages}/en-US/owner/reload.json | 0 .../languages}/en-US/owner/say.json | 0 .../languages}/en-US/owner/servers.json | 0 .../languages}/en-US/tickets/adduser.json | 0 .../languages}/en-US/tickets/closeticket.json | 0 .../en-US/tickets/createticketembed.json | 0 .../languages}/en-US/tickets/removeuser.json | 0 {languages => src/languages}/language-meta.js | 0 .../ru-RU/administration/addemoji.json | 0 .../ru-RU/administration/automod.json | 0 .../ru-RU/administration/autorole.json | 0 .../ru-RU/administration/config.json | 0 .../ru-RU/administration/deletemod.json | 0 .../ru-RU/administration/goodbye.json | 0 .../ru-RU/administration/selectroles.json | 0 .../languages}/ru-RU/administration/set.json | 0 .../ru-RU/administration/setlang.json | 0 .../ru-RU/administration/stealemoji.json | 0 .../ru-RU/administration/welcome.json | 0 .../languages}/ru-RU/beatrun/courses.json | 0 .../languages}/ru-RU/common.json | 0 .../ru-RU/economy/achievements.json | 0 .../languages}/ru-RU/economy/bank.json | 0 .../languages}/ru-RU/economy/birthdate.json | 0 .../languages}/ru-RU/economy/divorce.json | 0 .../languages}/ru-RU/economy/importmee6.json | 0 .../languages}/ru-RU/economy/leaderboard.json | 0 .../languages}/ru-RU/economy/marry.json | 0 .../languages}/ru-RU/economy/money.json | 0 .../languages}/ru-RU/economy/pay.json | 0 .../languages}/ru-RU/economy/profile.json | 0 .../languages}/ru-RU/economy/rep.json | 0 .../languages}/ru-RU/economy/rob.json | 0 .../languages}/ru-RU/economy/setbio.json | 0 .../languages}/ru-RU/economy/slots.json | 0 .../ru-RU/economy/transactions.json | 0 .../languages}/ru-RU/economy/work.json | 0 .../languages}/ru-RU/fun/8ball.json | 0 .../languages}/ru-RU/fun/cat.json | 0 .../languages}/ru-RU/fun/dog.json | 0 .../languages}/ru-RU/fun/lmgtfy.json | 0 .../languages}/ru-RU/fun/lovecalc.json | 0 .../languages}/ru-RU/fun/memes.json | 0 .../languages}/ru-RU/fun/number.json | 0 .../languages}/ru-RU/fun/tictactoe.json | 0 .../languages}/ru-RU/general/afk.json | 0 .../languages}/ru-RU/general/avatar.json | 0 .../languages}/ru-RU/general/boosters.json | 0 .../languages}/ru-RU/general/emoji.json | 0 .../languages}/ru-RU/general/help.json | 0 .../languages}/ru-RU/general/info.json | 0 .../languages}/ru-RU/general/minecraft.json | 0 .../languages}/ru-RU/general/ping.json | 0 .../languages}/ru-RU/general/remindme.json | 0 .../languages}/ru-RU/general/reminds.json | 0 .../languages}/ru-RU/general/report.json | 0 .../languages}/ru-RU/general/shorturl.json | 0 .../languages}/ru-RU/general/staff.json | 0 .../languages}/ru-RU/general/stats.json | 0 .../languages}/ru-RU/general/suggest.json | 0 .../languages}/ru-RU/general/whois.json | 0 .../languages}/ru-RU/iat/checkjar.json | 0 {languages => src/languages}/ru-RU/misc.json | 0 .../languages}/ru-RU/moderation/ban.json | 0 .../languages}/ru-RU/moderation/clear.json | 0 .../ru-RU/moderation/clearwarns.json | 0 .../languages}/ru-RU/moderation/giveaway.json | 0 .../languages}/ru-RU/moderation/kick.json | 0 .../languages}/ru-RU/moderation/unban.json | 0 .../ru-RU/moderation/untimeout.json | 0 .../languages}/ru-RU/moderation/warn.json | 0 .../languages}/ru-RU/moderation/warns.json | 0 .../languages}/ru-RU/music/back.json | 0 .../languages}/ru-RU/music/clips.json | 0 .../languages}/ru-RU/music/loop.json | 0 .../languages}/ru-RU/music/nowplaying.json | 0 .../languages}/ru-RU/music/play.json | 0 .../languages}/ru-RU/music/queue.json | 0 .../languages}/ru-RU/music/seek.json | 0 .../languages}/ru-RU/music/shuffle.json | 0 .../languages}/ru-RU/music/skip.json | 0 .../languages}/ru-RU/music/stop.json | 0 .../languages}/ru-RU/music/volume.json | 0 .../languages}/ru-RU/owner/announcement.json | 0 .../languages}/ru-RU/owner/debug.json | 0 .../languages}/ru-RU/owner/eval.json | 0 .../languages}/ru-RU/owner/reload.json | 0 .../languages}/ru-RU/owner/say.json | 0 .../languages}/ru-RU/owner/servers.json | 0 .../languages}/ru-RU/tickets/adduser.json | 0 .../languages}/ru-RU/tickets/closeticket.json | 0 .../ru-RU/tickets/createticketembed.json | 0 .../languages}/ru-RU/tickets/removeuser.json | 0 .../uk-UA/administration/addemoji.json | 0 .../uk-UA/administration/automod.json | 0 .../uk-UA/administration/autorole.json | 0 .../uk-UA/administration/config.json | 0 .../uk-UA/administration/deletemod.json | 0 .../uk-UA/administration/goodbye.json | 0 .../uk-UA/administration/selectroles.json | 0 .../languages}/uk-UA/administration/set.json | 0 .../uk-UA/administration/setlang.json | 0 .../uk-UA/administration/stealemoji.json | 0 .../uk-UA/administration/welcome.json | 0 .../languages}/uk-UA/beatrun/courses.json | 0 .../languages}/uk-UA/common.json | 0 .../uk-UA/economy/achievements.json | 0 .../languages}/uk-UA/economy/bank.json | 0 .../languages}/uk-UA/economy/birthdate.json | 0 .../languages}/uk-UA/economy/divorce.json | 0 .../languages}/uk-UA/economy/importmee6.json | 0 .../languages}/uk-UA/economy/leaderboard.json | 0 .../languages}/uk-UA/economy/marry.json | 0 .../languages}/uk-UA/economy/money.json | 0 .../languages}/uk-UA/economy/pay.json | 0 .../languages}/uk-UA/economy/profile.json | 0 .../languages}/uk-UA/economy/rep.json | 0 .../languages}/uk-UA/economy/rob.json | 0 .../languages}/uk-UA/economy/setbio.json | 0 .../languages}/uk-UA/economy/slots.json | 0 .../uk-UA/economy/transactions.json | 0 .../languages}/uk-UA/economy/work.json | 0 .../languages}/uk-UA/fun/8ball.json | 0 .../languages}/uk-UA/fun/cat.json | 0 .../languages}/uk-UA/fun/dog.json | 0 .../languages}/uk-UA/fun/lmgtfy.json | 0 .../languages}/uk-UA/fun/lovecalc.json | 0 .../languages}/uk-UA/fun/memes.json | 0 .../languages}/uk-UA/fun/number.json | 0 .../languages}/uk-UA/fun/tictactoe.json | 0 .../languages}/uk-UA/general/afk.json | 0 .../languages}/uk-UA/general/avatar.json | 0 .../languages}/uk-UA/general/boosters.json | 0 .../languages}/uk-UA/general/emoji.json | 0 .../languages}/uk-UA/general/help.json | 0 .../languages}/uk-UA/general/info.json | 0 .../languages}/uk-UA/general/minecraft.json | 0 .../languages}/uk-UA/general/ping.json | 0 .../languages}/uk-UA/general/remindme.json | 0 .../languages}/uk-UA/general/reminds.json | 0 .../languages}/uk-UA/general/report.json | 0 .../languages}/uk-UA/general/shorturl.json | 0 .../languages}/uk-UA/general/staff.json | 0 .../languages}/uk-UA/general/stats.json | 0 .../languages}/uk-UA/general/suggest.json | 0 .../languages}/uk-UA/general/whois.json | 0 .../languages}/uk-UA/iat/checkjar.json | 0 {languages => src/languages}/uk-UA/misc.json | 0 .../languages}/uk-UA/moderation/ban.json | 0 .../languages}/uk-UA/moderation/clear.json | 0 .../uk-UA/moderation/clearwarns.json | 0 .../languages}/uk-UA/moderation/giveaway.json | 0 .../languages}/uk-UA/moderation/kick.json | 0 .../languages}/uk-UA/moderation/unban.json | 0 .../uk-UA/moderation/untimeout.json | 0 .../languages}/uk-UA/moderation/warn.json | 0 .../languages}/uk-UA/moderation/warns.json | 0 .../languages}/uk-UA/music/back.json | 0 .../languages}/uk-UA/music/clips.json | 0 .../languages}/uk-UA/music/loop.json | 0 .../languages}/uk-UA/music/nowplaying.json | 0 .../languages}/uk-UA/music/play.json | 0 .../languages}/uk-UA/music/queue.json | 0 .../languages}/uk-UA/music/seek.json | 0 .../languages}/uk-UA/music/shuffle.json | 0 .../languages}/uk-UA/music/skip.json | 0 .../languages}/uk-UA/music/stop.json | 0 .../languages}/uk-UA/music/volume.json | 0 .../languages}/uk-UA/owner/announcement.json | 0 .../languages}/uk-UA/owner/debug.json | 0 .../languages}/uk-UA/owner/eval.json | 0 .../languages}/uk-UA/owner/reload.json | 0 .../languages}/uk-UA/owner/say.json | 0 .../languages}/uk-UA/owner/servers.json | 0 .../languages}/uk-UA/tickets/adduser.json | 0 .../languages}/uk-UA/tickets/closeticket.json | 0 .../uk-UA/tickets/createticketembed.json | 0 .../languages}/uk-UA/tickets/removeuser.json | 0 base/Guild.js => src/models/GuildModel.js | 0 base/Member.js => src/models/MemberModel.js | 0 base/User.js => src/models/UserModel.js | 0 {newCommands => src/newCommands}/Fun/8ball.js | 0 {newEvents => src/newEvents}/ready.js | 0 src/structures/client.js | 28 ++++++++++++++++ {utils => src/utils}/get-path.js | 5 ++- {utils => src/utils}/resolve-file.js | 3 +- 399 files changed, 85 insertions(+), 29 deletions(-) delete mode 100644 base/newClient.js create mode 100644 src/adapters/database/IDatabaseAdapter.js create mode 100644 src/adapters/database/MongooseAdapter.js rename {assets => src/assets}/fonts/KeepCalm-Medium.ttf (100%) rename {assets => src/assets}/fonts/RubikMonoOne-Regular.ttf (100%) rename {assets => src/assets}/img/achievements/achievement1.png (100%) rename {assets => src/assets}/img/achievements/achievement2.png (100%) rename {assets => src/assets}/img/achievements/achievement3.png (100%) rename {assets => src/assets}/img/achievements/achievement4.png (100%) rename {assets => src/assets}/img/achievements/achievement5.png (100%) rename {assets => src/assets}/img/achievements/achievement6.png (100%) rename {assets => src/assets}/img/achievements/achievement7.png (100%) rename {assets => src/assets}/img/achievements/achievement_colored1.png (100%) rename {assets => src/assets}/img/achievements/achievement_colored2.png (100%) rename {assets => src/assets}/img/achievements/achievement_colored3.png (100%) rename {assets => src/assets}/img/achievements/achievement_colored4.png (100%) rename {assets => src/assets}/img/achievements/achievement_colored5.png (100%) rename {assets => src/assets}/img/achievements/achievement_colored6.png (100%) rename {assets => src/assets}/img/achievements/achievement_colored7.png (100%) rename {assets => src/assets}/img/achievements/achievement_unlocked1.png (100%) rename {assets => src/assets}/img/achievements/achievement_unlocked2.png (100%) rename {assets => src/assets}/img/achievements/achievement_unlocked3.png (100%) rename {assets => src/assets}/img/achievements/achievement_unlocked4.png (100%) rename {assets => src/assets}/img/achievements/achievement_unlocked5.png (100%) rename {assets => src/assets}/img/achievements/achievement_unlocked6.png (100%) rename {assets => src/assets}/img/achievements/achievement_unlocked7.png (100%) rename {assets => src/assets}/img/greetings_background.png (100%) rename {base => src/base}/BaseCommand.js (100%) rename {base => src/base}/BaseEvent.js (100%) rename {base => src/base}/Client.js (96%) rename {commands => src/commands}/Administration/addemoji.js (100%) rename {commands => src/commands}/Administration/automod.js (100%) rename {commands => src/commands}/Administration/autorole.js (100%) rename {commands => src/commands}/Administration/config.js (100%) rename {commands => src/commands}/Administration/goodbye.js (100%) rename {commands => src/commands}/Administration/selectroles.js (100%) rename {commands => src/commands}/Administration/set.js (100%) rename {commands => src/commands}/Administration/setlang.js (100%) rename {commands => src/commands}/Administration/stealemoji.js (100%) rename {commands => src/commands}/Administration/welcome.js (100%) rename {commands => src/commands}/Beatrun/courses.js (100%) rename {commands => src/commands}/Economy/achievements.js (100%) rename {commands => src/commands}/Economy/bank.js (100%) rename {commands => src/commands}/Economy/birthdate.js (100%) rename {commands => src/commands}/Economy/divorce.js (100%) rename {commands => src/commands}/Economy/leaderboard.js (100%) rename {commands => src/commands}/Economy/marry.js (100%) rename {commands => src/commands}/Economy/money.js (100%) rename {commands => src/commands}/Economy/pay.js (100%) rename {commands => src/commands}/Economy/profile.js (100%) rename {commands => src/commands}/Economy/rep.js (100%) rename {commands => src/commands}/Economy/rob.js (100%) rename {commands => src/commands}/Economy/setbio.js (100%) rename {commands => src/commands}/Economy/slots.js (100%) rename {commands => src/commands}/Economy/transactions.js (100%) rename {commands => src/commands}/Economy/work.js (100%) rename {commands => src/commands}/Fun/8ball.js (100%) rename {commands => src/commands}/Fun/cat.js (100%) rename {commands => src/commands}/Fun/dog.js (100%) rename {commands => src/commands}/Fun/lmgtfy.js (100%) rename {commands => src/commands}/Fun/lovecalc.js (100%) rename {commands => src/commands}/Fun/number.js (100%) rename {commands => src/commands}/Fun/tictactoe.js (100%) rename {commands => src/commands}/General/afk.js (100%) rename {commands => src/commands}/General/avatar.c.js (100%) rename {commands => src/commands}/General/avatar.js (100%) rename {commands => src/commands}/General/boosters.js (100%) rename {commands => src/commands}/General/emoji.js (100%) rename {commands => src/commands}/General/help.js (100%) rename {commands => src/commands}/General/info.js (100%) rename {commands => src/commands}/General/minecraft.js (100%) rename {commands => src/commands}/General/ping.js (100%) rename {commands => src/commands}/General/remindme.js (100%) rename {commands => src/commands}/General/reminds.js (100%) rename {commands => src/commands}/General/report.js (100%) rename {commands => src/commands}/General/shorturl.js (100%) rename {commands => src/commands}/General/stats.js (100%) rename {commands => src/commands}/General/suggest.js (100%) rename {commands => src/commands}/General/whois.js (100%) rename {commands => src/commands}/IAT/checkjar.js (100%) rename {commands => src/commands}/Moderation/clear.js (100%) rename {commands => src/commands}/Moderation/clearwarns.js (100%) rename {commands => src/commands}/Moderation/giveaway.js (100%) rename {commands => src/commands}/Moderation/unban.js (100%) rename {commands => src/commands}/Moderation/untimeout.js (100%) rename {commands => src/commands}/Moderation/warn.c.js (100%) rename {commands => src/commands}/Moderation/warns.js (100%) rename {commands => src/commands}/Music/back.js (100%) rename {commands => src/commands}/Music/clips.js (100%) rename {commands => src/commands}/Music/loop.js (100%) rename {commands => src/commands}/Music/nowplaying.js (100%) rename {commands => src/commands}/Music/play.c.js (100%) rename {commands => src/commands}/Music/play.js (100%) rename {commands => src/commands}/Music/queue.js (100%) rename {commands => src/commands}/Music/seek.js (100%) rename {commands => src/commands}/Music/shuffle.js (100%) rename {commands => src/commands}/Music/skip.js (100%) rename {commands => src/commands}/Music/stop.js (100%) rename {commands => src/commands}/Music/volume.js (100%) rename {commands => src/commands}/Owner/debug.js (100%) rename {commands => src/commands}/Owner/eval.js (100%) rename {commands => src/commands}/Owner/reload.js (100%) rename {commands => src/commands}/Owner/say.js (100%) rename {commands => src/commands}/Owner/servers.js (100%) rename {commands => src/commands}/Tickets/adduser.js (100%) rename {commands => src/commands}/Tickets/closeticket.js (100%) rename {commands => src/commands}/Tickets/createticketembed.js (100%) rename {commands => src/commands}/Tickets/removeuser.js (100%) create mode 100644 src/constants/index.js rename {events => src/events}/CommandHandler.js (100%) rename {events => src/events}/Guild/guildBanAdd.js (100%) rename {events => src/events}/Guild/guildCreate.js (100%) rename {events => src/events}/Guild/guildDelete.js (100%) rename {events => src/events}/Guild/guildMemberAdd.js (100%) rename {events => src/events}/Guild/guildMemberRemove.js (100%) rename {events => src/events}/Guild/guildMemberUpdate.js (100%) rename {events => src/events}/MessageHandler.js (100%) rename {events => src/events}/Monitoring/messageDelete.js (100%) rename {events => src/events}/Monitoring/messageUpdate.js (100%) rename {events => src/events}/Ready.js (100%) rename {events => src/events}/TicketsButton.js (100%) rename {handlers => src/handlers}/command-handler/functions/registerCommands.js (100%) rename {handlers => src/handlers}/command-handler/index.js (100%) rename {handlers => src/handlers}/command-handler/utils/differentcommands.js (100%) rename {handlers => src/handlers}/event-handler/index.js (100%) rename {helpers => src/helpers}/birthdays.js (100%) rename {helpers => src/helpers}/checkReminds.js (100%) rename {helpers => src/helpers}/cleanup.js (100%) rename {helpers => src/helpers}/extenders.js (100%) rename {helpers => src/helpers}/functions.js (100%) rename {helpers => src/helpers}/languages.js (100%) rename {helpers => src/helpers}/logger.js (100%) rename {helpers => src/helpers}/tictactoe.js (100%) rename index.js => src/index.js (97%) rename {languages => src/languages}/en-US/administration/addemoji.json (100%) rename {languages => src/languages}/en-US/administration/automod.json (100%) rename {languages => src/languages}/en-US/administration/autorole.json (100%) rename {languages => src/languages}/en-US/administration/config.json (100%) rename {languages => src/languages}/en-US/administration/deletemod.json (100%) rename {languages => src/languages}/en-US/administration/goodbye.json (100%) rename {languages => src/languages}/en-US/administration/selectroles.json (100%) rename {languages => src/languages}/en-US/administration/set.json (100%) rename {languages => src/languages}/en-US/administration/setlang.json (100%) rename {languages => src/languages}/en-US/administration/stealemoji.json (100%) rename {languages => src/languages}/en-US/administration/welcome.json (100%) rename {languages => src/languages}/en-US/beatrun/courses.json (100%) rename {languages => src/languages}/en-US/common.json (100%) rename {languages => src/languages}/en-US/economy/achievements.json (100%) rename {languages => src/languages}/en-US/economy/bank.json (100%) rename {languages => src/languages}/en-US/economy/birthdate.json (100%) rename {languages => src/languages}/en-US/economy/divorce.json (100%) rename {languages => src/languages}/en-US/economy/importmee6.json (100%) rename {languages => src/languages}/en-US/economy/leaderboard.json (100%) rename {languages => src/languages}/en-US/economy/marry.json (100%) rename {languages => src/languages}/en-US/economy/money.json (100%) rename {languages => src/languages}/en-US/economy/pay.json (100%) rename {languages => src/languages}/en-US/economy/profile.json (100%) rename {languages => src/languages}/en-US/economy/rep.json (100%) rename {languages => src/languages}/en-US/economy/rob.json (100%) rename {languages => src/languages}/en-US/economy/setbio.json (100%) rename {languages => src/languages}/en-US/economy/slots.json (100%) rename {languages => src/languages}/en-US/economy/transactions.json (100%) rename {languages => src/languages}/en-US/economy/work.json (100%) rename {languages => src/languages}/en-US/fun/8ball.json (100%) rename {languages => src/languages}/en-US/fun/cat.json (100%) rename {languages => src/languages}/en-US/fun/dog.json (100%) rename {languages => src/languages}/en-US/fun/lmgtfy.json (100%) rename {languages => src/languages}/en-US/fun/lovecalc.json (100%) rename {languages => src/languages}/en-US/fun/memes.json (100%) rename {languages => src/languages}/en-US/fun/number.json (100%) rename {languages => src/languages}/en-US/fun/tictactoe.json (100%) rename {languages => src/languages}/en-US/general/afk.json (100%) rename {languages => src/languages}/en-US/general/avatar.json (100%) rename {languages => src/languages}/en-US/general/boosters.json (100%) rename {languages => src/languages}/en-US/general/emoji.json (100%) rename {languages => src/languages}/en-US/general/help.json (100%) rename {languages => src/languages}/en-US/general/info.json (100%) rename {languages => src/languages}/en-US/general/minecraft.json (100%) rename {languages => src/languages}/en-US/general/ping.json (100%) rename {languages => src/languages}/en-US/general/remindme.json (100%) rename {languages => src/languages}/en-US/general/reminds.json (100%) rename {languages => src/languages}/en-US/general/report.json (100%) rename {languages => src/languages}/en-US/general/shorturl.json (100%) rename {languages => src/languages}/en-US/general/staff.json (100%) rename {languages => src/languages}/en-US/general/stats.json (100%) rename {languages => src/languages}/en-US/general/suggest.json (100%) rename {languages => src/languages}/en-US/general/whois.json (100%) rename {languages => src/languages}/en-US/iat/checkjar.json (100%) rename {languages => src/languages}/en-US/misc.json (100%) rename {languages => src/languages}/en-US/moderation/ban.json (100%) rename {languages => src/languages}/en-US/moderation/clear.json (100%) rename {languages => src/languages}/en-US/moderation/clearwarns.json (100%) rename {languages => src/languages}/en-US/moderation/giveaway.json (100%) rename {languages => src/languages}/en-US/moderation/kick.json (100%) rename {languages => src/languages}/en-US/moderation/unban.json (100%) rename {languages => src/languages}/en-US/moderation/untimeout.json (100%) rename {languages => src/languages}/en-US/moderation/warn.json (100%) rename {languages => src/languages}/en-US/moderation/warns.json (100%) rename {languages => src/languages}/en-US/music/back.json (100%) rename {languages => src/languages}/en-US/music/clips.json (100%) rename {languages => src/languages}/en-US/music/loop.json (100%) rename {languages => src/languages}/en-US/music/nowplaying.json (100%) rename {languages => src/languages}/en-US/music/play.json (100%) rename {languages => src/languages}/en-US/music/queue.json (100%) rename {languages => src/languages}/en-US/music/seek.json (100%) rename {languages => src/languages}/en-US/music/shuffle.json (100%) rename {languages => src/languages}/en-US/music/skip.json (100%) rename {languages => src/languages}/en-US/music/stop.json (100%) rename {languages => src/languages}/en-US/music/volume.json (100%) rename {languages => src/languages}/en-US/owner/announcement.json (100%) rename {languages => src/languages}/en-US/owner/debug.json (100%) rename {languages => src/languages}/en-US/owner/eval.json (100%) rename {languages => src/languages}/en-US/owner/reload.json (100%) rename {languages => src/languages}/en-US/owner/say.json (100%) rename {languages => src/languages}/en-US/owner/servers.json (100%) rename {languages => src/languages}/en-US/tickets/adduser.json (100%) rename {languages => src/languages}/en-US/tickets/closeticket.json (100%) rename {languages => src/languages}/en-US/tickets/createticketembed.json (100%) rename {languages => src/languages}/en-US/tickets/removeuser.json (100%) rename {languages => src/languages}/language-meta.js (100%) rename {languages => src/languages}/ru-RU/administration/addemoji.json (100%) rename {languages => src/languages}/ru-RU/administration/automod.json (100%) rename {languages => src/languages}/ru-RU/administration/autorole.json (100%) rename {languages => src/languages}/ru-RU/administration/config.json (100%) rename {languages => src/languages}/ru-RU/administration/deletemod.json (100%) rename {languages => src/languages}/ru-RU/administration/goodbye.json (100%) rename {languages => src/languages}/ru-RU/administration/selectroles.json (100%) rename {languages => src/languages}/ru-RU/administration/set.json (100%) rename {languages => src/languages}/ru-RU/administration/setlang.json (100%) rename {languages => src/languages}/ru-RU/administration/stealemoji.json (100%) rename {languages => src/languages}/ru-RU/administration/welcome.json (100%) rename {languages => src/languages}/ru-RU/beatrun/courses.json (100%) rename {languages => src/languages}/ru-RU/common.json (100%) rename {languages => src/languages}/ru-RU/economy/achievements.json (100%) rename {languages => src/languages}/ru-RU/economy/bank.json (100%) rename {languages => src/languages}/ru-RU/economy/birthdate.json (100%) rename {languages => src/languages}/ru-RU/economy/divorce.json (100%) rename {languages => src/languages}/ru-RU/economy/importmee6.json (100%) rename {languages => src/languages}/ru-RU/economy/leaderboard.json (100%) rename {languages => src/languages}/ru-RU/economy/marry.json (100%) rename {languages => src/languages}/ru-RU/economy/money.json (100%) rename {languages => src/languages}/ru-RU/economy/pay.json (100%) rename {languages => src/languages}/ru-RU/economy/profile.json (100%) rename {languages => src/languages}/ru-RU/economy/rep.json (100%) rename {languages => src/languages}/ru-RU/economy/rob.json (100%) rename {languages => src/languages}/ru-RU/economy/setbio.json (100%) rename {languages => src/languages}/ru-RU/economy/slots.json (100%) rename {languages => src/languages}/ru-RU/economy/transactions.json (100%) rename {languages => src/languages}/ru-RU/economy/work.json (100%) rename {languages => src/languages}/ru-RU/fun/8ball.json (100%) rename {languages => src/languages}/ru-RU/fun/cat.json (100%) rename {languages => src/languages}/ru-RU/fun/dog.json (100%) rename {languages => src/languages}/ru-RU/fun/lmgtfy.json (100%) rename {languages => src/languages}/ru-RU/fun/lovecalc.json (100%) rename {languages => src/languages}/ru-RU/fun/memes.json (100%) rename {languages => src/languages}/ru-RU/fun/number.json (100%) rename {languages => src/languages}/ru-RU/fun/tictactoe.json (100%) rename {languages => src/languages}/ru-RU/general/afk.json (100%) rename {languages => src/languages}/ru-RU/general/avatar.json (100%) rename {languages => src/languages}/ru-RU/general/boosters.json (100%) rename {languages => src/languages}/ru-RU/general/emoji.json (100%) rename {languages => src/languages}/ru-RU/general/help.json (100%) rename {languages => src/languages}/ru-RU/general/info.json (100%) rename {languages => src/languages}/ru-RU/general/minecraft.json (100%) rename {languages => src/languages}/ru-RU/general/ping.json (100%) rename {languages => src/languages}/ru-RU/general/remindme.json (100%) rename {languages => src/languages}/ru-RU/general/reminds.json (100%) rename {languages => src/languages}/ru-RU/general/report.json (100%) rename {languages => src/languages}/ru-RU/general/shorturl.json (100%) rename {languages => src/languages}/ru-RU/general/staff.json (100%) rename {languages => src/languages}/ru-RU/general/stats.json (100%) rename {languages => src/languages}/ru-RU/general/suggest.json (100%) rename {languages => src/languages}/ru-RU/general/whois.json (100%) rename {languages => src/languages}/ru-RU/iat/checkjar.json (100%) rename {languages => src/languages}/ru-RU/misc.json (100%) rename {languages => src/languages}/ru-RU/moderation/ban.json (100%) rename {languages => src/languages}/ru-RU/moderation/clear.json (100%) rename {languages => src/languages}/ru-RU/moderation/clearwarns.json (100%) rename {languages => src/languages}/ru-RU/moderation/giveaway.json (100%) rename {languages => src/languages}/ru-RU/moderation/kick.json (100%) rename {languages => src/languages}/ru-RU/moderation/unban.json (100%) rename {languages => src/languages}/ru-RU/moderation/untimeout.json (100%) rename {languages => src/languages}/ru-RU/moderation/warn.json (100%) rename {languages => src/languages}/ru-RU/moderation/warns.json (100%) rename {languages => src/languages}/ru-RU/music/back.json (100%) rename {languages => src/languages}/ru-RU/music/clips.json (100%) rename {languages => src/languages}/ru-RU/music/loop.json (100%) rename {languages => src/languages}/ru-RU/music/nowplaying.json (100%) rename {languages => src/languages}/ru-RU/music/play.json (100%) rename {languages => src/languages}/ru-RU/music/queue.json (100%) rename {languages => src/languages}/ru-RU/music/seek.json (100%) rename {languages => src/languages}/ru-RU/music/shuffle.json (100%) rename {languages => src/languages}/ru-RU/music/skip.json (100%) rename {languages => src/languages}/ru-RU/music/stop.json (100%) rename {languages => src/languages}/ru-RU/music/volume.json (100%) rename {languages => src/languages}/ru-RU/owner/announcement.json (100%) rename {languages => src/languages}/ru-RU/owner/debug.json (100%) rename {languages => src/languages}/ru-RU/owner/eval.json (100%) rename {languages => src/languages}/ru-RU/owner/reload.json (100%) rename {languages => src/languages}/ru-RU/owner/say.json (100%) rename {languages => src/languages}/ru-RU/owner/servers.json (100%) rename {languages => src/languages}/ru-RU/tickets/adduser.json (100%) rename {languages => src/languages}/ru-RU/tickets/closeticket.json (100%) rename {languages => src/languages}/ru-RU/tickets/createticketembed.json (100%) rename {languages => src/languages}/ru-RU/tickets/removeuser.json (100%) rename {languages => src/languages}/uk-UA/administration/addemoji.json (100%) rename {languages => src/languages}/uk-UA/administration/automod.json (100%) rename {languages => src/languages}/uk-UA/administration/autorole.json (100%) rename {languages => src/languages}/uk-UA/administration/config.json (100%) rename {languages => src/languages}/uk-UA/administration/deletemod.json (100%) rename {languages => src/languages}/uk-UA/administration/goodbye.json (100%) rename {languages => src/languages}/uk-UA/administration/selectroles.json (100%) rename {languages => src/languages}/uk-UA/administration/set.json (100%) rename {languages => src/languages}/uk-UA/administration/setlang.json (100%) rename {languages => src/languages}/uk-UA/administration/stealemoji.json (100%) rename {languages => src/languages}/uk-UA/administration/welcome.json (100%) rename {languages => src/languages}/uk-UA/beatrun/courses.json (100%) rename {languages => src/languages}/uk-UA/common.json (100%) rename {languages => src/languages}/uk-UA/economy/achievements.json (100%) rename {languages => src/languages}/uk-UA/economy/bank.json (100%) rename {languages => src/languages}/uk-UA/economy/birthdate.json (100%) rename {languages => src/languages}/uk-UA/economy/divorce.json (100%) rename {languages => src/languages}/uk-UA/economy/importmee6.json (100%) rename {languages => src/languages}/uk-UA/economy/leaderboard.json (100%) rename {languages => src/languages}/uk-UA/economy/marry.json (100%) rename {languages => src/languages}/uk-UA/economy/money.json (100%) rename {languages => src/languages}/uk-UA/economy/pay.json (100%) rename {languages => src/languages}/uk-UA/economy/profile.json (100%) rename {languages => src/languages}/uk-UA/economy/rep.json (100%) rename {languages => src/languages}/uk-UA/economy/rob.json (100%) rename {languages => src/languages}/uk-UA/economy/setbio.json (100%) rename {languages => src/languages}/uk-UA/economy/slots.json (100%) rename {languages => src/languages}/uk-UA/economy/transactions.json (100%) rename {languages => src/languages}/uk-UA/economy/work.json (100%) rename {languages => src/languages}/uk-UA/fun/8ball.json (100%) rename {languages => src/languages}/uk-UA/fun/cat.json (100%) rename {languages => src/languages}/uk-UA/fun/dog.json (100%) rename {languages => src/languages}/uk-UA/fun/lmgtfy.json (100%) rename {languages => src/languages}/uk-UA/fun/lovecalc.json (100%) rename {languages => src/languages}/uk-UA/fun/memes.json (100%) rename {languages => src/languages}/uk-UA/fun/number.json (100%) rename {languages => src/languages}/uk-UA/fun/tictactoe.json (100%) rename {languages => src/languages}/uk-UA/general/afk.json (100%) rename {languages => src/languages}/uk-UA/general/avatar.json (100%) rename {languages => src/languages}/uk-UA/general/boosters.json (100%) rename {languages => src/languages}/uk-UA/general/emoji.json (100%) rename {languages => src/languages}/uk-UA/general/help.json (100%) rename {languages => src/languages}/uk-UA/general/info.json (100%) rename {languages => src/languages}/uk-UA/general/minecraft.json (100%) rename {languages => src/languages}/uk-UA/general/ping.json (100%) rename {languages => src/languages}/uk-UA/general/remindme.json (100%) rename {languages => src/languages}/uk-UA/general/reminds.json (100%) rename {languages => src/languages}/uk-UA/general/report.json (100%) rename {languages => src/languages}/uk-UA/general/shorturl.json (100%) rename {languages => src/languages}/uk-UA/general/staff.json (100%) rename {languages => src/languages}/uk-UA/general/stats.json (100%) rename {languages => src/languages}/uk-UA/general/suggest.json (100%) rename {languages => src/languages}/uk-UA/general/whois.json (100%) rename {languages => src/languages}/uk-UA/iat/checkjar.json (100%) rename {languages => src/languages}/uk-UA/misc.json (100%) rename {languages => src/languages}/uk-UA/moderation/ban.json (100%) rename {languages => src/languages}/uk-UA/moderation/clear.json (100%) rename {languages => src/languages}/uk-UA/moderation/clearwarns.json (100%) rename {languages => src/languages}/uk-UA/moderation/giveaway.json (100%) rename {languages => src/languages}/uk-UA/moderation/kick.json (100%) rename {languages => src/languages}/uk-UA/moderation/unban.json (100%) rename {languages => src/languages}/uk-UA/moderation/untimeout.json (100%) rename {languages => src/languages}/uk-UA/moderation/warn.json (100%) rename {languages => src/languages}/uk-UA/moderation/warns.json (100%) rename {languages => src/languages}/uk-UA/music/back.json (100%) rename {languages => src/languages}/uk-UA/music/clips.json (100%) rename {languages => src/languages}/uk-UA/music/loop.json (100%) rename {languages => src/languages}/uk-UA/music/nowplaying.json (100%) rename {languages => src/languages}/uk-UA/music/play.json (100%) rename {languages => src/languages}/uk-UA/music/queue.json (100%) rename {languages => src/languages}/uk-UA/music/seek.json (100%) rename {languages => src/languages}/uk-UA/music/shuffle.json (100%) rename {languages => src/languages}/uk-UA/music/skip.json (100%) rename {languages => src/languages}/uk-UA/music/stop.json (100%) rename {languages => src/languages}/uk-UA/music/volume.json (100%) rename {languages => src/languages}/uk-UA/owner/announcement.json (100%) rename {languages => src/languages}/uk-UA/owner/debug.json (100%) rename {languages => src/languages}/uk-UA/owner/eval.json (100%) rename {languages => src/languages}/uk-UA/owner/reload.json (100%) rename {languages => src/languages}/uk-UA/owner/say.json (100%) rename {languages => src/languages}/uk-UA/owner/servers.json (100%) rename {languages => src/languages}/uk-UA/tickets/adduser.json (100%) rename {languages => src/languages}/uk-UA/tickets/closeticket.json (100%) rename {languages => src/languages}/uk-UA/tickets/createticketembed.json (100%) rename {languages => src/languages}/uk-UA/tickets/removeuser.json (100%) rename base/Guild.js => src/models/GuildModel.js (100%) rename base/Member.js => src/models/MemberModel.js (100%) rename base/User.js => src/models/UserModel.js (100%) rename {newCommands => src/newCommands}/Fun/8ball.js (100%) rename {newEvents => src/newEvents}/ready.js (100%) create mode 100644 src/structures/client.js rename {utils => src/utils}/get-path.js (65%) rename {utils => src/utils}/resolve-file.js (63%) diff --git a/base/newClient.js b/base/newClient.js deleted file mode 100644 index ae3e9497..00000000 --- a/base/newClient.js +++ /dev/null @@ -1,19 +0,0 @@ -import { Client } from "discord.js"; -import { config } from "../config.js"; -import { init as initCommands } from "../handlers/command-handler/index.js"; -import { init as initEvents } from "../handlers/event-handler/index.js"; - -export class ExtendedClient extends Client { - /** - * @param {import("discord.js").ClientOptions} options - */ - constructor(options) { - super(options); - } - - async init() { - return this.login(config.token) - .then(async () => await Promise.all([initCommands(), initEvents()])) - .catch(console.error); - } -} diff --git a/package.json b/package.json index f69dbec3..1b98402d 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,10 @@ "name": "jaba", "version": "4.6.7", "description": "My Discord Bot", - "main": "index.js", + "main": "src/index.js", "type": "module", "scripts": { - "start": "node ." + "start": "node src/index.js" }, "author": "https://github.com/JonnyBro", "dependencies": { diff --git a/src/adapters/database/IDatabaseAdapter.js b/src/adapters/database/IDatabaseAdapter.js new file mode 100644 index 00000000..feee308f --- /dev/null +++ b/src/adapters/database/IDatabaseAdapter.js @@ -0,0 +1,9 @@ +export default class IDatabaseAdapter { + async connect() { + throw new Error("Method `connect` not implemented."); + } + + async disconnect() { + throw new Error("Method `disconnect` not implemented."); + } +} diff --git a/src/adapters/database/MongooseAdapter.js b/src/adapters/database/MongooseAdapter.js new file mode 100644 index 00000000..f6d244c3 --- /dev/null +++ b/src/adapters/database/MongooseAdapter.js @@ -0,0 +1,31 @@ +import mongoose from "mongoose"; +import IDatabaseAdapter from "./IDatabaseAdapter.js"; + +export default class MongooseAdapter extends IDatabaseAdapter { + /** + * + * @param {string} uri - database url connect + * @param {mongoose.ConnectOptions} options - database connect options + */ + constructor(uri, options = {}) { + super(); + + if (!uri) { + throw new Error("MongooseAdapter: URI is required."); + } + + this.uri = uri; + + this.options = options; + } + + async connect() { + await mongoose.connect(this.uri, this.options); + console.log("Database connected."); + } + + async disconnect() { + await mongoose.disconnect(); + console.log("Database disconnected."); + } +} diff --git a/assets/fonts/KeepCalm-Medium.ttf b/src/assets/fonts/KeepCalm-Medium.ttf similarity index 100% rename from assets/fonts/KeepCalm-Medium.ttf rename to src/assets/fonts/KeepCalm-Medium.ttf diff --git a/assets/fonts/RubikMonoOne-Regular.ttf b/src/assets/fonts/RubikMonoOne-Regular.ttf similarity index 100% rename from assets/fonts/RubikMonoOne-Regular.ttf rename to src/assets/fonts/RubikMonoOne-Regular.ttf diff --git a/assets/img/achievements/achievement1.png b/src/assets/img/achievements/achievement1.png similarity index 100% rename from assets/img/achievements/achievement1.png rename to src/assets/img/achievements/achievement1.png diff --git a/assets/img/achievements/achievement2.png b/src/assets/img/achievements/achievement2.png similarity index 100% rename from assets/img/achievements/achievement2.png rename to src/assets/img/achievements/achievement2.png diff --git a/assets/img/achievements/achievement3.png b/src/assets/img/achievements/achievement3.png similarity index 100% rename from assets/img/achievements/achievement3.png rename to src/assets/img/achievements/achievement3.png diff --git a/assets/img/achievements/achievement4.png b/src/assets/img/achievements/achievement4.png similarity index 100% rename from assets/img/achievements/achievement4.png rename to src/assets/img/achievements/achievement4.png diff --git a/assets/img/achievements/achievement5.png b/src/assets/img/achievements/achievement5.png similarity index 100% rename from assets/img/achievements/achievement5.png rename to src/assets/img/achievements/achievement5.png diff --git a/assets/img/achievements/achievement6.png b/src/assets/img/achievements/achievement6.png similarity index 100% rename from assets/img/achievements/achievement6.png rename to src/assets/img/achievements/achievement6.png diff --git a/assets/img/achievements/achievement7.png b/src/assets/img/achievements/achievement7.png similarity index 100% rename from assets/img/achievements/achievement7.png rename to src/assets/img/achievements/achievement7.png diff --git a/assets/img/achievements/achievement_colored1.png b/src/assets/img/achievements/achievement_colored1.png similarity index 100% rename from assets/img/achievements/achievement_colored1.png rename to src/assets/img/achievements/achievement_colored1.png diff --git a/assets/img/achievements/achievement_colored2.png b/src/assets/img/achievements/achievement_colored2.png similarity index 100% rename from assets/img/achievements/achievement_colored2.png rename to src/assets/img/achievements/achievement_colored2.png diff --git a/assets/img/achievements/achievement_colored3.png b/src/assets/img/achievements/achievement_colored3.png similarity index 100% rename from assets/img/achievements/achievement_colored3.png rename to src/assets/img/achievements/achievement_colored3.png diff --git a/assets/img/achievements/achievement_colored4.png b/src/assets/img/achievements/achievement_colored4.png similarity index 100% rename from assets/img/achievements/achievement_colored4.png rename to src/assets/img/achievements/achievement_colored4.png diff --git a/assets/img/achievements/achievement_colored5.png b/src/assets/img/achievements/achievement_colored5.png similarity index 100% rename from assets/img/achievements/achievement_colored5.png rename to src/assets/img/achievements/achievement_colored5.png diff --git a/assets/img/achievements/achievement_colored6.png b/src/assets/img/achievements/achievement_colored6.png similarity index 100% rename from assets/img/achievements/achievement_colored6.png rename to src/assets/img/achievements/achievement_colored6.png diff --git a/assets/img/achievements/achievement_colored7.png b/src/assets/img/achievements/achievement_colored7.png similarity index 100% rename from assets/img/achievements/achievement_colored7.png rename to src/assets/img/achievements/achievement_colored7.png diff --git a/assets/img/achievements/achievement_unlocked1.png b/src/assets/img/achievements/achievement_unlocked1.png similarity index 100% rename from assets/img/achievements/achievement_unlocked1.png rename to src/assets/img/achievements/achievement_unlocked1.png diff --git a/assets/img/achievements/achievement_unlocked2.png b/src/assets/img/achievements/achievement_unlocked2.png similarity index 100% rename from assets/img/achievements/achievement_unlocked2.png rename to src/assets/img/achievements/achievement_unlocked2.png diff --git a/assets/img/achievements/achievement_unlocked3.png b/src/assets/img/achievements/achievement_unlocked3.png similarity index 100% rename from assets/img/achievements/achievement_unlocked3.png rename to src/assets/img/achievements/achievement_unlocked3.png diff --git a/assets/img/achievements/achievement_unlocked4.png b/src/assets/img/achievements/achievement_unlocked4.png similarity index 100% rename from assets/img/achievements/achievement_unlocked4.png rename to src/assets/img/achievements/achievement_unlocked4.png diff --git a/assets/img/achievements/achievement_unlocked5.png b/src/assets/img/achievements/achievement_unlocked5.png similarity index 100% rename from assets/img/achievements/achievement_unlocked5.png rename to src/assets/img/achievements/achievement_unlocked5.png diff --git a/assets/img/achievements/achievement_unlocked6.png b/src/assets/img/achievements/achievement_unlocked6.png similarity index 100% rename from assets/img/achievements/achievement_unlocked6.png rename to src/assets/img/achievements/achievement_unlocked6.png diff --git a/assets/img/achievements/achievement_unlocked7.png b/src/assets/img/achievements/achievement_unlocked7.png similarity index 100% rename from assets/img/achievements/achievement_unlocked7.png rename to src/assets/img/achievements/achievement_unlocked7.png diff --git a/assets/img/greetings_background.png b/src/assets/img/greetings_background.png similarity index 100% rename from assets/img/greetings_background.png rename to src/assets/img/greetings_background.png diff --git a/base/BaseCommand.js b/src/base/BaseCommand.js similarity index 100% rename from base/BaseCommand.js rename to src/base/BaseCommand.js diff --git a/base/BaseEvent.js b/src/base/BaseEvent.js similarity index 100% rename from base/BaseEvent.js rename to src/base/BaseEvent.js diff --git a/base/Client.js b/src/base/Client.js similarity index 96% rename from base/Client.js rename to src/base/Client.js index b8217352..45f45876 100644 --- a/base/Client.js +++ b/src/base/Client.js @@ -10,8 +10,8 @@ import { promises as fs } from "fs"; import { setTimeout } from "timers/promises"; import mongoose from "mongoose"; -import config from "../config.js"; -import * as emojis from "../emojis.json"; +import config from "../../config.js"; +import * as emojis from "../../emojis.json"; import langs from "../languages/language-meta.js"; import logger from "../helpers/logger.js"; import * as funcs from "../helpers/functions.js"; @@ -327,7 +327,7 @@ class JaBaClient extends Client { /** * Returns a User data from the database. * @param {string} userID - The ID of the user to find or create. - * @returns {Promise} The user data object, either retrieved from the database or newly created. + * @returns {Promise} The user data object, either retrieved from the database or newly created. */ async getUserData(userID) { let userData = await this.usersData.findOne({ id: userID }); @@ -346,7 +346,7 @@ class JaBaClient extends Client { * Returns a Member data from the database. * @param {string} memberId - The ID of the member to find or create. * @param {string} guildId - The ID of the guild the member belongs to. - * @returns {Promise} The member data object, either retrieved from the database or newly created. + * @returns {Promise} The member data object, either retrieved from the database or newly created. */ async getMemberData(memberId, guildId) { let memberData = await this.membersData.findOne({ guildID: guildId, id: memberId }); @@ -370,7 +370,7 @@ class JaBaClient extends Client { /** * Returns a Guild data from the database. * @param {string} guildId - The ID of the guild to find or create. - * @returns {Promise} The guild data object, either retrieved from the database or newly created. + * @returns {Promise} The guild data object, either retrieved from the database or newly created. */ async getGuildData(guildId) { let guildData = await this.guildsData.findOne({ id: guildId }).populate("members"); diff --git a/commands/Administration/addemoji.js b/src/commands/Administration/addemoji.js similarity index 100% rename from commands/Administration/addemoji.js rename to src/commands/Administration/addemoji.js diff --git a/commands/Administration/automod.js b/src/commands/Administration/automod.js similarity index 100% rename from commands/Administration/automod.js rename to src/commands/Administration/automod.js diff --git a/commands/Administration/autorole.js b/src/commands/Administration/autorole.js similarity index 100% rename from commands/Administration/autorole.js rename to src/commands/Administration/autorole.js diff --git a/commands/Administration/config.js b/src/commands/Administration/config.js similarity index 100% rename from commands/Administration/config.js rename to src/commands/Administration/config.js diff --git a/commands/Administration/goodbye.js b/src/commands/Administration/goodbye.js similarity index 100% rename from commands/Administration/goodbye.js rename to src/commands/Administration/goodbye.js diff --git a/commands/Administration/selectroles.js b/src/commands/Administration/selectroles.js similarity index 100% rename from commands/Administration/selectroles.js rename to src/commands/Administration/selectroles.js diff --git a/commands/Administration/set.js b/src/commands/Administration/set.js similarity index 100% rename from commands/Administration/set.js rename to src/commands/Administration/set.js diff --git a/commands/Administration/setlang.js b/src/commands/Administration/setlang.js similarity index 100% rename from commands/Administration/setlang.js rename to src/commands/Administration/setlang.js diff --git a/commands/Administration/stealemoji.js b/src/commands/Administration/stealemoji.js similarity index 100% rename from commands/Administration/stealemoji.js rename to src/commands/Administration/stealemoji.js diff --git a/commands/Administration/welcome.js b/src/commands/Administration/welcome.js similarity index 100% rename from commands/Administration/welcome.js rename to src/commands/Administration/welcome.js diff --git a/commands/Beatrun/courses.js b/src/commands/Beatrun/courses.js similarity index 100% rename from commands/Beatrun/courses.js rename to src/commands/Beatrun/courses.js diff --git a/commands/Economy/achievements.js b/src/commands/Economy/achievements.js similarity index 100% rename from commands/Economy/achievements.js rename to src/commands/Economy/achievements.js diff --git a/commands/Economy/bank.js b/src/commands/Economy/bank.js similarity index 100% rename from commands/Economy/bank.js rename to src/commands/Economy/bank.js diff --git a/commands/Economy/birthdate.js b/src/commands/Economy/birthdate.js similarity index 100% rename from commands/Economy/birthdate.js rename to src/commands/Economy/birthdate.js diff --git a/commands/Economy/divorce.js b/src/commands/Economy/divorce.js similarity index 100% rename from commands/Economy/divorce.js rename to src/commands/Economy/divorce.js diff --git a/commands/Economy/leaderboard.js b/src/commands/Economy/leaderboard.js similarity index 100% rename from commands/Economy/leaderboard.js rename to src/commands/Economy/leaderboard.js diff --git a/commands/Economy/marry.js b/src/commands/Economy/marry.js similarity index 100% rename from commands/Economy/marry.js rename to src/commands/Economy/marry.js diff --git a/commands/Economy/money.js b/src/commands/Economy/money.js similarity index 100% rename from commands/Economy/money.js rename to src/commands/Economy/money.js diff --git a/commands/Economy/pay.js b/src/commands/Economy/pay.js similarity index 100% rename from commands/Economy/pay.js rename to src/commands/Economy/pay.js diff --git a/commands/Economy/profile.js b/src/commands/Economy/profile.js similarity index 100% rename from commands/Economy/profile.js rename to src/commands/Economy/profile.js diff --git a/commands/Economy/rep.js b/src/commands/Economy/rep.js similarity index 100% rename from commands/Economy/rep.js rename to src/commands/Economy/rep.js diff --git a/commands/Economy/rob.js b/src/commands/Economy/rob.js similarity index 100% rename from commands/Economy/rob.js rename to src/commands/Economy/rob.js diff --git a/commands/Economy/setbio.js b/src/commands/Economy/setbio.js similarity index 100% rename from commands/Economy/setbio.js rename to src/commands/Economy/setbio.js diff --git a/commands/Economy/slots.js b/src/commands/Economy/slots.js similarity index 100% rename from commands/Economy/slots.js rename to src/commands/Economy/slots.js diff --git a/commands/Economy/transactions.js b/src/commands/Economy/transactions.js similarity index 100% rename from commands/Economy/transactions.js rename to src/commands/Economy/transactions.js diff --git a/commands/Economy/work.js b/src/commands/Economy/work.js similarity index 100% rename from commands/Economy/work.js rename to src/commands/Economy/work.js diff --git a/commands/Fun/8ball.js b/src/commands/Fun/8ball.js similarity index 100% rename from commands/Fun/8ball.js rename to src/commands/Fun/8ball.js diff --git a/commands/Fun/cat.js b/src/commands/Fun/cat.js similarity index 100% rename from commands/Fun/cat.js rename to src/commands/Fun/cat.js diff --git a/commands/Fun/dog.js b/src/commands/Fun/dog.js similarity index 100% rename from commands/Fun/dog.js rename to src/commands/Fun/dog.js diff --git a/commands/Fun/lmgtfy.js b/src/commands/Fun/lmgtfy.js similarity index 100% rename from commands/Fun/lmgtfy.js rename to src/commands/Fun/lmgtfy.js diff --git a/commands/Fun/lovecalc.js b/src/commands/Fun/lovecalc.js similarity index 100% rename from commands/Fun/lovecalc.js rename to src/commands/Fun/lovecalc.js diff --git a/commands/Fun/number.js b/src/commands/Fun/number.js similarity index 100% rename from commands/Fun/number.js rename to src/commands/Fun/number.js diff --git a/commands/Fun/tictactoe.js b/src/commands/Fun/tictactoe.js similarity index 100% rename from commands/Fun/tictactoe.js rename to src/commands/Fun/tictactoe.js diff --git a/commands/General/afk.js b/src/commands/General/afk.js similarity index 100% rename from commands/General/afk.js rename to src/commands/General/afk.js diff --git a/commands/General/avatar.c.js b/src/commands/General/avatar.c.js similarity index 100% rename from commands/General/avatar.c.js rename to src/commands/General/avatar.c.js diff --git a/commands/General/avatar.js b/src/commands/General/avatar.js similarity index 100% rename from commands/General/avatar.js rename to src/commands/General/avatar.js diff --git a/commands/General/boosters.js b/src/commands/General/boosters.js similarity index 100% rename from commands/General/boosters.js rename to src/commands/General/boosters.js diff --git a/commands/General/emoji.js b/src/commands/General/emoji.js similarity index 100% rename from commands/General/emoji.js rename to src/commands/General/emoji.js diff --git a/commands/General/help.js b/src/commands/General/help.js similarity index 100% rename from commands/General/help.js rename to src/commands/General/help.js diff --git a/commands/General/info.js b/src/commands/General/info.js similarity index 100% rename from commands/General/info.js rename to src/commands/General/info.js diff --git a/commands/General/minecraft.js b/src/commands/General/minecraft.js similarity index 100% rename from commands/General/minecraft.js rename to src/commands/General/minecraft.js diff --git a/commands/General/ping.js b/src/commands/General/ping.js similarity index 100% rename from commands/General/ping.js rename to src/commands/General/ping.js diff --git a/commands/General/remindme.js b/src/commands/General/remindme.js similarity index 100% rename from commands/General/remindme.js rename to src/commands/General/remindme.js diff --git a/commands/General/reminds.js b/src/commands/General/reminds.js similarity index 100% rename from commands/General/reminds.js rename to src/commands/General/reminds.js diff --git a/commands/General/report.js b/src/commands/General/report.js similarity index 100% rename from commands/General/report.js rename to src/commands/General/report.js diff --git a/commands/General/shorturl.js b/src/commands/General/shorturl.js similarity index 100% rename from commands/General/shorturl.js rename to src/commands/General/shorturl.js diff --git a/commands/General/stats.js b/src/commands/General/stats.js similarity index 100% rename from commands/General/stats.js rename to src/commands/General/stats.js diff --git a/commands/General/suggest.js b/src/commands/General/suggest.js similarity index 100% rename from commands/General/suggest.js rename to src/commands/General/suggest.js diff --git a/commands/General/whois.js b/src/commands/General/whois.js similarity index 100% rename from commands/General/whois.js rename to src/commands/General/whois.js diff --git a/commands/IAT/checkjar.js b/src/commands/IAT/checkjar.js similarity index 100% rename from commands/IAT/checkjar.js rename to src/commands/IAT/checkjar.js diff --git a/commands/Moderation/clear.js b/src/commands/Moderation/clear.js similarity index 100% rename from commands/Moderation/clear.js rename to src/commands/Moderation/clear.js diff --git a/commands/Moderation/clearwarns.js b/src/commands/Moderation/clearwarns.js similarity index 100% rename from commands/Moderation/clearwarns.js rename to src/commands/Moderation/clearwarns.js diff --git a/commands/Moderation/giveaway.js b/src/commands/Moderation/giveaway.js similarity index 100% rename from commands/Moderation/giveaway.js rename to src/commands/Moderation/giveaway.js diff --git a/commands/Moderation/unban.js b/src/commands/Moderation/unban.js similarity index 100% rename from commands/Moderation/unban.js rename to src/commands/Moderation/unban.js diff --git a/commands/Moderation/untimeout.js b/src/commands/Moderation/untimeout.js similarity index 100% rename from commands/Moderation/untimeout.js rename to src/commands/Moderation/untimeout.js diff --git a/commands/Moderation/warn.c.js b/src/commands/Moderation/warn.c.js similarity index 100% rename from commands/Moderation/warn.c.js rename to src/commands/Moderation/warn.c.js diff --git a/commands/Moderation/warns.js b/src/commands/Moderation/warns.js similarity index 100% rename from commands/Moderation/warns.js rename to src/commands/Moderation/warns.js diff --git a/commands/Music/back.js b/src/commands/Music/back.js similarity index 100% rename from commands/Music/back.js rename to src/commands/Music/back.js diff --git a/commands/Music/clips.js b/src/commands/Music/clips.js similarity index 100% rename from commands/Music/clips.js rename to src/commands/Music/clips.js diff --git a/commands/Music/loop.js b/src/commands/Music/loop.js similarity index 100% rename from commands/Music/loop.js rename to src/commands/Music/loop.js diff --git a/commands/Music/nowplaying.js b/src/commands/Music/nowplaying.js similarity index 100% rename from commands/Music/nowplaying.js rename to src/commands/Music/nowplaying.js diff --git a/commands/Music/play.c.js b/src/commands/Music/play.c.js similarity index 100% rename from commands/Music/play.c.js rename to src/commands/Music/play.c.js diff --git a/commands/Music/play.js b/src/commands/Music/play.js similarity index 100% rename from commands/Music/play.js rename to src/commands/Music/play.js diff --git a/commands/Music/queue.js b/src/commands/Music/queue.js similarity index 100% rename from commands/Music/queue.js rename to src/commands/Music/queue.js diff --git a/commands/Music/seek.js b/src/commands/Music/seek.js similarity index 100% rename from commands/Music/seek.js rename to src/commands/Music/seek.js diff --git a/commands/Music/shuffle.js b/src/commands/Music/shuffle.js similarity index 100% rename from commands/Music/shuffle.js rename to src/commands/Music/shuffle.js diff --git a/commands/Music/skip.js b/src/commands/Music/skip.js similarity index 100% rename from commands/Music/skip.js rename to src/commands/Music/skip.js diff --git a/commands/Music/stop.js b/src/commands/Music/stop.js similarity index 100% rename from commands/Music/stop.js rename to src/commands/Music/stop.js diff --git a/commands/Music/volume.js b/src/commands/Music/volume.js similarity index 100% rename from commands/Music/volume.js rename to src/commands/Music/volume.js diff --git a/commands/Owner/debug.js b/src/commands/Owner/debug.js similarity index 100% rename from commands/Owner/debug.js rename to src/commands/Owner/debug.js diff --git a/commands/Owner/eval.js b/src/commands/Owner/eval.js similarity index 100% rename from commands/Owner/eval.js rename to src/commands/Owner/eval.js diff --git a/commands/Owner/reload.js b/src/commands/Owner/reload.js similarity index 100% rename from commands/Owner/reload.js rename to src/commands/Owner/reload.js diff --git a/commands/Owner/say.js b/src/commands/Owner/say.js similarity index 100% rename from commands/Owner/say.js rename to src/commands/Owner/say.js diff --git a/commands/Owner/servers.js b/src/commands/Owner/servers.js similarity index 100% rename from commands/Owner/servers.js rename to src/commands/Owner/servers.js diff --git a/commands/Tickets/adduser.js b/src/commands/Tickets/adduser.js similarity index 100% rename from commands/Tickets/adduser.js rename to src/commands/Tickets/adduser.js diff --git a/commands/Tickets/closeticket.js b/src/commands/Tickets/closeticket.js similarity index 100% rename from commands/Tickets/closeticket.js rename to src/commands/Tickets/closeticket.js diff --git a/commands/Tickets/createticketembed.js b/src/commands/Tickets/createticketembed.js similarity index 100% rename from commands/Tickets/createticketembed.js rename to src/commands/Tickets/createticketembed.js diff --git a/commands/Tickets/removeuser.js b/src/commands/Tickets/removeuser.js similarity index 100% rename from commands/Tickets/removeuser.js rename to src/commands/Tickets/removeuser.js diff --git a/src/constants/index.js b/src/constants/index.js new file mode 100644 index 00000000..5ee045d6 --- /dev/null +++ b/src/constants/index.js @@ -0,0 +1,3 @@ +import path from "node:path"; + +export const PROJECT_ROOT = path.join(import.meta.dirname, ".."); diff --git a/events/CommandHandler.js b/src/events/CommandHandler.js similarity index 100% rename from events/CommandHandler.js rename to src/events/CommandHandler.js diff --git a/events/Guild/guildBanAdd.js b/src/events/Guild/guildBanAdd.js similarity index 100% rename from events/Guild/guildBanAdd.js rename to src/events/Guild/guildBanAdd.js diff --git a/events/Guild/guildCreate.js b/src/events/Guild/guildCreate.js similarity index 100% rename from events/Guild/guildCreate.js rename to src/events/Guild/guildCreate.js diff --git a/events/Guild/guildDelete.js b/src/events/Guild/guildDelete.js similarity index 100% rename from events/Guild/guildDelete.js rename to src/events/Guild/guildDelete.js diff --git a/events/Guild/guildMemberAdd.js b/src/events/Guild/guildMemberAdd.js similarity index 100% rename from events/Guild/guildMemberAdd.js rename to src/events/Guild/guildMemberAdd.js diff --git a/events/Guild/guildMemberRemove.js b/src/events/Guild/guildMemberRemove.js similarity index 100% rename from events/Guild/guildMemberRemove.js rename to src/events/Guild/guildMemberRemove.js diff --git a/events/Guild/guildMemberUpdate.js b/src/events/Guild/guildMemberUpdate.js similarity index 100% rename from events/Guild/guildMemberUpdate.js rename to src/events/Guild/guildMemberUpdate.js diff --git a/events/MessageHandler.js b/src/events/MessageHandler.js similarity index 100% rename from events/MessageHandler.js rename to src/events/MessageHandler.js diff --git a/events/Monitoring/messageDelete.js b/src/events/Monitoring/messageDelete.js similarity index 100% rename from events/Monitoring/messageDelete.js rename to src/events/Monitoring/messageDelete.js diff --git a/events/Monitoring/messageUpdate.js b/src/events/Monitoring/messageUpdate.js similarity index 100% rename from events/Monitoring/messageUpdate.js rename to src/events/Monitoring/messageUpdate.js diff --git a/events/Ready.js b/src/events/Ready.js similarity index 100% rename from events/Ready.js rename to src/events/Ready.js diff --git a/events/TicketsButton.js b/src/events/TicketsButton.js similarity index 100% rename from events/TicketsButton.js rename to src/events/TicketsButton.js diff --git a/handlers/command-handler/functions/registerCommands.js b/src/handlers/command-handler/functions/registerCommands.js similarity index 100% rename from handlers/command-handler/functions/registerCommands.js rename to src/handlers/command-handler/functions/registerCommands.js diff --git a/handlers/command-handler/index.js b/src/handlers/command-handler/index.js similarity index 100% rename from handlers/command-handler/index.js rename to src/handlers/command-handler/index.js diff --git a/handlers/command-handler/utils/differentcommands.js b/src/handlers/command-handler/utils/differentcommands.js similarity index 100% rename from handlers/command-handler/utils/differentcommands.js rename to src/handlers/command-handler/utils/differentcommands.js diff --git a/handlers/event-handler/index.js b/src/handlers/event-handler/index.js similarity index 100% rename from handlers/event-handler/index.js rename to src/handlers/event-handler/index.js diff --git a/helpers/birthdays.js b/src/helpers/birthdays.js similarity index 100% rename from helpers/birthdays.js rename to src/helpers/birthdays.js diff --git a/helpers/checkReminds.js b/src/helpers/checkReminds.js similarity index 100% rename from helpers/checkReminds.js rename to src/helpers/checkReminds.js diff --git a/helpers/cleanup.js b/src/helpers/cleanup.js similarity index 100% rename from helpers/cleanup.js rename to src/helpers/cleanup.js diff --git a/helpers/extenders.js b/src/helpers/extenders.js similarity index 100% rename from helpers/extenders.js rename to src/helpers/extenders.js diff --git a/helpers/functions.js b/src/helpers/functions.js similarity index 100% rename from helpers/functions.js rename to src/helpers/functions.js diff --git a/helpers/languages.js b/src/helpers/languages.js similarity index 100% rename from helpers/languages.js rename to src/helpers/languages.js diff --git a/helpers/logger.js b/src/helpers/logger.js similarity index 100% rename from helpers/logger.js rename to src/helpers/logger.js diff --git a/helpers/tictactoe.js b/src/helpers/tictactoe.js similarity index 100% rename from helpers/tictactoe.js rename to src/helpers/tictactoe.js diff --git a/index.js b/src/index.js similarity index 97% rename from index.js rename to src/index.js index cbab0c0a..3429d899 100644 --- a/index.js +++ b/src/index.js @@ -5,7 +5,7 @@ // import languages from "./helpers/languages.js"; import { GatewayIntentBits } from "discord.js"; -import { ExtendedClient } from "./base/newClient.js"; +import { ExtendedClient } from "./structures/client.js"; export const client = new ExtendedClient({ intents: [ diff --git a/languages/en-US/administration/addemoji.json b/src/languages/en-US/administration/addemoji.json similarity index 100% rename from languages/en-US/administration/addemoji.json rename to src/languages/en-US/administration/addemoji.json diff --git a/languages/en-US/administration/automod.json b/src/languages/en-US/administration/automod.json similarity index 100% rename from languages/en-US/administration/automod.json rename to src/languages/en-US/administration/automod.json diff --git a/languages/en-US/administration/autorole.json b/src/languages/en-US/administration/autorole.json similarity index 100% rename from languages/en-US/administration/autorole.json rename to src/languages/en-US/administration/autorole.json diff --git a/languages/en-US/administration/config.json b/src/languages/en-US/administration/config.json similarity index 100% rename from languages/en-US/administration/config.json rename to src/languages/en-US/administration/config.json diff --git a/languages/en-US/administration/deletemod.json b/src/languages/en-US/administration/deletemod.json similarity index 100% rename from languages/en-US/administration/deletemod.json rename to src/languages/en-US/administration/deletemod.json diff --git a/languages/en-US/administration/goodbye.json b/src/languages/en-US/administration/goodbye.json similarity index 100% rename from languages/en-US/administration/goodbye.json rename to src/languages/en-US/administration/goodbye.json diff --git a/languages/en-US/administration/selectroles.json b/src/languages/en-US/administration/selectroles.json similarity index 100% rename from languages/en-US/administration/selectroles.json rename to src/languages/en-US/administration/selectroles.json diff --git a/languages/en-US/administration/set.json b/src/languages/en-US/administration/set.json similarity index 100% rename from languages/en-US/administration/set.json rename to src/languages/en-US/administration/set.json diff --git a/languages/en-US/administration/setlang.json b/src/languages/en-US/administration/setlang.json similarity index 100% rename from languages/en-US/administration/setlang.json rename to src/languages/en-US/administration/setlang.json diff --git a/languages/en-US/administration/stealemoji.json b/src/languages/en-US/administration/stealemoji.json similarity index 100% rename from languages/en-US/administration/stealemoji.json rename to src/languages/en-US/administration/stealemoji.json diff --git a/languages/en-US/administration/welcome.json b/src/languages/en-US/administration/welcome.json similarity index 100% rename from languages/en-US/administration/welcome.json rename to src/languages/en-US/administration/welcome.json diff --git a/languages/en-US/beatrun/courses.json b/src/languages/en-US/beatrun/courses.json similarity index 100% rename from languages/en-US/beatrun/courses.json rename to src/languages/en-US/beatrun/courses.json diff --git a/languages/en-US/common.json b/src/languages/en-US/common.json similarity index 100% rename from languages/en-US/common.json rename to src/languages/en-US/common.json diff --git a/languages/en-US/economy/achievements.json b/src/languages/en-US/economy/achievements.json similarity index 100% rename from languages/en-US/economy/achievements.json rename to src/languages/en-US/economy/achievements.json diff --git a/languages/en-US/economy/bank.json b/src/languages/en-US/economy/bank.json similarity index 100% rename from languages/en-US/economy/bank.json rename to src/languages/en-US/economy/bank.json diff --git a/languages/en-US/economy/birthdate.json b/src/languages/en-US/economy/birthdate.json similarity index 100% rename from languages/en-US/economy/birthdate.json rename to src/languages/en-US/economy/birthdate.json diff --git a/languages/en-US/economy/divorce.json b/src/languages/en-US/economy/divorce.json similarity index 100% rename from languages/en-US/economy/divorce.json rename to src/languages/en-US/economy/divorce.json diff --git a/languages/en-US/economy/importmee6.json b/src/languages/en-US/economy/importmee6.json similarity index 100% rename from languages/en-US/economy/importmee6.json rename to src/languages/en-US/economy/importmee6.json diff --git a/languages/en-US/economy/leaderboard.json b/src/languages/en-US/economy/leaderboard.json similarity index 100% rename from languages/en-US/economy/leaderboard.json rename to src/languages/en-US/economy/leaderboard.json diff --git a/languages/en-US/economy/marry.json b/src/languages/en-US/economy/marry.json similarity index 100% rename from languages/en-US/economy/marry.json rename to src/languages/en-US/economy/marry.json diff --git a/languages/en-US/economy/money.json b/src/languages/en-US/economy/money.json similarity index 100% rename from languages/en-US/economy/money.json rename to src/languages/en-US/economy/money.json diff --git a/languages/en-US/economy/pay.json b/src/languages/en-US/economy/pay.json similarity index 100% rename from languages/en-US/economy/pay.json rename to src/languages/en-US/economy/pay.json diff --git a/languages/en-US/economy/profile.json b/src/languages/en-US/economy/profile.json similarity index 100% rename from languages/en-US/economy/profile.json rename to src/languages/en-US/economy/profile.json diff --git a/languages/en-US/economy/rep.json b/src/languages/en-US/economy/rep.json similarity index 100% rename from languages/en-US/economy/rep.json rename to src/languages/en-US/economy/rep.json diff --git a/languages/en-US/economy/rob.json b/src/languages/en-US/economy/rob.json similarity index 100% rename from languages/en-US/economy/rob.json rename to src/languages/en-US/economy/rob.json diff --git a/languages/en-US/economy/setbio.json b/src/languages/en-US/economy/setbio.json similarity index 100% rename from languages/en-US/economy/setbio.json rename to src/languages/en-US/economy/setbio.json diff --git a/languages/en-US/economy/slots.json b/src/languages/en-US/economy/slots.json similarity index 100% rename from languages/en-US/economy/slots.json rename to src/languages/en-US/economy/slots.json diff --git a/languages/en-US/economy/transactions.json b/src/languages/en-US/economy/transactions.json similarity index 100% rename from languages/en-US/economy/transactions.json rename to src/languages/en-US/economy/transactions.json diff --git a/languages/en-US/economy/work.json b/src/languages/en-US/economy/work.json similarity index 100% rename from languages/en-US/economy/work.json rename to src/languages/en-US/economy/work.json diff --git a/languages/en-US/fun/8ball.json b/src/languages/en-US/fun/8ball.json similarity index 100% rename from languages/en-US/fun/8ball.json rename to src/languages/en-US/fun/8ball.json diff --git a/languages/en-US/fun/cat.json b/src/languages/en-US/fun/cat.json similarity index 100% rename from languages/en-US/fun/cat.json rename to src/languages/en-US/fun/cat.json diff --git a/languages/en-US/fun/dog.json b/src/languages/en-US/fun/dog.json similarity index 100% rename from languages/en-US/fun/dog.json rename to src/languages/en-US/fun/dog.json diff --git a/languages/en-US/fun/lmgtfy.json b/src/languages/en-US/fun/lmgtfy.json similarity index 100% rename from languages/en-US/fun/lmgtfy.json rename to src/languages/en-US/fun/lmgtfy.json diff --git a/languages/en-US/fun/lovecalc.json b/src/languages/en-US/fun/lovecalc.json similarity index 100% rename from languages/en-US/fun/lovecalc.json rename to src/languages/en-US/fun/lovecalc.json diff --git a/languages/en-US/fun/memes.json b/src/languages/en-US/fun/memes.json similarity index 100% rename from languages/en-US/fun/memes.json rename to src/languages/en-US/fun/memes.json diff --git a/languages/en-US/fun/number.json b/src/languages/en-US/fun/number.json similarity index 100% rename from languages/en-US/fun/number.json rename to src/languages/en-US/fun/number.json diff --git a/languages/en-US/fun/tictactoe.json b/src/languages/en-US/fun/tictactoe.json similarity index 100% rename from languages/en-US/fun/tictactoe.json rename to src/languages/en-US/fun/tictactoe.json diff --git a/languages/en-US/general/afk.json b/src/languages/en-US/general/afk.json similarity index 100% rename from languages/en-US/general/afk.json rename to src/languages/en-US/general/afk.json diff --git a/languages/en-US/general/avatar.json b/src/languages/en-US/general/avatar.json similarity index 100% rename from languages/en-US/general/avatar.json rename to src/languages/en-US/general/avatar.json diff --git a/languages/en-US/general/boosters.json b/src/languages/en-US/general/boosters.json similarity index 100% rename from languages/en-US/general/boosters.json rename to src/languages/en-US/general/boosters.json diff --git a/languages/en-US/general/emoji.json b/src/languages/en-US/general/emoji.json similarity index 100% rename from languages/en-US/general/emoji.json rename to src/languages/en-US/general/emoji.json diff --git a/languages/en-US/general/help.json b/src/languages/en-US/general/help.json similarity index 100% rename from languages/en-US/general/help.json rename to src/languages/en-US/general/help.json diff --git a/languages/en-US/general/info.json b/src/languages/en-US/general/info.json similarity index 100% rename from languages/en-US/general/info.json rename to src/languages/en-US/general/info.json diff --git a/languages/en-US/general/minecraft.json b/src/languages/en-US/general/minecraft.json similarity index 100% rename from languages/en-US/general/minecraft.json rename to src/languages/en-US/general/minecraft.json diff --git a/languages/en-US/general/ping.json b/src/languages/en-US/general/ping.json similarity index 100% rename from languages/en-US/general/ping.json rename to src/languages/en-US/general/ping.json diff --git a/languages/en-US/general/remindme.json b/src/languages/en-US/general/remindme.json similarity index 100% rename from languages/en-US/general/remindme.json rename to src/languages/en-US/general/remindme.json diff --git a/languages/en-US/general/reminds.json b/src/languages/en-US/general/reminds.json similarity index 100% rename from languages/en-US/general/reminds.json rename to src/languages/en-US/general/reminds.json diff --git a/languages/en-US/general/report.json b/src/languages/en-US/general/report.json similarity index 100% rename from languages/en-US/general/report.json rename to src/languages/en-US/general/report.json diff --git a/languages/en-US/general/shorturl.json b/src/languages/en-US/general/shorturl.json similarity index 100% rename from languages/en-US/general/shorturl.json rename to src/languages/en-US/general/shorturl.json diff --git a/languages/en-US/general/staff.json b/src/languages/en-US/general/staff.json similarity index 100% rename from languages/en-US/general/staff.json rename to src/languages/en-US/general/staff.json diff --git a/languages/en-US/general/stats.json b/src/languages/en-US/general/stats.json similarity index 100% rename from languages/en-US/general/stats.json rename to src/languages/en-US/general/stats.json diff --git a/languages/en-US/general/suggest.json b/src/languages/en-US/general/suggest.json similarity index 100% rename from languages/en-US/general/suggest.json rename to src/languages/en-US/general/suggest.json diff --git a/languages/en-US/general/whois.json b/src/languages/en-US/general/whois.json similarity index 100% rename from languages/en-US/general/whois.json rename to src/languages/en-US/general/whois.json diff --git a/languages/en-US/iat/checkjar.json b/src/languages/en-US/iat/checkjar.json similarity index 100% rename from languages/en-US/iat/checkjar.json rename to src/languages/en-US/iat/checkjar.json diff --git a/languages/en-US/misc.json b/src/languages/en-US/misc.json similarity index 100% rename from languages/en-US/misc.json rename to src/languages/en-US/misc.json diff --git a/languages/en-US/moderation/ban.json b/src/languages/en-US/moderation/ban.json similarity index 100% rename from languages/en-US/moderation/ban.json rename to src/languages/en-US/moderation/ban.json diff --git a/languages/en-US/moderation/clear.json b/src/languages/en-US/moderation/clear.json similarity index 100% rename from languages/en-US/moderation/clear.json rename to src/languages/en-US/moderation/clear.json diff --git a/languages/en-US/moderation/clearwarns.json b/src/languages/en-US/moderation/clearwarns.json similarity index 100% rename from languages/en-US/moderation/clearwarns.json rename to src/languages/en-US/moderation/clearwarns.json diff --git a/languages/en-US/moderation/giveaway.json b/src/languages/en-US/moderation/giveaway.json similarity index 100% rename from languages/en-US/moderation/giveaway.json rename to src/languages/en-US/moderation/giveaway.json diff --git a/languages/en-US/moderation/kick.json b/src/languages/en-US/moderation/kick.json similarity index 100% rename from languages/en-US/moderation/kick.json rename to src/languages/en-US/moderation/kick.json diff --git a/languages/en-US/moderation/unban.json b/src/languages/en-US/moderation/unban.json similarity index 100% rename from languages/en-US/moderation/unban.json rename to src/languages/en-US/moderation/unban.json diff --git a/languages/en-US/moderation/untimeout.json b/src/languages/en-US/moderation/untimeout.json similarity index 100% rename from languages/en-US/moderation/untimeout.json rename to src/languages/en-US/moderation/untimeout.json diff --git a/languages/en-US/moderation/warn.json b/src/languages/en-US/moderation/warn.json similarity index 100% rename from languages/en-US/moderation/warn.json rename to src/languages/en-US/moderation/warn.json diff --git a/languages/en-US/moderation/warns.json b/src/languages/en-US/moderation/warns.json similarity index 100% rename from languages/en-US/moderation/warns.json rename to src/languages/en-US/moderation/warns.json diff --git a/languages/en-US/music/back.json b/src/languages/en-US/music/back.json similarity index 100% rename from languages/en-US/music/back.json rename to src/languages/en-US/music/back.json diff --git a/languages/en-US/music/clips.json b/src/languages/en-US/music/clips.json similarity index 100% rename from languages/en-US/music/clips.json rename to src/languages/en-US/music/clips.json diff --git a/languages/en-US/music/loop.json b/src/languages/en-US/music/loop.json similarity index 100% rename from languages/en-US/music/loop.json rename to src/languages/en-US/music/loop.json diff --git a/languages/en-US/music/nowplaying.json b/src/languages/en-US/music/nowplaying.json similarity index 100% rename from languages/en-US/music/nowplaying.json rename to src/languages/en-US/music/nowplaying.json diff --git a/languages/en-US/music/play.json b/src/languages/en-US/music/play.json similarity index 100% rename from languages/en-US/music/play.json rename to src/languages/en-US/music/play.json diff --git a/languages/en-US/music/queue.json b/src/languages/en-US/music/queue.json similarity index 100% rename from languages/en-US/music/queue.json rename to src/languages/en-US/music/queue.json diff --git a/languages/en-US/music/seek.json b/src/languages/en-US/music/seek.json similarity index 100% rename from languages/en-US/music/seek.json rename to src/languages/en-US/music/seek.json diff --git a/languages/en-US/music/shuffle.json b/src/languages/en-US/music/shuffle.json similarity index 100% rename from languages/en-US/music/shuffle.json rename to src/languages/en-US/music/shuffle.json diff --git a/languages/en-US/music/skip.json b/src/languages/en-US/music/skip.json similarity index 100% rename from languages/en-US/music/skip.json rename to src/languages/en-US/music/skip.json diff --git a/languages/en-US/music/stop.json b/src/languages/en-US/music/stop.json similarity index 100% rename from languages/en-US/music/stop.json rename to src/languages/en-US/music/stop.json diff --git a/languages/en-US/music/volume.json b/src/languages/en-US/music/volume.json similarity index 100% rename from languages/en-US/music/volume.json rename to src/languages/en-US/music/volume.json diff --git a/languages/en-US/owner/announcement.json b/src/languages/en-US/owner/announcement.json similarity index 100% rename from languages/en-US/owner/announcement.json rename to src/languages/en-US/owner/announcement.json diff --git a/languages/en-US/owner/debug.json b/src/languages/en-US/owner/debug.json similarity index 100% rename from languages/en-US/owner/debug.json rename to src/languages/en-US/owner/debug.json diff --git a/languages/en-US/owner/eval.json b/src/languages/en-US/owner/eval.json similarity index 100% rename from languages/en-US/owner/eval.json rename to src/languages/en-US/owner/eval.json diff --git a/languages/en-US/owner/reload.json b/src/languages/en-US/owner/reload.json similarity index 100% rename from languages/en-US/owner/reload.json rename to src/languages/en-US/owner/reload.json diff --git a/languages/en-US/owner/say.json b/src/languages/en-US/owner/say.json similarity index 100% rename from languages/en-US/owner/say.json rename to src/languages/en-US/owner/say.json diff --git a/languages/en-US/owner/servers.json b/src/languages/en-US/owner/servers.json similarity index 100% rename from languages/en-US/owner/servers.json rename to src/languages/en-US/owner/servers.json diff --git a/languages/en-US/tickets/adduser.json b/src/languages/en-US/tickets/adduser.json similarity index 100% rename from languages/en-US/tickets/adduser.json rename to src/languages/en-US/tickets/adduser.json diff --git a/languages/en-US/tickets/closeticket.json b/src/languages/en-US/tickets/closeticket.json similarity index 100% rename from languages/en-US/tickets/closeticket.json rename to src/languages/en-US/tickets/closeticket.json diff --git a/languages/en-US/tickets/createticketembed.json b/src/languages/en-US/tickets/createticketembed.json similarity index 100% rename from languages/en-US/tickets/createticketembed.json rename to src/languages/en-US/tickets/createticketembed.json diff --git a/languages/en-US/tickets/removeuser.json b/src/languages/en-US/tickets/removeuser.json similarity index 100% rename from languages/en-US/tickets/removeuser.json rename to src/languages/en-US/tickets/removeuser.json diff --git a/languages/language-meta.js b/src/languages/language-meta.js similarity index 100% rename from languages/language-meta.js rename to src/languages/language-meta.js diff --git a/languages/ru-RU/administration/addemoji.json b/src/languages/ru-RU/administration/addemoji.json similarity index 100% rename from languages/ru-RU/administration/addemoji.json rename to src/languages/ru-RU/administration/addemoji.json diff --git a/languages/ru-RU/administration/automod.json b/src/languages/ru-RU/administration/automod.json similarity index 100% rename from languages/ru-RU/administration/automod.json rename to src/languages/ru-RU/administration/automod.json diff --git a/languages/ru-RU/administration/autorole.json b/src/languages/ru-RU/administration/autorole.json similarity index 100% rename from languages/ru-RU/administration/autorole.json rename to src/languages/ru-RU/administration/autorole.json diff --git a/languages/ru-RU/administration/config.json b/src/languages/ru-RU/administration/config.json similarity index 100% rename from languages/ru-RU/administration/config.json rename to src/languages/ru-RU/administration/config.json diff --git a/languages/ru-RU/administration/deletemod.json b/src/languages/ru-RU/administration/deletemod.json similarity index 100% rename from languages/ru-RU/administration/deletemod.json rename to src/languages/ru-RU/administration/deletemod.json diff --git a/languages/ru-RU/administration/goodbye.json b/src/languages/ru-RU/administration/goodbye.json similarity index 100% rename from languages/ru-RU/administration/goodbye.json rename to src/languages/ru-RU/administration/goodbye.json diff --git a/languages/ru-RU/administration/selectroles.json b/src/languages/ru-RU/administration/selectroles.json similarity index 100% rename from languages/ru-RU/administration/selectroles.json rename to src/languages/ru-RU/administration/selectroles.json diff --git a/languages/ru-RU/administration/set.json b/src/languages/ru-RU/administration/set.json similarity index 100% rename from languages/ru-RU/administration/set.json rename to src/languages/ru-RU/administration/set.json diff --git a/languages/ru-RU/administration/setlang.json b/src/languages/ru-RU/administration/setlang.json similarity index 100% rename from languages/ru-RU/administration/setlang.json rename to src/languages/ru-RU/administration/setlang.json diff --git a/languages/ru-RU/administration/stealemoji.json b/src/languages/ru-RU/administration/stealemoji.json similarity index 100% rename from languages/ru-RU/administration/stealemoji.json rename to src/languages/ru-RU/administration/stealemoji.json diff --git a/languages/ru-RU/administration/welcome.json b/src/languages/ru-RU/administration/welcome.json similarity index 100% rename from languages/ru-RU/administration/welcome.json rename to src/languages/ru-RU/administration/welcome.json diff --git a/languages/ru-RU/beatrun/courses.json b/src/languages/ru-RU/beatrun/courses.json similarity index 100% rename from languages/ru-RU/beatrun/courses.json rename to src/languages/ru-RU/beatrun/courses.json diff --git a/languages/ru-RU/common.json b/src/languages/ru-RU/common.json similarity index 100% rename from languages/ru-RU/common.json rename to src/languages/ru-RU/common.json diff --git a/languages/ru-RU/economy/achievements.json b/src/languages/ru-RU/economy/achievements.json similarity index 100% rename from languages/ru-RU/economy/achievements.json rename to src/languages/ru-RU/economy/achievements.json diff --git a/languages/ru-RU/economy/bank.json b/src/languages/ru-RU/economy/bank.json similarity index 100% rename from languages/ru-RU/economy/bank.json rename to src/languages/ru-RU/economy/bank.json diff --git a/languages/ru-RU/economy/birthdate.json b/src/languages/ru-RU/economy/birthdate.json similarity index 100% rename from languages/ru-RU/economy/birthdate.json rename to src/languages/ru-RU/economy/birthdate.json diff --git a/languages/ru-RU/economy/divorce.json b/src/languages/ru-RU/economy/divorce.json similarity index 100% rename from languages/ru-RU/economy/divorce.json rename to src/languages/ru-RU/economy/divorce.json diff --git a/languages/ru-RU/economy/importmee6.json b/src/languages/ru-RU/economy/importmee6.json similarity index 100% rename from languages/ru-RU/economy/importmee6.json rename to src/languages/ru-RU/economy/importmee6.json diff --git a/languages/ru-RU/economy/leaderboard.json b/src/languages/ru-RU/economy/leaderboard.json similarity index 100% rename from languages/ru-RU/economy/leaderboard.json rename to src/languages/ru-RU/economy/leaderboard.json diff --git a/languages/ru-RU/economy/marry.json b/src/languages/ru-RU/economy/marry.json similarity index 100% rename from languages/ru-RU/economy/marry.json rename to src/languages/ru-RU/economy/marry.json diff --git a/languages/ru-RU/economy/money.json b/src/languages/ru-RU/economy/money.json similarity index 100% rename from languages/ru-RU/economy/money.json rename to src/languages/ru-RU/economy/money.json diff --git a/languages/ru-RU/economy/pay.json b/src/languages/ru-RU/economy/pay.json similarity index 100% rename from languages/ru-RU/economy/pay.json rename to src/languages/ru-RU/economy/pay.json diff --git a/languages/ru-RU/economy/profile.json b/src/languages/ru-RU/economy/profile.json similarity index 100% rename from languages/ru-RU/economy/profile.json rename to src/languages/ru-RU/economy/profile.json diff --git a/languages/ru-RU/economy/rep.json b/src/languages/ru-RU/economy/rep.json similarity index 100% rename from languages/ru-RU/economy/rep.json rename to src/languages/ru-RU/economy/rep.json diff --git a/languages/ru-RU/economy/rob.json b/src/languages/ru-RU/economy/rob.json similarity index 100% rename from languages/ru-RU/economy/rob.json rename to src/languages/ru-RU/economy/rob.json diff --git a/languages/ru-RU/economy/setbio.json b/src/languages/ru-RU/economy/setbio.json similarity index 100% rename from languages/ru-RU/economy/setbio.json rename to src/languages/ru-RU/economy/setbio.json diff --git a/languages/ru-RU/economy/slots.json b/src/languages/ru-RU/economy/slots.json similarity index 100% rename from languages/ru-RU/economy/slots.json rename to src/languages/ru-RU/economy/slots.json diff --git a/languages/ru-RU/economy/transactions.json b/src/languages/ru-RU/economy/transactions.json similarity index 100% rename from languages/ru-RU/economy/transactions.json rename to src/languages/ru-RU/economy/transactions.json diff --git a/languages/ru-RU/economy/work.json b/src/languages/ru-RU/economy/work.json similarity index 100% rename from languages/ru-RU/economy/work.json rename to src/languages/ru-RU/economy/work.json diff --git a/languages/ru-RU/fun/8ball.json b/src/languages/ru-RU/fun/8ball.json similarity index 100% rename from languages/ru-RU/fun/8ball.json rename to src/languages/ru-RU/fun/8ball.json diff --git a/languages/ru-RU/fun/cat.json b/src/languages/ru-RU/fun/cat.json similarity index 100% rename from languages/ru-RU/fun/cat.json rename to src/languages/ru-RU/fun/cat.json diff --git a/languages/ru-RU/fun/dog.json b/src/languages/ru-RU/fun/dog.json similarity index 100% rename from languages/ru-RU/fun/dog.json rename to src/languages/ru-RU/fun/dog.json diff --git a/languages/ru-RU/fun/lmgtfy.json b/src/languages/ru-RU/fun/lmgtfy.json similarity index 100% rename from languages/ru-RU/fun/lmgtfy.json rename to src/languages/ru-RU/fun/lmgtfy.json diff --git a/languages/ru-RU/fun/lovecalc.json b/src/languages/ru-RU/fun/lovecalc.json similarity index 100% rename from languages/ru-RU/fun/lovecalc.json rename to src/languages/ru-RU/fun/lovecalc.json diff --git a/languages/ru-RU/fun/memes.json b/src/languages/ru-RU/fun/memes.json similarity index 100% rename from languages/ru-RU/fun/memes.json rename to src/languages/ru-RU/fun/memes.json diff --git a/languages/ru-RU/fun/number.json b/src/languages/ru-RU/fun/number.json similarity index 100% rename from languages/ru-RU/fun/number.json rename to src/languages/ru-RU/fun/number.json diff --git a/languages/ru-RU/fun/tictactoe.json b/src/languages/ru-RU/fun/tictactoe.json similarity index 100% rename from languages/ru-RU/fun/tictactoe.json rename to src/languages/ru-RU/fun/tictactoe.json diff --git a/languages/ru-RU/general/afk.json b/src/languages/ru-RU/general/afk.json similarity index 100% rename from languages/ru-RU/general/afk.json rename to src/languages/ru-RU/general/afk.json diff --git a/languages/ru-RU/general/avatar.json b/src/languages/ru-RU/general/avatar.json similarity index 100% rename from languages/ru-RU/general/avatar.json rename to src/languages/ru-RU/general/avatar.json diff --git a/languages/ru-RU/general/boosters.json b/src/languages/ru-RU/general/boosters.json similarity index 100% rename from languages/ru-RU/general/boosters.json rename to src/languages/ru-RU/general/boosters.json diff --git a/languages/ru-RU/general/emoji.json b/src/languages/ru-RU/general/emoji.json similarity index 100% rename from languages/ru-RU/general/emoji.json rename to src/languages/ru-RU/general/emoji.json diff --git a/languages/ru-RU/general/help.json b/src/languages/ru-RU/general/help.json similarity index 100% rename from languages/ru-RU/general/help.json rename to src/languages/ru-RU/general/help.json diff --git a/languages/ru-RU/general/info.json b/src/languages/ru-RU/general/info.json similarity index 100% rename from languages/ru-RU/general/info.json rename to src/languages/ru-RU/general/info.json diff --git a/languages/ru-RU/general/minecraft.json b/src/languages/ru-RU/general/minecraft.json similarity index 100% rename from languages/ru-RU/general/minecraft.json rename to src/languages/ru-RU/general/minecraft.json diff --git a/languages/ru-RU/general/ping.json b/src/languages/ru-RU/general/ping.json similarity index 100% rename from languages/ru-RU/general/ping.json rename to src/languages/ru-RU/general/ping.json diff --git a/languages/ru-RU/general/remindme.json b/src/languages/ru-RU/general/remindme.json similarity index 100% rename from languages/ru-RU/general/remindme.json rename to src/languages/ru-RU/general/remindme.json diff --git a/languages/ru-RU/general/reminds.json b/src/languages/ru-RU/general/reminds.json similarity index 100% rename from languages/ru-RU/general/reminds.json rename to src/languages/ru-RU/general/reminds.json diff --git a/languages/ru-RU/general/report.json b/src/languages/ru-RU/general/report.json similarity index 100% rename from languages/ru-RU/general/report.json rename to src/languages/ru-RU/general/report.json diff --git a/languages/ru-RU/general/shorturl.json b/src/languages/ru-RU/general/shorturl.json similarity index 100% rename from languages/ru-RU/general/shorturl.json rename to src/languages/ru-RU/general/shorturl.json diff --git a/languages/ru-RU/general/staff.json b/src/languages/ru-RU/general/staff.json similarity index 100% rename from languages/ru-RU/general/staff.json rename to src/languages/ru-RU/general/staff.json diff --git a/languages/ru-RU/general/stats.json b/src/languages/ru-RU/general/stats.json similarity index 100% rename from languages/ru-RU/general/stats.json rename to src/languages/ru-RU/general/stats.json diff --git a/languages/ru-RU/general/suggest.json b/src/languages/ru-RU/general/suggest.json similarity index 100% rename from languages/ru-RU/general/suggest.json rename to src/languages/ru-RU/general/suggest.json diff --git a/languages/ru-RU/general/whois.json b/src/languages/ru-RU/general/whois.json similarity index 100% rename from languages/ru-RU/general/whois.json rename to src/languages/ru-RU/general/whois.json diff --git a/languages/ru-RU/iat/checkjar.json b/src/languages/ru-RU/iat/checkjar.json similarity index 100% rename from languages/ru-RU/iat/checkjar.json rename to src/languages/ru-RU/iat/checkjar.json diff --git a/languages/ru-RU/misc.json b/src/languages/ru-RU/misc.json similarity index 100% rename from languages/ru-RU/misc.json rename to src/languages/ru-RU/misc.json diff --git a/languages/ru-RU/moderation/ban.json b/src/languages/ru-RU/moderation/ban.json similarity index 100% rename from languages/ru-RU/moderation/ban.json rename to src/languages/ru-RU/moderation/ban.json diff --git a/languages/ru-RU/moderation/clear.json b/src/languages/ru-RU/moderation/clear.json similarity index 100% rename from languages/ru-RU/moderation/clear.json rename to src/languages/ru-RU/moderation/clear.json diff --git a/languages/ru-RU/moderation/clearwarns.json b/src/languages/ru-RU/moderation/clearwarns.json similarity index 100% rename from languages/ru-RU/moderation/clearwarns.json rename to src/languages/ru-RU/moderation/clearwarns.json diff --git a/languages/ru-RU/moderation/giveaway.json b/src/languages/ru-RU/moderation/giveaway.json similarity index 100% rename from languages/ru-RU/moderation/giveaway.json rename to src/languages/ru-RU/moderation/giveaway.json diff --git a/languages/ru-RU/moderation/kick.json b/src/languages/ru-RU/moderation/kick.json similarity index 100% rename from languages/ru-RU/moderation/kick.json rename to src/languages/ru-RU/moderation/kick.json diff --git a/languages/ru-RU/moderation/unban.json b/src/languages/ru-RU/moderation/unban.json similarity index 100% rename from languages/ru-RU/moderation/unban.json rename to src/languages/ru-RU/moderation/unban.json diff --git a/languages/ru-RU/moderation/untimeout.json b/src/languages/ru-RU/moderation/untimeout.json similarity index 100% rename from languages/ru-RU/moderation/untimeout.json rename to src/languages/ru-RU/moderation/untimeout.json diff --git a/languages/ru-RU/moderation/warn.json b/src/languages/ru-RU/moderation/warn.json similarity index 100% rename from languages/ru-RU/moderation/warn.json rename to src/languages/ru-RU/moderation/warn.json diff --git a/languages/ru-RU/moderation/warns.json b/src/languages/ru-RU/moderation/warns.json similarity index 100% rename from languages/ru-RU/moderation/warns.json rename to src/languages/ru-RU/moderation/warns.json diff --git a/languages/ru-RU/music/back.json b/src/languages/ru-RU/music/back.json similarity index 100% rename from languages/ru-RU/music/back.json rename to src/languages/ru-RU/music/back.json diff --git a/languages/ru-RU/music/clips.json b/src/languages/ru-RU/music/clips.json similarity index 100% rename from languages/ru-RU/music/clips.json rename to src/languages/ru-RU/music/clips.json diff --git a/languages/ru-RU/music/loop.json b/src/languages/ru-RU/music/loop.json similarity index 100% rename from languages/ru-RU/music/loop.json rename to src/languages/ru-RU/music/loop.json diff --git a/languages/ru-RU/music/nowplaying.json b/src/languages/ru-RU/music/nowplaying.json similarity index 100% rename from languages/ru-RU/music/nowplaying.json rename to src/languages/ru-RU/music/nowplaying.json diff --git a/languages/ru-RU/music/play.json b/src/languages/ru-RU/music/play.json similarity index 100% rename from languages/ru-RU/music/play.json rename to src/languages/ru-RU/music/play.json diff --git a/languages/ru-RU/music/queue.json b/src/languages/ru-RU/music/queue.json similarity index 100% rename from languages/ru-RU/music/queue.json rename to src/languages/ru-RU/music/queue.json diff --git a/languages/ru-RU/music/seek.json b/src/languages/ru-RU/music/seek.json similarity index 100% rename from languages/ru-RU/music/seek.json rename to src/languages/ru-RU/music/seek.json diff --git a/languages/ru-RU/music/shuffle.json b/src/languages/ru-RU/music/shuffle.json similarity index 100% rename from languages/ru-RU/music/shuffle.json rename to src/languages/ru-RU/music/shuffle.json diff --git a/languages/ru-RU/music/skip.json b/src/languages/ru-RU/music/skip.json similarity index 100% rename from languages/ru-RU/music/skip.json rename to src/languages/ru-RU/music/skip.json diff --git a/languages/ru-RU/music/stop.json b/src/languages/ru-RU/music/stop.json similarity index 100% rename from languages/ru-RU/music/stop.json rename to src/languages/ru-RU/music/stop.json diff --git a/languages/ru-RU/music/volume.json b/src/languages/ru-RU/music/volume.json similarity index 100% rename from languages/ru-RU/music/volume.json rename to src/languages/ru-RU/music/volume.json diff --git a/languages/ru-RU/owner/announcement.json b/src/languages/ru-RU/owner/announcement.json similarity index 100% rename from languages/ru-RU/owner/announcement.json rename to src/languages/ru-RU/owner/announcement.json diff --git a/languages/ru-RU/owner/debug.json b/src/languages/ru-RU/owner/debug.json similarity index 100% rename from languages/ru-RU/owner/debug.json rename to src/languages/ru-RU/owner/debug.json diff --git a/languages/ru-RU/owner/eval.json b/src/languages/ru-RU/owner/eval.json similarity index 100% rename from languages/ru-RU/owner/eval.json rename to src/languages/ru-RU/owner/eval.json diff --git a/languages/ru-RU/owner/reload.json b/src/languages/ru-RU/owner/reload.json similarity index 100% rename from languages/ru-RU/owner/reload.json rename to src/languages/ru-RU/owner/reload.json diff --git a/languages/ru-RU/owner/say.json b/src/languages/ru-RU/owner/say.json similarity index 100% rename from languages/ru-RU/owner/say.json rename to src/languages/ru-RU/owner/say.json diff --git a/languages/ru-RU/owner/servers.json b/src/languages/ru-RU/owner/servers.json similarity index 100% rename from languages/ru-RU/owner/servers.json rename to src/languages/ru-RU/owner/servers.json diff --git a/languages/ru-RU/tickets/adduser.json b/src/languages/ru-RU/tickets/adduser.json similarity index 100% rename from languages/ru-RU/tickets/adduser.json rename to src/languages/ru-RU/tickets/adduser.json diff --git a/languages/ru-RU/tickets/closeticket.json b/src/languages/ru-RU/tickets/closeticket.json similarity index 100% rename from languages/ru-RU/tickets/closeticket.json rename to src/languages/ru-RU/tickets/closeticket.json diff --git a/languages/ru-RU/tickets/createticketembed.json b/src/languages/ru-RU/tickets/createticketembed.json similarity index 100% rename from languages/ru-RU/tickets/createticketembed.json rename to src/languages/ru-RU/tickets/createticketembed.json diff --git a/languages/ru-RU/tickets/removeuser.json b/src/languages/ru-RU/tickets/removeuser.json similarity index 100% rename from languages/ru-RU/tickets/removeuser.json rename to src/languages/ru-RU/tickets/removeuser.json diff --git a/languages/uk-UA/administration/addemoji.json b/src/languages/uk-UA/administration/addemoji.json similarity index 100% rename from languages/uk-UA/administration/addemoji.json rename to src/languages/uk-UA/administration/addemoji.json diff --git a/languages/uk-UA/administration/automod.json b/src/languages/uk-UA/administration/automod.json similarity index 100% rename from languages/uk-UA/administration/automod.json rename to src/languages/uk-UA/administration/automod.json diff --git a/languages/uk-UA/administration/autorole.json b/src/languages/uk-UA/administration/autorole.json similarity index 100% rename from languages/uk-UA/administration/autorole.json rename to src/languages/uk-UA/administration/autorole.json diff --git a/languages/uk-UA/administration/config.json b/src/languages/uk-UA/administration/config.json similarity index 100% rename from languages/uk-UA/administration/config.json rename to src/languages/uk-UA/administration/config.json diff --git a/languages/uk-UA/administration/deletemod.json b/src/languages/uk-UA/administration/deletemod.json similarity index 100% rename from languages/uk-UA/administration/deletemod.json rename to src/languages/uk-UA/administration/deletemod.json diff --git a/languages/uk-UA/administration/goodbye.json b/src/languages/uk-UA/administration/goodbye.json similarity index 100% rename from languages/uk-UA/administration/goodbye.json rename to src/languages/uk-UA/administration/goodbye.json diff --git a/languages/uk-UA/administration/selectroles.json b/src/languages/uk-UA/administration/selectroles.json similarity index 100% rename from languages/uk-UA/administration/selectroles.json rename to src/languages/uk-UA/administration/selectroles.json diff --git a/languages/uk-UA/administration/set.json b/src/languages/uk-UA/administration/set.json similarity index 100% rename from languages/uk-UA/administration/set.json rename to src/languages/uk-UA/administration/set.json diff --git a/languages/uk-UA/administration/setlang.json b/src/languages/uk-UA/administration/setlang.json similarity index 100% rename from languages/uk-UA/administration/setlang.json rename to src/languages/uk-UA/administration/setlang.json diff --git a/languages/uk-UA/administration/stealemoji.json b/src/languages/uk-UA/administration/stealemoji.json similarity index 100% rename from languages/uk-UA/administration/stealemoji.json rename to src/languages/uk-UA/administration/stealemoji.json diff --git a/languages/uk-UA/administration/welcome.json b/src/languages/uk-UA/administration/welcome.json similarity index 100% rename from languages/uk-UA/administration/welcome.json rename to src/languages/uk-UA/administration/welcome.json diff --git a/languages/uk-UA/beatrun/courses.json b/src/languages/uk-UA/beatrun/courses.json similarity index 100% rename from languages/uk-UA/beatrun/courses.json rename to src/languages/uk-UA/beatrun/courses.json diff --git a/languages/uk-UA/common.json b/src/languages/uk-UA/common.json similarity index 100% rename from languages/uk-UA/common.json rename to src/languages/uk-UA/common.json diff --git a/languages/uk-UA/economy/achievements.json b/src/languages/uk-UA/economy/achievements.json similarity index 100% rename from languages/uk-UA/economy/achievements.json rename to src/languages/uk-UA/economy/achievements.json diff --git a/languages/uk-UA/economy/bank.json b/src/languages/uk-UA/economy/bank.json similarity index 100% rename from languages/uk-UA/economy/bank.json rename to src/languages/uk-UA/economy/bank.json diff --git a/languages/uk-UA/economy/birthdate.json b/src/languages/uk-UA/economy/birthdate.json similarity index 100% rename from languages/uk-UA/economy/birthdate.json rename to src/languages/uk-UA/economy/birthdate.json diff --git a/languages/uk-UA/economy/divorce.json b/src/languages/uk-UA/economy/divorce.json similarity index 100% rename from languages/uk-UA/economy/divorce.json rename to src/languages/uk-UA/economy/divorce.json diff --git a/languages/uk-UA/economy/importmee6.json b/src/languages/uk-UA/economy/importmee6.json similarity index 100% rename from languages/uk-UA/economy/importmee6.json rename to src/languages/uk-UA/economy/importmee6.json diff --git a/languages/uk-UA/economy/leaderboard.json b/src/languages/uk-UA/economy/leaderboard.json similarity index 100% rename from languages/uk-UA/economy/leaderboard.json rename to src/languages/uk-UA/economy/leaderboard.json diff --git a/languages/uk-UA/economy/marry.json b/src/languages/uk-UA/economy/marry.json similarity index 100% rename from languages/uk-UA/economy/marry.json rename to src/languages/uk-UA/economy/marry.json diff --git a/languages/uk-UA/economy/money.json b/src/languages/uk-UA/economy/money.json similarity index 100% rename from languages/uk-UA/economy/money.json rename to src/languages/uk-UA/economy/money.json diff --git a/languages/uk-UA/economy/pay.json b/src/languages/uk-UA/economy/pay.json similarity index 100% rename from languages/uk-UA/economy/pay.json rename to src/languages/uk-UA/economy/pay.json diff --git a/languages/uk-UA/economy/profile.json b/src/languages/uk-UA/economy/profile.json similarity index 100% rename from languages/uk-UA/economy/profile.json rename to src/languages/uk-UA/economy/profile.json diff --git a/languages/uk-UA/economy/rep.json b/src/languages/uk-UA/economy/rep.json similarity index 100% rename from languages/uk-UA/economy/rep.json rename to src/languages/uk-UA/economy/rep.json diff --git a/languages/uk-UA/economy/rob.json b/src/languages/uk-UA/economy/rob.json similarity index 100% rename from languages/uk-UA/economy/rob.json rename to src/languages/uk-UA/economy/rob.json diff --git a/languages/uk-UA/economy/setbio.json b/src/languages/uk-UA/economy/setbio.json similarity index 100% rename from languages/uk-UA/economy/setbio.json rename to src/languages/uk-UA/economy/setbio.json diff --git a/languages/uk-UA/economy/slots.json b/src/languages/uk-UA/economy/slots.json similarity index 100% rename from languages/uk-UA/economy/slots.json rename to src/languages/uk-UA/economy/slots.json diff --git a/languages/uk-UA/economy/transactions.json b/src/languages/uk-UA/economy/transactions.json similarity index 100% rename from languages/uk-UA/economy/transactions.json rename to src/languages/uk-UA/economy/transactions.json diff --git a/languages/uk-UA/economy/work.json b/src/languages/uk-UA/economy/work.json similarity index 100% rename from languages/uk-UA/economy/work.json rename to src/languages/uk-UA/economy/work.json diff --git a/languages/uk-UA/fun/8ball.json b/src/languages/uk-UA/fun/8ball.json similarity index 100% rename from languages/uk-UA/fun/8ball.json rename to src/languages/uk-UA/fun/8ball.json diff --git a/languages/uk-UA/fun/cat.json b/src/languages/uk-UA/fun/cat.json similarity index 100% rename from languages/uk-UA/fun/cat.json rename to src/languages/uk-UA/fun/cat.json diff --git a/languages/uk-UA/fun/dog.json b/src/languages/uk-UA/fun/dog.json similarity index 100% rename from languages/uk-UA/fun/dog.json rename to src/languages/uk-UA/fun/dog.json diff --git a/languages/uk-UA/fun/lmgtfy.json b/src/languages/uk-UA/fun/lmgtfy.json similarity index 100% rename from languages/uk-UA/fun/lmgtfy.json rename to src/languages/uk-UA/fun/lmgtfy.json diff --git a/languages/uk-UA/fun/lovecalc.json b/src/languages/uk-UA/fun/lovecalc.json similarity index 100% rename from languages/uk-UA/fun/lovecalc.json rename to src/languages/uk-UA/fun/lovecalc.json diff --git a/languages/uk-UA/fun/memes.json b/src/languages/uk-UA/fun/memes.json similarity index 100% rename from languages/uk-UA/fun/memes.json rename to src/languages/uk-UA/fun/memes.json diff --git a/languages/uk-UA/fun/number.json b/src/languages/uk-UA/fun/number.json similarity index 100% rename from languages/uk-UA/fun/number.json rename to src/languages/uk-UA/fun/number.json diff --git a/languages/uk-UA/fun/tictactoe.json b/src/languages/uk-UA/fun/tictactoe.json similarity index 100% rename from languages/uk-UA/fun/tictactoe.json rename to src/languages/uk-UA/fun/tictactoe.json diff --git a/languages/uk-UA/general/afk.json b/src/languages/uk-UA/general/afk.json similarity index 100% rename from languages/uk-UA/general/afk.json rename to src/languages/uk-UA/general/afk.json diff --git a/languages/uk-UA/general/avatar.json b/src/languages/uk-UA/general/avatar.json similarity index 100% rename from languages/uk-UA/general/avatar.json rename to src/languages/uk-UA/general/avatar.json diff --git a/languages/uk-UA/general/boosters.json b/src/languages/uk-UA/general/boosters.json similarity index 100% rename from languages/uk-UA/general/boosters.json rename to src/languages/uk-UA/general/boosters.json diff --git a/languages/uk-UA/general/emoji.json b/src/languages/uk-UA/general/emoji.json similarity index 100% rename from languages/uk-UA/general/emoji.json rename to src/languages/uk-UA/general/emoji.json diff --git a/languages/uk-UA/general/help.json b/src/languages/uk-UA/general/help.json similarity index 100% rename from languages/uk-UA/general/help.json rename to src/languages/uk-UA/general/help.json diff --git a/languages/uk-UA/general/info.json b/src/languages/uk-UA/general/info.json similarity index 100% rename from languages/uk-UA/general/info.json rename to src/languages/uk-UA/general/info.json diff --git a/languages/uk-UA/general/minecraft.json b/src/languages/uk-UA/general/minecraft.json similarity index 100% rename from languages/uk-UA/general/minecraft.json rename to src/languages/uk-UA/general/minecraft.json diff --git a/languages/uk-UA/general/ping.json b/src/languages/uk-UA/general/ping.json similarity index 100% rename from languages/uk-UA/general/ping.json rename to src/languages/uk-UA/general/ping.json diff --git a/languages/uk-UA/general/remindme.json b/src/languages/uk-UA/general/remindme.json similarity index 100% rename from languages/uk-UA/general/remindme.json rename to src/languages/uk-UA/general/remindme.json diff --git a/languages/uk-UA/general/reminds.json b/src/languages/uk-UA/general/reminds.json similarity index 100% rename from languages/uk-UA/general/reminds.json rename to src/languages/uk-UA/general/reminds.json diff --git a/languages/uk-UA/general/report.json b/src/languages/uk-UA/general/report.json similarity index 100% rename from languages/uk-UA/general/report.json rename to src/languages/uk-UA/general/report.json diff --git a/languages/uk-UA/general/shorturl.json b/src/languages/uk-UA/general/shorturl.json similarity index 100% rename from languages/uk-UA/general/shorturl.json rename to src/languages/uk-UA/general/shorturl.json diff --git a/languages/uk-UA/general/staff.json b/src/languages/uk-UA/general/staff.json similarity index 100% rename from languages/uk-UA/general/staff.json rename to src/languages/uk-UA/general/staff.json diff --git a/languages/uk-UA/general/stats.json b/src/languages/uk-UA/general/stats.json similarity index 100% rename from languages/uk-UA/general/stats.json rename to src/languages/uk-UA/general/stats.json diff --git a/languages/uk-UA/general/suggest.json b/src/languages/uk-UA/general/suggest.json similarity index 100% rename from languages/uk-UA/general/suggest.json rename to src/languages/uk-UA/general/suggest.json diff --git a/languages/uk-UA/general/whois.json b/src/languages/uk-UA/general/whois.json similarity index 100% rename from languages/uk-UA/general/whois.json rename to src/languages/uk-UA/general/whois.json diff --git a/languages/uk-UA/iat/checkjar.json b/src/languages/uk-UA/iat/checkjar.json similarity index 100% rename from languages/uk-UA/iat/checkjar.json rename to src/languages/uk-UA/iat/checkjar.json diff --git a/languages/uk-UA/misc.json b/src/languages/uk-UA/misc.json similarity index 100% rename from languages/uk-UA/misc.json rename to src/languages/uk-UA/misc.json diff --git a/languages/uk-UA/moderation/ban.json b/src/languages/uk-UA/moderation/ban.json similarity index 100% rename from languages/uk-UA/moderation/ban.json rename to src/languages/uk-UA/moderation/ban.json diff --git a/languages/uk-UA/moderation/clear.json b/src/languages/uk-UA/moderation/clear.json similarity index 100% rename from languages/uk-UA/moderation/clear.json rename to src/languages/uk-UA/moderation/clear.json diff --git a/languages/uk-UA/moderation/clearwarns.json b/src/languages/uk-UA/moderation/clearwarns.json similarity index 100% rename from languages/uk-UA/moderation/clearwarns.json rename to src/languages/uk-UA/moderation/clearwarns.json diff --git a/languages/uk-UA/moderation/giveaway.json b/src/languages/uk-UA/moderation/giveaway.json similarity index 100% rename from languages/uk-UA/moderation/giveaway.json rename to src/languages/uk-UA/moderation/giveaway.json diff --git a/languages/uk-UA/moderation/kick.json b/src/languages/uk-UA/moderation/kick.json similarity index 100% rename from languages/uk-UA/moderation/kick.json rename to src/languages/uk-UA/moderation/kick.json diff --git a/languages/uk-UA/moderation/unban.json b/src/languages/uk-UA/moderation/unban.json similarity index 100% rename from languages/uk-UA/moderation/unban.json rename to src/languages/uk-UA/moderation/unban.json diff --git a/languages/uk-UA/moderation/untimeout.json b/src/languages/uk-UA/moderation/untimeout.json similarity index 100% rename from languages/uk-UA/moderation/untimeout.json rename to src/languages/uk-UA/moderation/untimeout.json diff --git a/languages/uk-UA/moderation/warn.json b/src/languages/uk-UA/moderation/warn.json similarity index 100% rename from languages/uk-UA/moderation/warn.json rename to src/languages/uk-UA/moderation/warn.json diff --git a/languages/uk-UA/moderation/warns.json b/src/languages/uk-UA/moderation/warns.json similarity index 100% rename from languages/uk-UA/moderation/warns.json rename to src/languages/uk-UA/moderation/warns.json diff --git a/languages/uk-UA/music/back.json b/src/languages/uk-UA/music/back.json similarity index 100% rename from languages/uk-UA/music/back.json rename to src/languages/uk-UA/music/back.json diff --git a/languages/uk-UA/music/clips.json b/src/languages/uk-UA/music/clips.json similarity index 100% rename from languages/uk-UA/music/clips.json rename to src/languages/uk-UA/music/clips.json diff --git a/languages/uk-UA/music/loop.json b/src/languages/uk-UA/music/loop.json similarity index 100% rename from languages/uk-UA/music/loop.json rename to src/languages/uk-UA/music/loop.json diff --git a/languages/uk-UA/music/nowplaying.json b/src/languages/uk-UA/music/nowplaying.json similarity index 100% rename from languages/uk-UA/music/nowplaying.json rename to src/languages/uk-UA/music/nowplaying.json diff --git a/languages/uk-UA/music/play.json b/src/languages/uk-UA/music/play.json similarity index 100% rename from languages/uk-UA/music/play.json rename to src/languages/uk-UA/music/play.json diff --git a/languages/uk-UA/music/queue.json b/src/languages/uk-UA/music/queue.json similarity index 100% rename from languages/uk-UA/music/queue.json rename to src/languages/uk-UA/music/queue.json diff --git a/languages/uk-UA/music/seek.json b/src/languages/uk-UA/music/seek.json similarity index 100% rename from languages/uk-UA/music/seek.json rename to src/languages/uk-UA/music/seek.json diff --git a/languages/uk-UA/music/shuffle.json b/src/languages/uk-UA/music/shuffle.json similarity index 100% rename from languages/uk-UA/music/shuffle.json rename to src/languages/uk-UA/music/shuffle.json diff --git a/languages/uk-UA/music/skip.json b/src/languages/uk-UA/music/skip.json similarity index 100% rename from languages/uk-UA/music/skip.json rename to src/languages/uk-UA/music/skip.json diff --git a/languages/uk-UA/music/stop.json b/src/languages/uk-UA/music/stop.json similarity index 100% rename from languages/uk-UA/music/stop.json rename to src/languages/uk-UA/music/stop.json diff --git a/languages/uk-UA/music/volume.json b/src/languages/uk-UA/music/volume.json similarity index 100% rename from languages/uk-UA/music/volume.json rename to src/languages/uk-UA/music/volume.json diff --git a/languages/uk-UA/owner/announcement.json b/src/languages/uk-UA/owner/announcement.json similarity index 100% rename from languages/uk-UA/owner/announcement.json rename to src/languages/uk-UA/owner/announcement.json diff --git a/languages/uk-UA/owner/debug.json b/src/languages/uk-UA/owner/debug.json similarity index 100% rename from languages/uk-UA/owner/debug.json rename to src/languages/uk-UA/owner/debug.json diff --git a/languages/uk-UA/owner/eval.json b/src/languages/uk-UA/owner/eval.json similarity index 100% rename from languages/uk-UA/owner/eval.json rename to src/languages/uk-UA/owner/eval.json diff --git a/languages/uk-UA/owner/reload.json b/src/languages/uk-UA/owner/reload.json similarity index 100% rename from languages/uk-UA/owner/reload.json rename to src/languages/uk-UA/owner/reload.json diff --git a/languages/uk-UA/owner/say.json b/src/languages/uk-UA/owner/say.json similarity index 100% rename from languages/uk-UA/owner/say.json rename to src/languages/uk-UA/owner/say.json diff --git a/languages/uk-UA/owner/servers.json b/src/languages/uk-UA/owner/servers.json similarity index 100% rename from languages/uk-UA/owner/servers.json rename to src/languages/uk-UA/owner/servers.json diff --git a/languages/uk-UA/tickets/adduser.json b/src/languages/uk-UA/tickets/adduser.json similarity index 100% rename from languages/uk-UA/tickets/adduser.json rename to src/languages/uk-UA/tickets/adduser.json diff --git a/languages/uk-UA/tickets/closeticket.json b/src/languages/uk-UA/tickets/closeticket.json similarity index 100% rename from languages/uk-UA/tickets/closeticket.json rename to src/languages/uk-UA/tickets/closeticket.json diff --git a/languages/uk-UA/tickets/createticketembed.json b/src/languages/uk-UA/tickets/createticketembed.json similarity index 100% rename from languages/uk-UA/tickets/createticketembed.json rename to src/languages/uk-UA/tickets/createticketembed.json diff --git a/languages/uk-UA/tickets/removeuser.json b/src/languages/uk-UA/tickets/removeuser.json similarity index 100% rename from languages/uk-UA/tickets/removeuser.json rename to src/languages/uk-UA/tickets/removeuser.json diff --git a/base/Guild.js b/src/models/GuildModel.js similarity index 100% rename from base/Guild.js rename to src/models/GuildModel.js diff --git a/base/Member.js b/src/models/MemberModel.js similarity index 100% rename from base/Member.js rename to src/models/MemberModel.js diff --git a/base/User.js b/src/models/UserModel.js similarity index 100% rename from base/User.js rename to src/models/UserModel.js diff --git a/newCommands/Fun/8ball.js b/src/newCommands/Fun/8ball.js similarity index 100% rename from newCommands/Fun/8ball.js rename to src/newCommands/Fun/8ball.js diff --git a/newEvents/ready.js b/src/newEvents/ready.js similarity index 100% rename from newEvents/ready.js rename to src/newEvents/ready.js diff --git a/src/structures/client.js b/src/structures/client.js new file mode 100644 index 00000000..d614123d --- /dev/null +++ b/src/structures/client.js @@ -0,0 +1,28 @@ +import { Client } from "discord.js"; +import { config } from "../../config.js"; +import MongooseAdapter from "../adapters/database/MongooseAdapter.js"; +import { init as initCommands } from "../handlers/command-handler/index.js"; +import { init as initEvents } from "../handlers/event-handler/index.js"; +import logger from "../helpers/logger.js"; + +export class ExtendedClient extends Client { + /** + * @param {import("discord.js").ClientOptions} options + */ + constructor(options) { + super(options); + this.adapter = new MongooseAdapter(config.mongoDB); + } + + async init() { + try { + await this.adapter.connect(); + + return this.login(config.token) + .then(async () => await Promise.all([initCommands(), initEvents()])) + .catch(console.error); + } catch (error) { + logger.error(error); + } + } +} diff --git a/utils/get-path.js b/src/utils/get-path.js similarity index 65% rename from utils/get-path.js rename to src/utils/get-path.js index 800ce749..805847d7 100644 --- a/utils/get-path.js +++ b/src/utils/get-path.js @@ -1,12 +1,15 @@ import fs from "node:fs/promises"; import path from "node:path"; +import { PROJECT_ROOT } from "../constants/index.js"; export const getFilePaths = async (directory, nesting) => { let filePaths = []; if (!directory) return; - const files = await fs.readdir(directory, { withFileTypes: true }); + const absoluteDirectory = path.isAbsolute(directory) ? directory : path.join(PROJECT_ROOT, directory); + + const files = await fs.readdir(absoluteDirectory, { withFileTypes: true }); for (const file of files) { const filePath = path.join(directory, file.name); diff --git a/utils/resolve-file.js b/src/utils/resolve-file.js similarity index 63% rename from utils/resolve-file.js rename to src/utils/resolve-file.js index 58264449..4f2727d9 100644 --- a/utils/resolve-file.js +++ b/src/utils/resolve-file.js @@ -1,4 +1,5 @@ import path from "node:path"; +import { PROJECT_ROOT } from "../constants/index.js"; /** * Convert a local file path to a file URL. @@ -6,6 +7,6 @@ import path from "node:path"; * @returns {string} file URL */ export const toFileURL = filePath => { - const resolvedPath = path.resolve(filePath); + const resolvedPath = path.isAbsolute(filePath) ? filePath : path.resolve(PROJECT_ROOT, filePath); return "file://" + resolvedPath.replace(/\\\\|\\/g, "/"); };