Skip to content

Commit

Permalink
Update v4 shoukaku
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Mar 27, 2024
1 parent 88f6caa commit 3504f07
Show file tree
Hide file tree
Showing 93 changed files with 6,159 additions and 6,376 deletions.
20 changes: 8 additions & 12 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ TOKEN="." # Your bot token

PREFIX= "!" # Your prefix

OWNER_IDS= "859640640640640640, 859640640640640640" # Your id

CLIENT_ID= "960072976412340254" # Your bot client id

CLIENT_SECRET= "" # Your bot client secret
OWNER_IDS=["959276033683628122","859640640640640640"] # Your discord id, you can add multiple ids

GUILD_ID= "859640640640640640" # Your server Id if you want to use the for single server

Expand All @@ -20,18 +16,18 @@ MAX_QUEUE_SIZE= "100" # Max queue size

BOT_STATUS= "online" # Your bot status

BOT_ACTIVITY= "Wavemusic" # Your bot activity

DATABASE_URL="mongodb+srv://Blacky:xxxxxxxxxxxx" # Your mongodb url
BOT_ACTIVITY= "Lavamusic" # Your bot activity

LAVALINK_URL="lava.moebot.xyz:443" # Your lavalink url
LAVALINK_URL="lavalink:2333" # Your lavalink url

LAVALINK_AUTH="youshallnotpass" # Your lavalink password

LAVALINK_NAME="Blacky" # Your lavalink name

LAVALINK_SECURE= "true" # true for secure lavalink
LAVALINK_SECURE= "false" # true for secure lavalink

BOT_ACTIVITY_TYPE=0 # Activity type is a number from 0 to 5 see more here https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types
KEEP_ALIVE= "false" # true for keep alive in https://replit.com

LOG_CHANNEL_ID=""

KEEP_ALIVE= "false" # true for keep alive for replit
BOT_ACTIVITY_TYPE=0 # Activity type is a number from 0 to 5 see more here https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ node_modules
.env
.vscode
.prettierrc.json
config.js
config.js
package-lock.json
pnpm-lock.yaml
WaveMusic.db
WaveMusic.db-shm
WaveMusic.db-wal
49 changes: 21 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
Before starting with the installation, you need to have the following:

- ![Node.js](https://img.shields.io/badge/Node.js-43853D?style=for-the-badge&logo=node.js&logoColor=white) [v18.17.1 or higher](https://nodejs.org/en/download/)
- ![MongoDB](https://img.shields.io/badge/MongoDB-4EA94B?style=for-the-badge&logo=mongodb&logoColor=white) [v4.4.0 or higher](https://www.mongodb.com/try/download/community)
- ![Lavalink](https://img.shields.io/badge/Lavalink-7289DA?style=for-the-badge&logo=discord&logoColor=white) [v3.7.8 or higher](https://github.com/freyacodes/Lavalink)

- ![Lavalink](https://img.shields.io/badge/Lavalink-7289DA?style=for-the-badge&logo=discord&logoColor=white) [v4.0.0 or higher](https://github.com/freyacodes/Lavalink)

## 🚀 Installation from source

Expand Down Expand Up @@ -152,7 +152,6 @@ MAX_PLAYLIST_SIZE= "100" # Max playlist size
MAX_QUEUE_SIZE= "100" # Max queue size
BOT_STATUS= "online" # Your bot status
BOT_ACTIVITY= "Wavemusic" # Your bot activity
DATABASE_URL="mongodb+srv://xxyydd:ejejeje@cluster0.f93tcdq.mongodb.net/Bot" ## Your MongoDB URL (add database name at the end) example: mongodb+srv://xxyydd:ejejeje@cluster0.f93tcdq.mongodb.net/Bot
LAVALINK_URL="localhost:2333" # Your lavalink url
LAVALINK_AUTH="youshallnotpass" # Your lavalink password
LAVALINK_NAME="Blacky" # Your lavalink name
Expand All @@ -162,37 +161,31 @@ KEEP_ALIVE= "false" # true for keep alive for replit

```

5. Generate the Prisma client:

**If you using replit than read this:**

go to **[prisma/schema.prisma](https://github.com/brblacky/WaveMusic/blob/main/prisma/schema.prisma)** and add engine type like this or remove `//` behind the `engineType`

```bash
generator client {
provider = "prisma-client-js"
engineType = "binary"
}
```

and then run this command

```bash
npx prisma generate
```

6. Run the bot:
5. Run the bot:

```bash
npm run start or npm start
```

### Errors:

![image](https://cdn.discordapp.com/attachments/1147388529085780078/1165972143146815518/image_1.png)

- Fix this error to add database name in end of the `DATABASE_URL` like this `mongodb+srv://xxyydd:ejejeje@cluster0.f93tcdq.mongodb.net/Bot`

## 📝 Configuration

- **Prefix**: The prefix for the bot commands
- **Owner ID**: The ID of the bot owner
- **Client ID**: The ID of the bot client
- **Guild ID**: The ID of the server where the bot will be used
- **Production**: Set to `true` for production
- **Search Engine**: The search engine to use for searching songs
- **Max Playlist Size**: The maximum size of a playlist
- **Max Queue Size**: The maximum size of the queue
- **Bot Status**: The status of the bot
- **Bot Activity**: The activity of the bot
- **Lavalink URL**: The URL of the Lavalink server
- **Lavalink Auth**: The password for the Lavalink server
- **Lavalink Name**: The name of the Lavalink server
- **Lavalink Secure**: Set to `true` for secure Lavalink
- **Bot Activity Type**: The type of activity for the bot
- **Keep Alive**: Set to `true` for keep alive for replit

###

Expand Down
Loading

0 comments on commit 3504f07

Please sign in to comment.