Skip to content

Commit

Permalink
Aruna 4.3.4 - No Invite Update
Browse files Browse the repository at this point in the history
- Changes:
  - Updated Dependencies;
  - Update languages;
  - Prefixes are no longer case-sensitive;
- New:
  - AntiInvite system:
    - Enable using `config antinvite enable`;
  - Category selector to massrole:
    - If you use `massrole @ROLE users`, only humans will receive the role, and if you use `massrole @ROLE bots`, only bots will receive the role;
- Fix:
  - Avatar and Guild Icon using jpg instead png;
  • Loading branch information
LoboMetalurgico authored Jan 2, 2022
2 parents deb0fdf + 984a5bd commit 7bc1a0e
Show file tree
Hide file tree
Showing 20 changed files with 705 additions and 2,036 deletions.
39 changes: 25 additions & 14 deletions .Configs/mongoose.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,69 +32,80 @@ mongoose.connect(
}
);

var User = new Schema({
const User = new Schema({
_id: { type: String },
language: { type: String, default: null },
SUPER: { type: Boolean, default: false }
});

var Guild = new Schema({
const Guild = new Schema({
_id: { type: String },
prefix: { type: String, default: config.prefix },
antiFakeEnable: { type: Boolean, default: true },
ticketLogID: { type: String, default: null },
ticketSupportID: { type: String, default: null },
rankEnable: { type: Boolean, default: false },
ticketEnable: { type: Boolean, default: false },
antiInviteEnable: { type: Boolean, default: false },
autoRoleEnable: { type: Boolean, default: false },
autoRoleRole: { type: String, default: null },
language: { type: String, default: config.language },
isPremium: { type: Boolean, default: false },
isPartner: { type: Boolean, default: false }
});

var Rank = new Schema({
const AntiInvite = new Schema({
_id: { type: String },
usersExcluded: { type: Array, default: [] },
rolesExcluded: { type: Array, default: [] },
channelsExcluded: { type: Array, default: [] },
invitesExcluded: { type: Array, default: [] }
});

const Rank = new Schema({
_id: { type: String },
user: { type: String },
xp: { type: String },
level: { type: String },
guild: { type: String }
});

var Ticket = new Schema({
const Ticket = new Schema({
_id: { type: String },
owner: { type: String },
date: { type: String },
guild: { type: String },
channel: { type: String }
});

var Support = new Schema({
const Support = new Schema({
user: { type: String },
guild: { type: String },
stats: { type: Boolean, default: false }
});

var Command = new Schema({
const Command = new Schema({
_id: { type: String },
public: { type: Boolean, default: false }
});

var System = new Schema({
const System = new Schema({
_id: { type: Number },
maintenance: { type: Boolean, default: false},
date: { type: String, default: null },
time: { type: String, default: null }
});

var Commands = mongoose.model('Commands', Command);
var Supports = mongoose.model('Suport', Support);
var Tickets = mongoose.model('Tickets', Ticket);
var Systems = mongoose.model('System', System);
var Guilds = mongoose.model('Guilds', Guild);
var Users = mongoose.model('Users', User);
var Ranks = mongoose.model('Rank', Rank);
const AntiInvites = mongoose.model('AntiInvite', AntiInvite);
const Commands = mongoose.model('Commands', Command);
const Supports = mongoose.model('Suport', Support);
const Tickets = mongoose.model('Tickets', Ticket);
const Systems = mongoose.model('System', System);
const Guilds = mongoose.model('Guilds', Guild);
const Users = mongoose.model('Users', User);
const Ranks = mongoose.model('Rank', Rank);

exports.AntiInvite = AntiInvites;
exports.Commands = Commands;
exports.Tickets = Tickets;
exports.Suport = Supports;
Expand Down
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
**/secrets.dev.yaml
**/values.dev.yaml
**/tmp
README.md
**/.md
LICENSE
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.Config
Config/
tmp/
tmp/
*.md
47 changes: 30 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,44 @@
# Changelog

## v4.3.4: No Invite Update

- Changes:
- Updated Dependencies;
- Update languages;
- Prefixes are no longer case-sensitive;
- New:
- AntiInvite system:
- Enable using `config antinvite enable`;
- Category selector to massrole:
- If you use `massrole @role users`, only humans will receive the role, and if you use `massrole @role bots`, only bots will receive the role;
- Fix:
- Avatar and Guild Icon using jpg instead png;

## v4.3.3: Bugs and Info

- Changes:
- Updated Dependencies;
- Language folder structure now use 4 digits instead 2;
- Updated Dependencies;
- Language folder structure now use 4 digits instead 2;
- New:
- New Aliases:
- `sicon` and `gicon` for servericon;
- `si`, `guildinfo` and `gi` for serverinfo;
- Added a error message when `userinfo` fail;
- Fix
- Fixed some issues with `userinfo` command;
- Fixed a lot of grammar issues;
- Minor Bugs Fixed:tm:
- New Aliases:
- `sicon` and `gicon` for servericon;
- `si`, `guildinfo` and `gi` for serverinfo;
- Added a error message when `userinfo` fail;
- Fix:
- Fixed some issues with `userinfo` command;
- Fixed a lot of grammar issues;
- Minor Bugs Fixed:tm:

## v4.3.2: Stage Update

- Changes:
- Using own build from discord.js@v11;
- Using own build from topgg-autoposter;
- Using own build from discord.js@v11;
- Using own build from topgg-autoposter;
- New:
- Added `forcePrefix` config:
- this allow you to force config prefix, ignoring custom;
- Added `forcePrefix` config:
- this allow you to force config prefix, ignoring custom;
- Fix:
- Support with stage channels (See [#45]);
- TopGG doesn't post datas;

- Support with stage channels (See [#45]);
- TopGG doesn't post datas;

[#45]: https://github.com/ArunaBot/Aruna/issues/45
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:12.16.2
FROM node:12.22.8
LABEL maintainer="Lobo Metalúrgico <[email protected]>"
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
COPY ["package.json", "package-lock.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
COPY . .
RUN git clone https://github.com/ArunaBot/ArunaLanguages.git languages
Expand Down
2 changes: 1 addition & 1 deletion languages
Submodule languages updated 55 files
+30 −1 bot/af-ZA/commands.json
+7 −0 bot/af-ZA/events.json
+30 −1 bot/ar-SA/commands.json
+7 −0 bot/ar-SA/events.json
+30 −1 bot/ca-ES/commands.json
+7 −0 bot/ca-ES/events.json
+30 −1 bot/cp-S/commands.json
+7 −0 bot/cp-S/events.json
+30 −1 bot/cs-CZ/commands.json
+7 −0 bot/cs-CZ/events.json
+30 −1 bot/da-DK/commands.json
+7 −0 bot/da-DK/events.json
+30 −1 bot/de-DE/commands.json
+7 −0 bot/de-DE/events.json
+30 −1 bot/el-GR/commands.json
+7 −0 bot/el-GR/events.json
+45 −16 bot/en-US/commands.json
+8 −1 bot/en-US/events.json
+30 −1 bot/es-ES/commands.json
+7 −0 bot/es-ES/events.json
+30 −1 bot/fi-FI/commands.json
+7 −0 bot/fi-FI/events.json
+30 −1 bot/fr-FR/commands.json
+7 −0 bot/fr-FR/events.json
+30 −1 bot/he-IL/commands.json
+7 −0 bot/he-IL/events.json
+30 −1 bot/hu-HU/commands.json
+7 −0 bot/hu-HU/events.json
+30 −1 bot/it-IT/commands.json
+7 −0 bot/it-IT/events.json
+30 −1 bot/ja-JP/commands.json
+7 −0 bot/ja-JP/events.json
+30 −1 bot/nl-NL/commands.json
+7 −0 bot/nl-NL/events.json
+30 −1 bot/no-NO/commands.json
+7 −0 bot/no-NO/events.json
+30 −1 bot/pl-PL/commands.json
+7 −0 bot/pl-PL/events.json
+30 −1 bot/pt-BR/commands.json
+7 −0 bot/pt-BR/events.json
+30 −1 bot/pt-PT/commands.json
+7 −0 bot/pt-PT/events.json
+30 −1 bot/ru-RU/commands.json
+7 −0 bot/ru-RU/events.json
+30 −1 bot/src/commands.json
+7 −0 bot/src/events.json
+30 −1 bot/sv-SE/commands.json
+7 −0 bot/sv-SE/events.json
+30 −1 bot/tr-TR/commands.json
+7 −0 bot/tr-TR/events.json
+30 −1 bot/uk-UA/commands.json
+7 −0 bot/uk-UA/events.json
+30 −1 bot/vi-VN/commands.json
+7 −0 bot/vi-VN/events.json
+22 −22 core/pt-BR/installer.json
Loading

0 comments on commit 7bc1a0e

Please sign in to comment.