Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

This is the main source code of Dreamvast. You can clone it to run on your server.

License

Notifications You must be signed in to change notification settings

Dreamvast/NanoSpacePlusEngine

Repository files navigation

This engine has been archived!

Wellcome to Dreamvast!

πŸŒ€ | A lightweight and easy-to-use bot

πŸ“‘ Short Feature

  • Music System
  • Playlist Networks
  • Multi Language
  • SlashCommand
  • ContextMenus
  • Custom Filters
  • Play music from file
  • Easy to use
  • Autocomplete (Play command)

🎢 Support Source

  • Youtube
  • SoundCloud
  • Spotify
  • Deezer
  • Facebook
  • Twitch
  • Apple
  • Bandcamp
  • Vimeo
  • Https (Radio)
πŸ“Ž Requirements [CLICK ME]

πŸ“Ž Requirements

  1. Node.js Version 16.6.0+ Download
  2. Discord Bot Token Guide
  3. LavaLink Guide (i use this development version Download )
  4. MongoDB Download (Download & install = Finish!)

πŸ›‘ Super Requirements

Java 11-13 Download JDK13 (i use this version) for LAVALINK!

πŸ“š Installation

git clone https://github.com/Dreamvast/Dreamvast-slash
cd Dreamvast-no-intent
npm install
node deploySlash.js global
πŸ“„ Configuration [CLICK ME]

πŸ“„ Configuration

OPTION 1️⃣

Copy or Rename .env.example to .env and fill out the values:

# Bot
TOKEN=REPLACE_HERE
NP_REALTIME=false
LEAVE_TIMEOUT=120000
LANGUAGE=en
EMBED_COLOR=#000001

# Devloper
OWNER_ID=REPLACE_HERE

# Database
MONGO_URI=mongodb://127.0.0.1:27017/dreamvast
LIMIT_TRACK=50
LIMIT_PLAYLIST=10

# Lavalink
NODE_HOST=localhost
NODE_PORT=5555
NODE_PASSWORD=123456

OPTION 2️⃣

Go to folder settings edit config.js and you can fill out the values:

require("dotenv").config();
const { resolve } = require("path");

module.exports = {
    TOKEN: process.env.TOKEN || "YOUR_TOKEN",  // your bot token
    PREFIX: process.env.PREFIX || "#", //<= default is #  // bot prefix
    EMBED_COLOR: process.env.EMBED_COLOR || "#000001", //<= default is "#000001"

    OWNER_ID: process.env.OWNER_ID || "YOUR_CLIENT_ID", //your owner discord id example: "515490955801919488"

    NP_REALTIME: process.env.NP_REALTIME || "BOOLEAN", // "true" = realtime, "false" = not realtime :3 // WARNING: on set to "true" = laggy and bot will ratelimit

    LANGUAGE: {
      defaultLocale: process.env.LANGUAGE || "en", // "en" = default language
      directory: resolve("languages"), // <= location of language
    },

    MONGO_URI: process.env.MONGO_URI || "YOUR_MONGO_URI", // your mongo uri

    NODES: [
      { 
        host: process.env.NODE_HOST || "localhost",
        port: parseInt(process.env.NODE_PORT || "5555"),
        password: process.env.NODE_PASSWORD || "123456",
      } 
    ],
}

After installation or finishes all you can use node . to start the bot. or Run Start.bat

πŸ”© Features & Commands [CLICK ME]

πŸ”© Features & Commands

Note: The default prefix is '/' (Slash Commands)

🎢 Commands!

  • Play (/play [song/url])
  • Nowplaying (/nowplaying)
  • Queue (/queue [page])
  • Repeat (/loop type [current, all])
  • Loopqueue (/loopall)
  • Shuffle (/shuffle)
  • Volume control (/volume [10 - 100])
  • Pause (/pause)
  • Resume (/resume)
  • Skip (/skip)
  • Skipto (/skipto [position])
  • Clear (/musicclear)
  • Join (/join)
  • Leave (/leave)
  • Forward (/forward [second])
  • Seek (/seek [second])
  • Rewind (/rewind [second])
  • Replay (/replay)
  • Search (/search [songname])
  • 247 (/247)
  • Previous (/previous)
  • Autoplay (/autoplay)
  • File play (/file-play [song file])

⏺ Filter Commands!

  • Bass (/filter bass)
  • Superbass (/filter superbass)
  • Pop (/filter pop)
  • Treblebass (/filter treblebass)
  • Soft (/filter soft)
  • Earrape (/filter earrape)
  • Equalizer (/filter equalizer [14 bands])
  • Speed (/filter speed [amount])
  • Picth (/filter pitch [amount])
  • Vaporwave (/filter vaporwave)
  • Nightcore (/filter nightcore)
  • Bassboost (/filter bassboost [-10 - 10])
  • Rate (/filter rate)
  • Reset (/filter reset)
  • 3d (/filter 3d)
  • China (/filter china)
  • Chipmunk (/filter chipmunk)
  • Darthvader (/filter darthvader)
  • DoubleTime (/filter doubletime)
  • SlowMotion (/filter slowmotion)
  • Tremolo (/filter tremolo)
  • Vibrate (/filter vibrate)
  • Vibrato (/filter vibrato)
  • Daycore (/filter daycore)
  • Television (/filter Television)

πŸ“‘ Utilities Commands!

  • Restart (/restart) // (OWNER ONLY)
  • Language (/language input: [language] ) // Example: en, th
  • Control (/control input: [enable or disable (default: disable)])
  • Setup (/setup type: [Create/Delete] )

πŸ“„ Info Commands!

  • Developer (/developer)
  • Invite (/invite)
  • Ping (/ping)
  • Status (/status)

πŸ“ƒ Playlist Commands!

  • Create (/pl-create [name])
  • Add (/pl-add [name] [link])
  • Private (/pl-private [name])
  • Public (/pl-public [name])
  • Delete (/pl-delete [name])
  • Import (/pl-import [name])
  • Detail (/pl-detail [name])
  • Remove (/pl-remove [name] [position])
  • Savequeue (/pl-savequeue [name])
  • View (/pl-view)

πŸ‹ Docker Installation

πŸ‹ Docker Installation

1. What is Docker πŸ‹?

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.

2. What are the advantages and disadvantages of docker?

The Advantages:

  • Consistency
  • Automation
  • Stability
  • Saves Space
  • Run multiple applications with just one virtual machine

The Disadvantages:

  • Advances Quickly
  • Learning Curve

3. Install Docker πŸ‹:


For windows:

1. Go to the website https://docs.docker.com/docker-for-windows/install/ and download the docker file.

Note: A 64-bit processor and 4GB system RAM are the hardware prerequisites required to successfully run Docker on Windows 10.

2. Then, double-click on the Docker Desktop Installer.exe to run the installer.

Note: Suppose the installer (Docker Desktop Installer.exe) is not downloaded; you can get it from Docker Hub and run it whenever required.

3. Once you start the installation process, always enable Hyper-V Windows Feature on the Configuration page.

4. Then, follow the installation process to allow the installer and wait till the process is done.

5. After completion of the installation process, click Close and restart.


For linux (Ubuntu):

1. Open the terminal on Ubuntu.

2. Remove any Docker files that are running in the system, using the following command:

sudo apt-get remove docker docker-engine docker.io

3. Check if the system is up-to-date using the following command:

sudo apt-get update

4. Install a few pre-requisite packages that allow apt to use packages over HTTPS using the following command:

sudo apt install apt-transport-https ca-certificates curl software-properties-common

5. Then add the GPG key for the Docker repository to your system:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"

6. Update the packages list again with Docker packages from the newly added repo:

sudo apt update

7. Make sure you are about to install from the Docker repo instead of the default Ubuntu repo:

apt-cache policy docker-ce

Example Output:

docker-ce:
  Installed: (none)
  Candidate: 18.03.1~ce~3-0~ubuntu
  Version table:
     18.03.1~ce~3-0~ubuntu 500
        500 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages

8. Install Docker:

sudo apt install docker-ce

9. Check if Docker is installed and running:

sudo systemctl status docker

Example Output:

● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2018-07-05 15:08:39 UTC; 2min 55s ago
     Docs: https://docs.docker.com
 Main PID: 10096 (dockerd)
    Tasks: 16
   CGroup: /system.slice/docker.service
           β”œβ”€10096 /usr/bin/dockerd -H fd://
           └─10113 docker-containerd --config /var/run/docker/containerd/containerd.toml

4. Install Dreamvast using Docker πŸ‹:


1. Make sure you config the .env file or the config.js file in ./src/plugins/config.js

2. Change to the Discord bot project directory.

3. Build the docker container for the Discord bot.

docker build -t dreamvast .

4. Run the docker container.

docker run -d dreamvast

Basic commands:

1. To build the docker container, using the following command: (Please remove the [] when you type the name)

docker build -t [name] .

The -t option is the tag name option.

2. To run the docker container, using the following command: (Please remove the [] when you type the name)

docker run -d [name]

The -d option is runs the container in detached mode (it runs in the background).

3. To list all docker processes and container id, using the following command:

docker ps

4. To see all docker container log, using the following command: (Please remove the [] when you paste the id)

docker logs [container id]

5. To stop the docker container, using the following command: (Please remove the [] when you paste the id)

docker stop [container id]

6. To restart the docker container, using the following command: (Please remove the [] when you paste the id)

docker restart [container id]

7. To remove the docker container, using the following command: (Please remove the [] when you paste the id)

docker rm [container id]

πŸ‹ Docker all in one hosting command

Installation

1. Make sure you config the .env file or the config.js file in ./src/plugins/config.js

Example of .env file for docker hosting:

# Bot
TOKEN=REPLACE_HERE
NP_REALTIME=false
LANGUAGE=en
EMBED_COLOR=#000001

# Devloper
OWNER_ID=REPLACE_HERE

2. Use this command and you're done!

docker-compose up -d --build

All commands are exactly the same as the one above, just change from docker to docker-compose and change from [container id] to [name]

πŸ›‘ Super Requirements

Java 11-13 Download JDK13 (i use this version) for LAVALINK!

About

This is the main source code of Dreamvast. You can clone it to run on your server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages