Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aruna 4.3 #15

Merged
merged 170 commits into from
Feb 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
bc2a92d
Starting Aruna 4.3 development
LoboMetalurgico Jul 12, 2020
7d856f6
Formatting
LoboMetalurgico Jul 13, 2020
99fcea0
idk what to put here
LoboMetalurgico Jul 13, 2020
05f5219
Shard Info
LoboMetalurgico Jul 13, 2020
8369635
Old Bug Fixed
LoboMetalurgico Jul 13, 2020
1b7f688
New Prefix Change Sytem (Step 1)
LoboMetalurgico Jul 13, 2020
97cbf7b
Formatting
LoboMetalurgico Jul 13, 2020
de3f195
Aruna 4.3 package
LoboMetalurgico Jul 13, 2020
f49bb2f
Auto Role (Step 0.5)
LoboMetalurgico Jul 13, 2020
3f63498
Merge branch 'Stable' into Unstable
LoboMetalurgico Jul 13, 2020
94c5989
Prefix in Config Command (Part 2)
LoboMetalurgico Jul 13, 2020
3cbdae7
Minor Bugs Fixed
LoboMetalurgico Jul 13, 2020
5ed66fb
Mass Role and Mass Remove Role
LoboMetalurgico Jul 13, 2020
96df312
Fix
LoboMetalurgico Jul 18, 2020
f87d43c
Update Dependencies
LoboMetalurgico Jul 20, 2020
1f2990d
Starting Multilanguage System
LoboMetalurgico Aug 9, 2020
8377b05
.gitmodules fix
LoboMetalurgico Aug 9, 2020
f3f86af
Removing .gitmodules
LoboMetalurgico Aug 9, 2020
c3177d9
Updating the README
LoboMetalurgico Aug 9, 2020
e0075a3
Adding languages as submodule
LoboMetalurgico Aug 9, 2020
339592a
Implementing Internal Language Uses
LoboMetalurgico Aug 10, 2020
cf2824c
Fix
LoboMetalurgico Aug 10, 2020
e168063
Avatar Command
LoboMetalurgico Aug 10, 2020
523feac
Update languages
LoboMetalurgico Aug 10, 2020
054e065
Update languages
LoboMetalurgico Aug 10, 2020
e5e3193
Update languages
LoboMetalurgico Aug 10, 2020
0eae016
Calc Language (Part 1 of 2)
LoboMetalurgico Aug 10, 2020
6af951b
Fix Calculator
LoboMetalurgico Aug 10, 2020
ada67bc
Calculator Strings (Part 2 of 2)
LoboMetalurgico Aug 10, 2020
a41f55b
Update languages
LoboMetalurgico Aug 10, 2020
3570883
Merge branch 'Stable' into Unstable
LoboMetalurgico Aug 10, 2020
62cad8f
Update Dependencies
LoboMetalurgico Aug 10, 2020
71fa328
Shard Languages
LoboMetalurgico Aug 10, 2020
83a0387
Removing old dependencies
LoboMetalurgico Aug 10, 2020
d487908
Main Strings
LoboMetalurgico Aug 10, 2020
9ad1d79
Cluster Strings
LoboMetalurgico Aug 10, 2020
0200d64
default language configuration
LoboMetalurgico Aug 10, 2020
83dd699
Clear Command Strings
LoboMetalurgico Aug 10, 2020
59818f9
Crowdin Language Update
LoboMetalurgico Aug 10, 2020
a684cf2
Laguage Fix
LoboMetalurgico Aug 10, 2020
2a7a83d
clean message
LoboMetalurgico Aug 10, 2020
3af6d19
Mention Texts
LoboMetalurgico Aug 10, 2020
cbff4e2
stupidity fix
LoboMetalurgico Aug 10, 2020
7466f32
Update languages
LoboMetalurgico Aug 10, 2020
a3d58da
fix package-lock.json
LoboMetalurgico Aug 10, 2020
be7758b
Update README.md
LoboMetalurgico Aug 10, 2020
f923f07
Prefix Deprecation Warn
LoboMetalurgico Aug 10, 2020
146dd8d
Use Global Permission Translation
LoboMetalurgico Aug 10, 2020
235d250
Fix #21
LoboMetalurgico Aug 11, 2020
a8473bf
Prefix Command Strings
LoboMetalurgico Aug 11, 2020
5f06690
Fix #23 and add error strings
LoboMetalurgico Aug 11, 2020
d9a210c
Fix Readme
LoboMetalurgico Aug 11, 2020
ae955dd
Minor Bugs Fix
LoboMetalurgico Aug 11, 2020
7cb1e47
Fix
LoboMetalurgico Aug 11, 2020
da20bb6
Shard Master Translation
LoboMetalurgico Aug 11, 2020
6d9d372
Default Language
LoboMetalurgico Aug 11, 2020
1040ca0
Fix Idle Count ( #24 )
LoboMetalurgico Aug 11, 2020
6457d88
Fix Language Path
LoboMetalurgico Aug 11, 2020
a912a27
Initialization strings
LoboMetalurgico Aug 11, 2020
5720cef
Fix #25
LoboMetalurgico Aug 11, 2020
52b6b54
Ready and UpRank Strings
LoboMetalurgico Aug 14, 2020
9050092
Minor Bugs Fixed
LoboMetalurgico Aug 14, 2020
5431c04
Fix #26
LoboMetalurgico Aug 14, 2020
bb05fcb
Fix topg doesn't work
LoboMetalurgico Aug 14, 2020
1e2ae87
Fix the Fix
LoboMetalurgico Aug 14, 2020
f83b31b
Default Language Fix
LoboMetalurgico Aug 15, 2020
f71c462
Fix Readme
LoboMetalurgico Aug 15, 2020
89f8381
Fix ready.js
LoboMetalurgico Aug 15, 2020
37f3ee1
Flip, Ping and Rank strings
LoboMetalurgico Aug 15, 2020
873f3e3
Fix Default Language
LoboMetalurgico Aug 15, 2020
09eed69
Readme Update
LoboMetalurgico Aug 15, 2020
7f46e3b
Language Name Fix
LoboMetalurgico Aug 15, 2020
e653640
Little Issue Fix
LoboMetalurgico Aug 16, 2020
a49469c
MassRemove and MassRole Command String
LoboMetalurgico Aug 16, 2020
2e193d9
Translations
LoboMetalurgico Aug 16, 2020
684bb15
Fix #27
LoboMetalurgico Aug 27, 2020
ccbf2f2
Global Shard Manager
LoboMetalurgico Sep 14, 2020
5034989
Revert "Global Shard Manager"
LoboMetalurgico Sep 14, 2020
b5261c1
;
LoboMetalurgico Sep 14, 2020
521e184
More translations
LoboMetalurgico Sep 14, 2020
5b3f689
Update Dependencies and Fix Vulnerability
LoboMetalurgico Sep 14, 2020
3bcf78e
Minor Bugs Fixed:tm:
LoboMetalurgico Sep 14, 2020
23d2010
more translations
LoboMetalurgico Sep 14, 2020
fd5f1c8
Minor Bugs Fixed:tm:
LoboMetalurgico Sep 16, 2020
4a8dc0e
Fix #28
LoboMetalurgico Sep 16, 2020
7598988
Merge branch 'Stable' into Unstable
LoboMetalurgico Sep 16, 2020
3f602c9
Github Languages
LoboMetalurgico Sep 17, 2020
5bbd20e
Error
LoboMetalurgico Sep 17, 2020
fe41d7e
Fix Error
LoboMetalurgico Sep 17, 2020
38e0a66
Invite String
LoboMetalurgico Sep 17, 2020
3d22854
Support Command Translations
LoboMetalurgico Sep 17, 2020
02a669a
Implement public command config, help upgrade, db fix, other things
LoboMetalurgico Sep 29, 2020
ebc177b
Minor Bugs Fixed
LoboMetalurgico Sep 29, 2020
e822520
Language Update
LoboMetalurgico Sep 29, 2020
d6f7b37
Loop Fix
LoboMetalurgico Sep 29, 2020
08f32cb
Add Event Not Found Warn
LoboMetalurgico Sep 29, 2020
daf5ea4
Change log system
LoboMetalurgico Sep 29, 2020
84f5b27
Plural Fix
LoboMetalurgico Sep 29, 2020
ed87441
Major Bug Fixed
LoboMetalurgico Oct 1, 2020
f0c89fa
Anti Fake System
LoboMetalurgico Oct 1, 2020
c3ef8e5
Ban Languages and add issue info
LoboMetalurgico Oct 4, 2020
52e2f26
Update Emojis
LoboMetalurgico Oct 30, 2020
6d730c0
Fix: #31
LoboMetalurgico Oct 30, 2020
771352e
Fix Total Shard count
LoboMetalurgico Oct 30, 2020
41a4350
Upgrade Botinfo Command to use shard methods
LoboMetalurgico Oct 30, 2020
982d661
Really Better Botinfo command
LoboMetalurgico Nov 6, 2020
dce49a4
Try fix a vulnerability
LoboMetalurgico Nov 6, 2020
894aa58
Fix Readme
LoboMetalurgico Nov 8, 2020
7ea57f9
Rewrite Config Command (Part 1 of UNDEFINED)
LoboMetalurgico Nov 8, 2020
759457a
Fix eslint indent for SwitchCase
LoboMetalurgico Nov 8, 2020
fef4f56
Rewrite Config Command (Part 2 of 2)
LoboMetalurgico Nov 8, 2020
7c3fee7
Servericon command
LoboMetalurgico Nov 8, 2020
2abaa97
Finish Clear
LoboMetalurgico Nov 9, 2020
5897363
Config Command Localization
LoboMetalurgico Nov 10, 2020
5763ab9
Initial Docker Support
LoboMetalurgico Nov 11, 2020
9cd16aa
chore(lint): Auto-fix linting errors
LoboMetalurgico Nov 20, 2020
e12ed62
Adding more status
LoboMetalurgico Nov 20, 2020
600330a
Update Language
LoboMetalurgico Nov 20, 2020
95cb0a9
Fix uptime
LoboMetalurgico Nov 20, 2020
d2d9078
Minor Bug Fixed
LoboMetalurgico Nov 20, 2020
9f0e676
Perfomance Fix
LoboMetalurgico Nov 22, 2020
baa5df3
Adding AGPL required text
LoboMetalurgico Nov 24, 2020
84e059c
Help Command Localization
LoboMetalurgico Nov 24, 2020
60e0bf0
Adding Language Change option into Config Command
LoboMetalurgico Nov 24, 2020
d141795
Fix config - language bug
LoboMetalurgico Nov 25, 2020
970b633
Merge branch 'Stable' into Unstable
LoboMetalurgico Nov 25, 2020
024247e
Localize Kick Command
LoboMetalurgico Nov 29, 2020
394f75c
Increment Ban Command
LoboMetalurgico Nov 29, 2020
e7ab285
Optimizing Code
LoboMetalurgico Nov 30, 2020
6810952
Removing Unecessary await's
LoboMetalurgico Nov 30, 2020
9ff4b34
old code remove
LoboMetalurgico Nov 30, 2020
992be07
Dice command localization
LoboMetalurgico Nov 30, 2020
f25410f
Add contributors Info
LoboMetalurgico Nov 30, 2020
c9642d9
()
LoboMetalurgico Nov 30, 2020
344e140
/
LoboMetalurgico Nov 30, 2020
bd9eb26
Fix some bugs related with process.env
LoboMetalurgico Dec 14, 2020
26fd7b2
Update dependencies
LoboMetalurgico Dec 14, 2020
1698f9d
Merge branch 'Stable' into Unstable
LoboMetalurgico Dec 14, 2020
faa2ca1
Fix eslint workflow
LoboMetalurgico Dec 14, 2020
8dbe06a
Better DBL event report
LoboMetalurgico Dec 14, 2020
345fdb8
add id support
LoboMetalurgico Dec 14, 2020
60e8dd4
fix a minor bug
LoboMetalurgico Dec 14, 2020
7057ffa
Ultimate FakeName Verification
LoboMetalurgico Dec 27, 2020
ab480d8
Update Packages
LoboMetalurgico Dec 27, 2020
093705a
Fix bot command
LoboMetalurgico Dec 27, 2020
a6acaa9
Optmizing ready.js
LoboMetalurgico Dec 27, 2020
f364054
Fix Optimization
LoboMetalurgico Dec 27, 2020
25c472b
Remove Comment
LoboMetalurgico Dec 27, 2020
bc33d42
Serverinfo command localization
LoboMetalurgico Dec 27, 2020
9a923da
Alternative Commands fix
LoboMetalurgico Dec 28, 2020
1fd954e
Merge branch 'Stable' into Unstable
LoboMetalurgico Dec 28, 2020
d73addf
Userinfo upgrade
LoboMetalurgico Jan 7, 2021
1b33700
Language string fix
LoboMetalurgico Jan 7, 2021
f40f188
Ship Command Localization
LoboMetalurgico Jan 9, 2021
0b4e0d3
Localization for bot command
LoboMetalurgico Feb 6, 2021
e5a0f29
Update dependencies and add nodemon
LoboMetalurgico Feb 6, 2021
5bcba7d
Perfomance Fix
LoboMetalurgico Feb 7, 2021
c5ba8ac
Userinfo Localization
LoboMetalurgico Feb 7, 2021
27db55e
Update Language + Unban Command Localization
LoboMetalurgico Feb 7, 2021
79d57ee
Update Dependencies
LoboMetalurgico Feb 7, 2021
c09d45e
Fix "date is undefined"
LoboMetalurgico Feb 7, 2021
d3d0bdf
Fix 'boost since' info
LoboMetalurgico Feb 8, 2021
56a240a
Fix a critical bug in config command
LoboMetalurgico Feb 9, 2021
73a1e8a
Fix config command error
LoboMetalurgico Feb 11, 2021
6a12cfe
Another fix
LoboMetalurgico Feb 11, 2021
caa16f5
aliase fix
LoboMetalurgico Feb 11, 2021
d259cdf
Fix a Major Bug
LoboMetalurgico Feb 11, 2021
64b3b40
Fix ship command
LoboMetalurgico Feb 11, 2021
44dbed6
Fix Config Error
LoboMetalurgico Feb 15, 2021
3fdcee4
4.3
LoboMetalurgico Feb 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .Configs/apiKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/


//Dbots API Keys
// API Keys
module.exports = {
}

};
6 changes: 6 additions & 0 deletions .Configs/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@
*/

module.exports = {
debug: false,
prefix: '-',
token: '',
mongoose: '',
superUsersId: ['281515925960654848'], // Your User ID Comes Here!
noFakeId: ['187915892384858112', '281515925960654848'],
validLanguages: ['br', 'en', 'es'], // DON'T CHANGE THIS IF YOU DON'T KNOW WHAT ARE YOU DOING!
language: 'br', // Console Language
defaultLanguage: 'en', // Bot Language
sharding: {
totalShards: 'auto',
delay: 7500
Expand Down
1 change: 1 addition & 0 deletions .Configs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

module.exports = {
apiKeys: require('./apiKeys.js'),
configs: require('./general.js'),
config: require('./general.js'),
links: require('./links.js'),
Expand Down
13 changes: 7 additions & 6 deletions .Configs/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
*/

module.exports = {
supportServers: [''],
invites: [''],
donate: [''],
website: '',
trelloBoard: ''
};
donate: [''],
invites: [''],
supportServers: [''],
trelloBoard: '',
twitch: 'https://www.twitch.tv/lobometalurgico', // Required
website: ''
};
36 changes: 31 additions & 5 deletions .Configs/mongoose.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,37 @@

var mongoose = require('mongoose');
const config = require('./general.js');
const chalk = require('chalk');
const language = require(`../languages/bot/${config.language}/internal.json`);

var Schema = mongoose.Schema;
const url = config.mongoose;
mongoose.connect(
url,
{ useNewUrlParser: true, useUnifiedTopology: true },
err => {
if (err) return console.log('(CLUSTER) => Erro\n', err);
console.log('(CLUSTER) => Conectado!');
if (err) return error(`[${language.main.error}] => ${err}`);
log(language.generic.connected);
}
);

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

var 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 },
autoRole: { 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 }
});
Expand Down Expand Up @@ -72,7 +77,6 @@ var Support = new Schema({

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

Expand All @@ -97,4 +101,26 @@ exports.Suport = Supports;
exports.System = Systems;
exports.Guilds = Guilds;
exports.Users = Users;
exports.Rank = Ranks;
exports.Rank = Ranks;

function logPrefix() {
return `${chalk.gray('[')}${chalk.blue(language.main.cluster)}${chalk.gray(']')}`;
}

function log(...a) {
return console.log(logPrefix(), ...a);
}

// eslint-disable-next-line no-unused-vars
function warn(...a) {
return console.warn(logPrefix(), chalk.yellow(...a));
}

function error(...a) {
return console.error(logPrefix(), chalk.red(...a));
}

// eslint-disable-next-line no-unused-vars
function debug(...a) {
return console.debug(logPrefix(), chalk.magenta(...a));
}
27 changes: 27 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
**/.classpath
**/.dockerignore
**/.env
**/.eslintrc.json
**/.eslintignore
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
**/tmp
README.md
LICENSE
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.Config
Config/
Config/
tmp/
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"computed-property-spacing": "warn",
"indent": [
"warn",
2
2,
{ "SwitchCase": 1 }
],
"keyword-spacing": [
"warn",
Expand All @@ -30,7 +31,7 @@
"max-len": [
"warn",
{
"code": 160,
"code": 165,
"ignoreComments": true,
"ignoreUrls": true
}
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: ESLint
on:
push:
paths:
- "src/**"
- ".eslintrc.*"
- ".github/workflows/eslint.yml"
on: [push, pull_request]

jobs:
update:
name: ESLint

runs-on: ubuntu-latest

if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.env
Configs/
node_modules/
.vscode/
.vscode/
tmp/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "languages"]
path = languages
url = https://github.com/ArunaBot/ArunaLanguages.git
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:12.16.2
LABEL maintainer="Lobo Metalúrgico <[email protected]>"
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
COPY . .
RUN git clone https://github.com/ArunaBot/ArunaLanguages.git languages
CMD ["npm", "start"]
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

<p align="center">
<a href="https://discord.gg/NqbBgEf"><img src="https://discordapp.com/api/guilds/660610178009530380/widget.png"></a>
<a href="https://discord.gg/NqbBgEf" target="_blank"><img src="https://discordapp.com/api/guilds/660610178009530380/widget.png"></a>
</p>
<h1 align="center">Aruna</h1>
<p align="center">
<a href="https://top.gg/bot/593303574725787657" >
<a href="https://top.gg/bot/593303574725787657" target="_blank" >
<img src="https://top.gg/api/widget/593303574725787657.svg" alt="Aruna" />
</a>
</p>
Expand All @@ -26,7 +26,7 @@

Olá, eu me chamo Aruna. Sou um bot brasileiro para Discord com algumas funções muito interessantes.

Eu tenho várias funções para entretenimento (como comandos engraçados e memes), funções sociais (sistema de perfil com XP e reputação), extremamente customizável (você pode ativar/desativar qualquer comando meu, alterar meu prefixo para o que você quiser e muito mais!).
Eu tenho várias funções para entretenimento (como comandos engraçados), funções sociais, extremamente customizável (você pode ativar/desativar diversos comandos meu, alterar meu prefixo para o que você quiser e muito mais!).

## Como eu adiciono-a ao meu servidor?

Expand All @@ -38,8 +38,9 @@ Você pode obter suporte sobre a Aruna [clicando aqui](https://discord.gg/NqbBgE

## Como ajudar?

No momento, existe apenas 1 repositório [na nossa organização](https://github.com/ArunaBot); Este é,
No momento, temos 2 repositórios [na nossa organização](https://github.com/ArunaBot); Estes são,
* [Aruna](https://github.com/ArunaBot/Aruna): Código-fonte da Aruna ("backend"), isto inclui todo o bot em si.
* [ArunaLanguages](https://github.com/ArunaBot/ArunaLanguages): Os idiomas da aruna, toda e qualquer tradução vem de lá.

### 💵 Como Doar?

Expand All @@ -55,16 +56,18 @@ Você também pode hospedar a Aruna você mesmo (afinal, é por isso que se cham
* Para evitar confusões e problemas, você **não pode** utilizar o nome ou a personagem "Aruna" ou nomes parecidos na sua versão selfhosted.

Nós [recomendamos utilizar a versão pública da Aruna](https://discordapp.com/oauth2/authorize?client_id=593303574725787657&scope=bot&permissions=2146954751), mas se você *realmente* quiser hospedar ou ajudar a desenvolver a Aruna, siga os seguintes passos:
1. Tenha o [NODE 12.16.2 (ou superior)](https://nodejs.org/en/) instalado na sua máquina e certifique-se que o node e o npm (incluso no node) está acessível pelo terminal. (Tente executar `node` e `npm` no terminal, caso não funcione, procure reinstalar o node ou reiniciar a máquina).

1. Tenha o [NODE 12.16.2 (ou superior)](https://nodejs.org/en/) instalado na sua máquina e certifique-se que o node e o npm (incluso no nodejs) estão acessíveis pelo terminal. (Tente executar `node -v` e `npm -v` no terminal, caso não funcionem, procure reinstalar o nodejs ou reiniciar a máquina).
2. Tenha o MongoDB instalado na sua máquina. (Ou se prefereir, pode usar o [MongoDB Online](https://mongodb.com/)).
3. Tenha o `git-shell` ou o `git-cli` instalados. No Windows você pode utilizar o `Git Bash`.
4. Caso você precise ou fazer modificações no código-fonte, é recomendado utilizar o [Visual Studio Code](https://code.visualstudio.com/).
5. Faça `git clone https://github.com/ArunaBot/Aruna.git` em alguma pasta no seu computador.
6. Agora, usando o processador de comandos do seu sistema operacional (CMD, POWERSHELL, Terminal, etc), entre na pasta criada e utilize `npm install`.
8. Ao terminar de fazer o download de tudo, verifique se foi criado a pasta `node modules`.
5. Execute o comando `git clone https://github.com/ArunaBot/Aruna.git` usando seu terminal git em uma pasta vazia do seu computador.
6. Acesse a pasta criada usando o processador de comandos do seu sistema operacional (CMD, POWERSHELL, Terminal, etc) e execute o comando `git submodule update --init` para baixar o pacote de idiomas da aruna.
7. Ainda com o processador de comandos, execute o comando `npm install`.
8. Ao terminar de fazer o download de tudo, verifique se foi criado a pasta `node_modules`.
9. Caso essa pasta exista e tenha sido criado o arquivo `package-lock.json` significa que tudo deu certo!
10. Agora, retire o `_` da pasta `_configs` e do aquivo `_.env`.
11. Depois, abra o arquivo .env e preencha o `TOKEN_ARUNA` com o token do seu bot, e o `MONGOOSE` com seu diretório do moongose criado no mongodb.com. (Caso tenha hospedado o mongo em sua máquina, altere o arquivo presente na configs/mongoose.js com as configurações adequadas no campo de url e login (verifique a documentação do mongoose para isso)).
10. Agora, retire o `.` da pasta `.Configs`.
11. Depois, abra o arquivo `general` e preencha o campo `token` com o token do seu bot, o campo `mongoose` com o link de acesso ao mongoose e por fim, altere o campo `superUsersId` para o id do seu usuário.
11. Com tudo pronto, podemos iniciá-la abrindo um terminal e digitando `npm start`.
12. Caso tenha dado tudo certo, a sua versão selfhosted irá iniciar e você poderá utilizar os comandos dela! 🎉

Expand All @@ -78,11 +81,11 @@ O seu código não pode ser algo "gambiarra", meu código pode ter gambiarras ma

Você precisa pensar "será que alguém iria utilizar isto?", se você criar um comando que só seja útil no seu servidor, provavelmente eu irei negar o seu Pull Request.

Funcionalidades (como comandos) relacionados a coisas NSFW **não serão** adicionadas na Aruna e seu Pull Request será negado, eu prefiro que as pessoas pensem que ela é um bot que faz memes, ao invés de um bot que fica mandando coisas NSFW no chat.
Funcionalidades (como comandos) relacionados a coisas NSFW **não serão** adicionadas na Aruna e seu Pull Request será negado.

## Dependências

A Aruna utiliza várias [dependências no código-fonte dela](https://github.com/ArunaBot/Aruna/blob/stable/package.json), obrigado a todos os mantenedores das dependências! Sem vocês, a Aruna não iria existir (ou teria várias funcionalidades reduzidas ou talvez até inexistentes!).
A Aruna utiliza várias [dependências no código-fonte](https://github.com/ArunaBot/Aruna/blob/stable/package.json), obrigado a todos os mantenedores das dependências! Sem vocês, a Aruna não iria existir (ou teria várias funcionalidades reduzidas ou até inexistentes!).

| Nome | Mantenedor |
| ------------- | ------------- |
Expand All @@ -93,7 +96,6 @@ A Aruna utiliza várias [dependências no código-fonte dela](https://github.com
| [Mongoose](http://mongoosejs.com/) | vkarpov15, aheckmann, rauchg, etc |
| [Moment](http://momentjs.com) | ichernev, timrwood, icambron, etc |
| [Moment Duration Format](https://github.com/jsmreese/moment-duration-format) | jsmreese |
| [Dotenv](https://github.com/motdotla/dotenv) | motdotla, maxbeatty, etc |
| [Ytdl Core](https://github.com/fent/node-ytdl-core) | fent, #3TimeForANinja, etc |
| [Node Opus](github.com/Rantanen/node-opus) | Rantanen, thijstriemstra, nfriedly, etc |
| [Jimp](github.com/oliver-moran/jimp) | hipstersmoothie, oliver-moran, strandedcity, etc |
Expand All @@ -107,4 +109,4 @@ O código-fonte da Aruna está licenciado sob a [GNU Affero General Public Licen

<hr>
<br>
<p align="center">"Discord", "DiscordApp" and any associated logos are registered trademarks of Discord Inc.</p>
<p align="center">"Discord", "DiscordApp" and any associated logos are registered trademarks of Discord Inc.</p>
13 changes: 13 additions & 0 deletions docker-compose.debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.4'

services:
arunabot:
image: arunabot
build:
context: .
dockerfile: ./Dockerfile
environment:
NODE_ENV: development
ports:
- 9229:9229
command: ["node", "--inspect=0.0.0.0:9229", "src/main.js"]
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.4'

services:
arunabot:
image: arunabot
build:
context: .
dockerfile: ./Dockerfile
environment:
NODE_ENV: production
1 change: 1 addition & 0 deletions languages
Submodule languages added at 9415e9
Loading