Skip to content

Commit

Permalink
Merge pull request #108 from RainyXeon/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
RainyXeon authored May 31, 2024
2 parents 22050f1 + 38a4a8d commit b96187c
Show file tree
Hide file tree
Showing 262 changed files with 4,877 additions and 2,214 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ A clear and concise description of what you expected to happen.
**Screenshots and logs (logs file if avalible)**
If applicable, add screenshots to help explain your problem.

**Host info: (use `/info status` command and paste here, below is example)**
**Host info: (use `/host` command and paste here, below is example)**

- OS: Linux 6.2.0-1016-aws (x64)
- CPU: AMD EPYC 7R13 Processor
Expand All @@ -32,9 +32,9 @@ If applicable, add screenshots to help explain your problem.
- Memory Usage: 109.82/31398.14 (MB)
- Node.js: v21.1.0

**Bot info (use `/info status` command and paste here, below is example):**
**Bot info (use `/host` command and paste here, below is example):**

- Codename: hatsuharu (AzurLane)
- Codename: hatsuharu
- Bot version: 3.0.4
- Autofix version: 4.1.0
- Discord.js: 14.13.0
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"printWidth": 120
"printWidth": 100
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- Slash Commands
- Custom Filters
- Playlist System
- Premium System
- Premium System (Guild / User)
- Play Song Using File
- Cooldown System
- Shard System
Expand Down Expand Up @@ -155,6 +155,8 @@ Version numbers can come in different combinations, depending on the release typ
- [@AutoP1ayer](https://github.com/AutoP1ayer) **Discord:** `autoplayer.uwu`
- [x] **th (Thai)**
- [@SillyDark](https://github.com/SillyDark) **Discord:** `defectsocute`
- [x] **pt (Brazilian Portuguese)**
- [@psycodeliccircus](https://github.com/psycodeliccircus) **Discord:** `renildomrc`

## ⁉ Become to translate team?

Expand Down
178 changes: 178 additions & 0 deletions README_pt-BR.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
<br />
<p align="center">
<a href="https://github.com/RainyXeon/ByteBlaze">
<img src="https://raw.githubusercontent.com/RainyXeon/ByteBlaze/dev/.github/assets/logo.png" alt="ByteBlaze" width="200" height="200">
</a>

<h1 align="center">ByteBlaze</h1>

<p align="center">Um bot de música versátil e poderoso para o Discord que traz ritmo e melodia para o seu servidor!
<br />
<br />
<a href="https://top.gg/bot/992776455790534667">Convide Dreamvast ♫</a>
·
<a href="https://github.com/RainyXeon/ByteBlaze/issues">Reportar Problemas e Dar Sugestões</a>
·
<a href="https://discord.gg/xff4e2WvVy">Servidor de Suporte</a>
</p>
</p>

## 💎 Recursos

- Linguagem TypeScript para Evitar Erros em Produção
- Sistema de Música Avançado com Botões
- Canal de Solicitação de Músicas
- Suporte a Contas de Múltiplos Bots
- Modo 24/7
- Multi Linguagem
- Comandos Slash
- Filtros Personalizados
- Sistema de Playlist
- Sistema Premium
- Tocar Música Usando Arquivo
- Sistema de Tempo de Recarga
- Sistema de Shard
- Reconexão Automática
- Pausa/Retomada Automática
- Pesquisa Automática Completa
- Correção Automática do Lavalink de [lavalink.darrennathanael.com](https://lavalink.darrennathanael.com/NoSSL/lavalink-without-ssl)
- Suporte ao lavalink v4, v3 e nodelink v2

## 🎶 Fontes Suportadas

| Fonte de Música | Sem Plugin Lavalink | Com Plugin Lavalink |
| :---------------------------------: | :-----------------: | :-----------------: |
| YouTube |||
| SoundCloud |||
| (LS) Spotify | ⚠️ ||
| HTTP |||
| (LS) Deezer | ⚠️ ||
| Twitch |||
| Bandcamp |||
| Nicovideo | ⚠️ | ⚠️ |
| (LS) Apple Music | ⚠️ ||
| (LS) Yandex Music |||
| (LS) Flowery TTS |||
| (DB) Mixcloud |||
| (DB) OC ReMix |||
| (DB) Clyp.it |||
| (DB) Reddit |||
| (DB) GetYarn |||
| (DB) Text to Speech |||
| (DB) TikTok (BETA) |||
| (DB) P\*\*nhub (Não recomendado) |||
| (DB) Soundgasm |||

-**Suporte completo com a configuração padrão do Lavalink**
- ⚠️ **Suporta mas resolve do YouTube ou SoundCloud apenas**
-**Não suportado**
- (LS) **Fonte do plugin LavaSrc**
- (DB) **Fonte do plugin DuncteBot**

## 📂 Bancos de Dados Suportados

- [x] MySQL
- [x] MongoDB
- [x] JSON
- [x] PostgresSQL

## 🔉 Versão Suportada do Lavalink/Nodelink

| Tipo | Versões Suportadas | Nome do Driver |
| -------- | ------------------ | ----------------- |
| Lavalink | v4.0.0 - v4.x.x | lavalink/v4/koinu |
| Lavalink | v3.0.0 - v3.7.x | lavalink/v3/koto |
| Nodelink | v2.0.0 - v2.x.x | nodelink/v2/nari |

## 🖼️ Mostrar

![comando_de_ajuda](https://raw.githubusercontent.com/RainyXeon/ByteBlaze/dev/.github/assets/help_command.png)
![req_musica](https://raw.githubusercontent.com/RainyXeon/ByteBlaze/dev/.github/assets/song_request.png)
![info_playlist](https://raw.githubusercontent.com/RainyXeon/ByteBlaze/dev/.github/assets/playlist_info.png)
![gerador_pm](https://raw.githubusercontent.com/RainyXeon/ByteBlaze/dev/.github/assets/pm_gen.png)

## 📋 Requisitos

- ![Node.js](https://img.shields.io/badge/Node.js-026E00?style=for-the-badge) Versão do Node.js 18.0.0+ [Download](https://nodejs.org/en/download)
- ![Discord](https://img.shields.io/badge/Discord-404EED?style=for-the-badge) Token de Bot do Discord [Guia](https://discordjs.guide/preparations/setting-up-a-bot-application.html#creating-your-bot)
- ![Lavalink](https://img.shields.io/badge/Lavalink-FC3F37?style=for-the-badge) Versão do Lavalink 3.7.0+ ou 4.0.0+ [Download](https://github.com/lavalink-devs/Lavalink/releases)
- ![Git](https://img.shields.io/badge/Git-F05033?style=for-the-badge) Git [Download](https://git-scm.com/downloads)

## 🛠️ Instalação

1. Clone este repositório usando `git clone https://github.com/RainyXeon/ByteBlaze.git`
2. execute `cd ByteBlaze` para ir para a pasta **ByteBlaze**.
3. Arquivos de configuração:
- Nota: Todos os tipos de configurações devem preencher `TOKEN`, `OWNER_ID` e `NODES`
- Se você deseja usar a configuração padrão e ter uma configuração mínima, renomeie o arquivo **example.app.yml** para **app.yml**
- Se você deseja usar todas as configurações, renomeie o arquivo **example.full.app.yml** para **app.yml**
4. execute `npm i` para instalar os pacotes necessários.
5. execute `npm run build:full` para compilar o bot.
6. execute `npm start` para iniciar o bot.
7. **Aproveite ouvindo música com o ByteBlaze!**

## [![Repl.it](https://img.shields.io/badge/Repl.it-1C2333?style=for-the-badge&logo=replit&logoColor=orange)](https://replit.com/@RainyXeon/ByteBlaze)

1. [Clique Aqui](https://replit.com/@RainyXeon/ByteBlaze) e faça um fork do repl.
2. preencha **app.yml** com `TOKEN` e `NODES`
3. Inicie o bot usando o botão **Run**.
4. **Aproveite ouvindo música com o ByteBlaze!**

## ⚙️ Guia

Para um guia avançado de instalação e configuração, confira a aba **Wiki** ou [Clique Aqui!](https://github.com/RainyXeon/ByteBlaze/wiki)

## 📜 Política de Versionamento

ByteBlaze segue o [Versionamento Semântico](https://semver.org/)

O número da versão é composto pelas seguintes partes:

MAJOR mudanças quebradoras
MINOR novas funcionalidades compatíveis com versões anteriores
PATCH correções de bugs compatíveis com versões anteriores
BUILD metadados de construção adicionais
PRERELEASE versão pré-lançamento

Os números de versão podem vir em diferentes combinações, dependendo do tipo de lançamento:

`MAJOR.MINOR.PATCH` - Lançamento estável
`MAJOR.MINOR.PATCH+BUILD` - Lançamento estável com metadados de construção adicionais
`MAJOR.MINOR.PATCH-PRERELEASE` - Pré-lançamento
`MAJOR.MINOR.PATCH-PRERELEASE+BUILD` - Pré-lançamento com metadados de construção adicionais

## 📃 Equipe de Tradução (Idiomas)

- [x] **en (Inglês)**
- [@RainyXeon](https://github.com/RainyXeon) **Discord:** `rainyxeon`
- [x] **vi (Vietnamita)**
- [@RainyXeon](https://github.com/RainyXeon) **Discord:** `rainyxeon`
- [x] **hi (Hindi)**
- [@anas-ike](https://github.com/anas-ike) **Discord:** `lights.out.`
- [x] **ko (Coreano)**
- [@EmuPIKin](https://github.com/EmuPIKin) **Discord:** `emupikin`
- [x] **ru (Russo)**
- [@AutoP1ayer](https://github.com/AutoP1ayer) **Discord:** `autoplayer.uwu`
- [x] **th (Tailandês)**
- [@SillyDark](https://github.com/SillyDark) **Discord:** `defectsocute`
- [x] **pt (Brazilian Portuguese)**
- [@psycodeliccircus](https://github.com/psycodeliccircus) **Discord:** `renildomrc`

## ⁉ Quer fazer parte da equipe de tradução?

- [Crowdin](https://crowdin.com/project/byteblaze)

## 💫 Agradecimentos Especiais

- [@DarrenOfficial](https://github.com/DarrenOfficial) [Fontes do Lavalink]
- [@PAINFUEG0](https://github.com/PAINFUEG0) [Meu Amigo]
- [@Adivise](https://github.com/Adivise) [Inspiração]
- [@brblacky](https://github.com/brblacky) [Inspiração]
- [@mrstebo](https://github.com/mrstebo) [Analizador de env]
- [@ItzZoldy](https://github.com/ItzZoldy) [Designer]

**E a Todos que Favoritaram e Contribuíram para Meu Projeto 💖**

## 💫 Créditos:

- [@RainyXeon](https://github.com/RainyXeon) **Discord:** `rainyxeon` Como proprietário e criador deste projeto
2 changes: 1 addition & 1 deletion example.app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bot:
TOKEN: ["Bot Token 1"]
OWNER_ID: "Your User ID"

lavalink:
player:
NODES:
- host: "IP"
port: 2333 # Your host port here
Expand Down
62 changes: 50 additions & 12 deletions example.full.app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ bot:
EMBED_COLOR: "#2B2D31"
OWNER_ID: "Your User ID"
ADMIN: ["<your_trusted_admin_discord_id_here>"]
LANGUAGE: "en" # You can set it to en, vi...
LIMIT_TRACK: 50 # The number of tracks you want to limit
LIMIT_PLAYLIST: 20 # The number of playlist you want to limit
SAFE_ICONS_MODE: false # If the new icon doesn't appear, try changing this to true
DELETE_MSG_TIMEOUT: 3000
# You can set it to en, vi...
LANGUAGE: "en"
DEBUG_MODE: false

lavalink:
player:
SPOTIFY:
# Your Spotify ID and Secret, you can get it from here: https://developer.spotify.com
# If you don't have or don't want, you can disable it
Expand All @@ -30,15 +27,24 @@ lavalink:
# Default search suggestion for auto complete, leave it empty will use default
AUTOCOMPLETE_SEARCH: ["yorushika", "yoasobi", "tuyu", "hinkik"]

NP_REALTIME: false # Enable this if you want to use realtime duation in nowplaying command
# Enable this if you want to use realtime duation in nowplaying command
NP_REALTIME: false

LEAVE_TIMEOUT: 60000 # The number of leave time you want
# The number of leave time you want
LEAVE_TIMEOUT: 60000

DEFAULT_VOLUME: 100 # Must not over 1000 or bot crash
# Must not over 1000 or bot crash
DEFAULT_VOLUME: 100

# Enable this to avoid your bot get suspended (Recommended to be enable)
AVOID_SUSPEND: true

# The number of tracks you want to limit
LIMIT_TRACK: 50

# The number of playlist you want to limit
LIMIT_PLAYLIST: 20

# You can add more Lavalink servers!
NODES:
- host: "IP"
Expand All @@ -57,7 +63,7 @@ lavalink:
# | Nodelink | v2.0.0 - v2.x.x | lavalink/v3/koto |
driver: "lavalink@4"

features:
utilities:
# Enable debug tools for execute code from bot
# use dokdo package, owner only, no prefix changes
# You have to enable message_content to use
Expand All @@ -69,26 +75,58 @@ features:
GUILD_LOG_CHANNEL: ""
# Log all unhandled, error, warnings on discord
LOG_CHANNEL: ""
# The timeout for deleting msg
DELETE_MSG_TIMEOUT: 3000
# Auto resume when bot restarted suddenly
AUTO_RESUME: false

# Database services config
DATABASE:
# Note: If you enter an invalid driver, bot will use json driver as default
driver: "json" # mongodb, mysql, json, postgres
# Config depends on driver, you can see sample config at src/database/driver
config: { path: "./cylane.database.json" }
# Cache cleaning for reduce memory
# This feature have the same API with this link below
# https://github.com/node-cron/node-cron?tab=readme-ov-file#allowed-fields
# You can disable caching by using DISABLE string
cacheCleanSchedule: "0 */30 * * * *"

# Msg content for bot using prefix command and setup
MESSAGE_CONTENT:
enable: true
# Whenever you want to use prefix command or not
commands:
enable: true
prefix: "d!" # The prefix you want

AUTOFIX_LAVALINK: # Fix the Lavalink server when the current is down
# Fix the Lavalink server when the current is down
AUTOFIX_LAVALINK:
enable: false
retryCount: 10
retryTimeout: 3000

# WS/REST server for using web player
WEB_SERVER:
enable: false
port: 3000
whitelist: [] # Example: ["lavalink.dev"]
auth: "youshallnotpass"
auth: "youshallnotpass"

# You can custom your emoji here!
emojis:
PLAYER:
play: "<:pjad_play:1161595194630754334>"
pause: "<:pjad_pause:1161595191573094453>"
loop: "<:pjad_loop:1161595185357135892>"
shuffle: "<:pjad_shuffle:1161596851020115968>"
stop: "<:pjad_stop:1161595204302798909>"
skip: "<:pjad_skip:1161595199617781822>"
previous: "<:pjad_previous:1161595200985104467>"
voldown: "<:pjad_voldown:1161595205993107487>"
volup: "<:pjad_volup:1161595209289830450>"
queue: "<:pjad_queue:1161595196425912331>"
delete: "<:pjad_delete:1161595181418692658>"
GLOBAL:
arrow_next: "<:pjad_arrow_next:1161595178210041919>"
arrow_previous: "<:pjad_arrow_back:1161595176737832970>"
Loading

0 comments on commit b96187c

Please sign in to comment.