Coder Social home page Coder Social logo

wilardzysenpai / waifumusic Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 12.0 3.33 MB

A music bot made with discord.js and distube for player.

Home Page: https://ko-fi.com/hachiki_hoshino

License: MIT License

JavaScript 100.00%
247-music anime discord-bot discord-js discordjs distube fun javascript music-bot open-source

waifumusic's Introduction

banner

๐ŸŽถ WaifuMusic ๐ŸŽต

WaifuMusic

๐Ÿ’จ Update 1.3.0

The bot now uses the latest version of discord.js and prefix commands are back again, added more function to it, a music channel where you can type your song and waifu will join the vc where you are in and play the music you entered. More updates information on our support server.

๐Ÿ’ฆ Required

  • Node.js v18+
  • Discord.js v14
  • Distube
  • ffmpeg
  • libsodium-wrappers

๐Ÿ”ฐ First step

To run this correctly on your desktop/local device, please follow these steps.

To begin, obtain a copy of the code by either cloning it using Git or downloading the zip file.

git clone https://github.com/WilardzySenpai/WaifuMusic.git
https://github.com/WilardzySenpai/WaifuMusic/releases

To proceed, after obtaining a copy of the code through cloning or downloading and unzipping the file, open the source code and enter the following command in your console.

npm install

This command will install the necessary packages as specified in the package.json file.

๐Ÿ’  Config

With all packages now downloaded, proceed to the config.js file where you will be required to fill in important variables for configuration.

module.exports = {

    WAIFU_TOKEN: process.env.WAIFU_TOKEN, // bot token
    OWNER_ID: "939867069070065714", // your id
    OWNER_TAG: "Hachiki#3819", // your user tag
    OWNER_LINK: "https://discord.com/users/939867069070065714", // https://discord.com/users/paste-ur-id-here
    DEV_GUILD:"1058390757297377331", // dev guild
    MONGO_DB: process.env.MONGO_DB, // database mongodb

    // spotify for distube
    // If spotify_tracks is true then you can play song from spotify more than 100+ the default is *false*
    // You can get these secret and client_id from here: https://developer.spotify.com/dashboard/applications
    WAIFU_TRACKS: parseBoolean(process.env.WAIFU_TRACKS || false),
    SPOTIFY_SECRET: process.env.SPOTIFY_SECRET,
    SPOTIFY_CLIENT_ID: process.env.SPOTIFY_CLIENT_ID,

    YOUTUBE_COOKIE: process.env.YOUTUBE_COOKIE, // youtube cookie to make less lag
    
    MAIN_COLOR: "#2F3136",
    ERR_COLOR: "#ED2828",
    WAIFU_PREFIX: "w!",
    CHANNEL: "1027435338706210847"
}

๐Ÿ’• Running

Once the necessary variables have been entered in the config.js file, invite your bot to the server you fill in the config.js then, use the following command in your console to run your bot.

npm run start

If you want to start with shards run this.

npm run shards
  • Congratiolations you now have a running bot and play music on vc's!

๐Ÿ’ซ Deploy

Remix on Glitchย ย ย ย ย ย  Deployย ย ย ย ย ย  Run on Repl.it

NOTE: It is important to note that using this code to publish a bot publicly or advertising it without proper credit is strictly prohibited.

๐Ÿค Contributors

  • Contribution from others is always welcome to help improve and add new features to the bot.

While contributions to improve and add new features to the bot are welcome, it should be noted that not all submissions will be accepted into the master branch.

waifumusic's People

Contributors

wilardzysenpai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

waifumusic's Issues

TypeError: Cannot read properties of undefined (reading 'commands')

Hi, i just tried your awsome bot but i cant get past this error...
I didnt change anything, i just did the config and i keep getting this error code.

TypeError: Cannot read properties of undefined (reading 'commands')
    at loadslashCommands (D:\[Coding]\Desktop\WaifuMusic-master\Handlers\commandHandler.js:51:14)
    at D:\[Coding]\Desktop\WaifuMusic-master\Structures\WaifuMusic.js:80:3
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Thanks in advance!

code: 'WebhookTokenUnavailable'

[AntiCrash] | [UnhandledRejection_Logs] | [start] : ===============
Error [WebhookTokenUnavailable]: This action requires a webhook token, but none is available.
    at WebhookClient.send (C:\Users\SHISHIR1337\Documents\bot\WaifuMusic\node_modules\discord.js\src\structures\Webhook.js:206:28)
    at process.<anonymous> (C:\Users\SHISHIR1337\Documents\bot\WaifuMusic\Handlers\errorHandler.js:30:13)
    at process.emit (node:events:513:28)
    at emit (node:internal/process/promises:149:20)
    at processPromiseRejections (node:internal/process/promises:283:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
  code: 'WebhookTokenUnavailable'
}
[AntiCrash] | [UnhandledRejection_Logs] | [end] : ===============

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.