Skip to content

Commit

Permalink
Merge pull request #562 from hwangsihu/main
Browse files Browse the repository at this point in the history
update
  • Loading branch information
LucasB25 authored May 18, 2024
2 parents a028edb + 10d6a8f commit 8540f7d
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 64 deletions.
19 changes: 0 additions & 19 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,39 +1,20 @@
TOKEN = "" # Your bot token.

CLIENT_ID = "" # Your bot's client ID (If this value is left blank, bots cannot be invited using /invite or /about commands.).

PREFIX = "!" # Your prefix.

OWNER_IDS = ["",""] # Your discord id (You can add multiple ids.).

GUILD_ID = "" # Your server ID (If you want to use the for single server).

PRODUCTION = "true" # true for production.

BOT_STATUS = "online" # Your bot status (online, dnd, idle, invisible or offline).

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

BOT_ACTIVITY = "Lavamusic" # Your bot activity

DATABASE_URL = "" # Your database url (If you want to use sqlite, then you can leave it blank.).

AUTO_NODE = "false" # true for auto node. It is gave from lavainfo-api (https://lavainfo-api.deno.dev).

LAVALINK_URL = "localhost:2333" # Your Lavalink url (If auto node is true, then you can leave it blank)

LAVALINK_AUTH = "youshallnotpass" # Your Lavalink password (If auto node is true, then you can leave it blank.).

LAVALINK_NAME = "Lavamusic" # Your Lavalink name (If auto node is true, then you can leave it blank.).

LAVALINK_SECURE = "false" # true for secure Lavalink (If auto node is true, then you can leave it blank.).

SEARCH_ENGINE = "ytsearch" # ytsearch (YouTube Search), spsearch (Spotify Search), scsearch (SoundCloud Search) or ytmsearch (YouTube Music Search).

MAX_PLAYLIST_SIZE = "100" # Max playlist size.

MAX_QUEUE_SIZE = "100" # Max queue size.

KEEP_ALIVE = "false" # true for keep alive in https://replit.com

LOG_CHANNEL_ID = "" # If you enter this, you will be able to receive the status of Lavalink nodes and guild join/leave logs through the corresponding channel.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Folders
/.cache
/.git
/dist
Expand Down
23 changes: 0 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,17 @@

# Keep environment variables out of version control
.env

# Ignore all files in the .vscode folder
/.vscode

# Ignore the build folder
/dist

# Ignore all files in the node_modules folder
/node_modules

# Ignore target folder

/target


/yarn.lock

/.next

/node_modules

/pnpm-lock.yaml

/yarn-error.log

/yarn.lock

/.eslintcache

/package-lock.json

/Lavalink/application.yml

/Lavalink/plugins

/prisma/lavamusic.db
/prisma/migrations
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Folders
/.cache
/.git
/dist
Expand Down
38 changes: 20 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,26 @@ Create a `.env` file in the root directory of your project with the following va
or you can use the [.env.example](https://raw.githubusercontent.com/appujet/lavamusic/main/.env.example) file

```bash
TOKEN="." # Your bot token
PREFIX= "!" # Your prefix
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
PRODUCTION="true" # true for production
SEARCH_ENGINE= "ytsearch" # ytsearch, scsearch or ytmsearch
MAX_PLAYLIST_SIZE= "100" # Max playlist size
MAX_QUEUE_SIZE= "100" # Max queue size
BOT_STATUS= "online" # Your bot status
BOT_ACTIVITY= "Lavamusic" # Your bot activity
LAVALINK_URL="lavalink:2333" # Your lavalink url
LAVALINK_AUTH="youshallnotpass" # Your lavalink password
LAVALINK_NAME="Blacky" # Your lavalink name
LAVALINK_SECURE= "false" # true for secure lavalink
KEEP_ALIVE= "false" # true for keep alive in https://replit.com
LOG_CHANNEL_ID=""
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
CLIENT_ID="." # This is your bot's client ID. If this value is left blank, bots cannot be invited using /invite or /about commands.
TOKEN = "" # Your bot token.
CLIENT_ID = "" # Your bot's client ID (If this value is left blank, bots cannot be invited using /invite or /about commands.).
PREFIX = "!" # Your prefix.
OWNER_IDS = ["",""] # Your discord id (You can add multiple ids.).
GUILD_ID = "" # Your server ID (If you want to use the for single server).
PRODUCTION = "true" # true for production.
BOT_STATUS = "online" # Your bot status (online, dnd, idle, invisible or offline).
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
BOT_ACTIVITY = "Lavamusic" # Your bot activity
DATABASE_URL = "" # Your database url (If you want to use sqlite, then you can leave it blank.).
AUTO_NODE = "false" # true for auto node. It is gave from lavainfo-api (https://lavainfo-api.deno.dev).
LAVALINK_URL = "localhost:2333" # Your Lavalink url (If auto node is true, then you can leave it blank)
LAVALINK_AUTH = "youshallnotpass" # Your Lavalink password (If auto node is true, then you can leave it blank.).
LAVALINK_NAME = "Lavamusic" # Your Lavalink name (If auto node is true, then you can leave it blank.).
LAVALINK_SECURE = "false" # true for secure Lavalink (If auto node is true, then you can leave it blank.).
SEARCH_ENGINE = "ytsearch" # ytsearch (YouTube Search), spsearch (Spotify Search), scsearch (SoundCloud Search) or ytmsearch (YouTube Music Search).
MAX_PLAYLIST_SIZE = "100" # Max playlist size.
MAX_QUEUE_SIZE = "100" # Max queue size.
KEEP_ALIVE = "false" # true for keep alive in https://replit.com
LOG_CHANNEL_ID = "" # If you enter this, you will be able to receive the status of Lavalink nodes and guild join/leave logs through the corresponding channel.
```

## Prisma Setup
Expand Down
2 changes: 2 additions & 0 deletions run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
npm start
2 changes: 1 addition & 1 deletion src/commands/music/Leave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class Leave extends Command {
usage: 'leave',
},
category: 'music',
aliases: ['dc'],
aliases: ['l'],
cooldown: 3,
args: false,
player: {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/music/Search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class Search extends Command {
usage: 'search',
},
category: 'music',
aliases: ['search'],
aliases: [''],
cooldown: 3,
args: true,
player: {
Expand Down

0 comments on commit 8540f7d

Please sign in to comment.