Skip to content

Commit

Permalink
add prettier and husky pre-commit hook and run on all files (SudhanPl…
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinraja authored Oct 5, 2021
1 parent f7bf6dd commit 2dd435e
Show file tree
Hide file tree
Showing 44 changed files with 5,093 additions and 1,713 deletions.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---

name: Bug report
about: Report incorrect or unexpected behavior of the Music Bot
title: ''
labels: 's: unverified, type: bug'
assignees: ''
title: ""
labels: "s: unverified, type: bug"
assignees: ""
---

<!-- Use Discord for questions: https://discord.gg/sbySMS7m3v -->

**Please describe the problem you are having in as much detail as possible:**
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---

name: Feature request
about: Request a feature for the Music Bot
title: ''
labels: 'type: enhancement'
assignees: ''
title: ""
labels: "type: enhancement"
assignees: ""
---

<!-- Use Discord for questions: https://discord.gg/bRCvFy9 -->

**Is your feature request related to a problem? Please describe.**
Expand Down
2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
**Please describe the changes this PR makes and why it should be merged:**



**Status and versioning classification:**

<!--
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
> **VERSION 5 OF THIS BOT HAS NO RELEASE DATE**
## ❗Prerequisites❗

- [Node.js 14+](https://nodejs.org/en/download/)
- [email protected]
- [Lavalink Server](https://github.com/freyacodes/Lavalink#server-configuration)
Expand All @@ -16,15 +17,12 @@

> NOTE: Lavalink is needed for music functionality. You need to have a working Lavalink server to make the bot work.

## 📝 Tutorial

A Tutorial has been uploaded on YouTube, Watch it by clicking [here](https://www.youtube.com/watch?v=p4lP96Tiv9s) *outdated*

A Tutorial has been uploaded on YouTube, Watch it by clicking [here](https://www.youtube.com/watch?v=p4lP96Tiv9s) _outdated_

Repl.it [Tutorial](https://github.com/SudhanPlayz/Discord-MusicBot/wiki/Installation-on-Repl-it)


VPS / Server [Tutorial](https://github.com/SudhanPlayz/Discord-MusicBot/wiki/Installation-on-a-Linux-server)

## 📝 [Support Server](https://discord.gg/sbySMS7m3v)
Expand All @@ -45,7 +43,6 @@ If you have major coding issues with this bot, please join and ask for help.
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/SudhanPlayz/Discord-MusicBot) <br><br>
[![Run on Repl.it](https://repl.it/badge/github/SudhanPlayz/Discord-MusicBot)](https://repl.it/github/SudhanPlayz/Discord-MusicBot)


## ✨ Contributors

Contributions are always welcomed :D Make sure to follow [Contributing.md](/CONTRIBUTING.md)
Expand Down
74 changes: 41 additions & 33 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,49 @@
"description": "Very simple discord music bot with the discord.js with Song Name playing. It can able to play music with the song name",
"repository": "https://github.com/SudhanPlayz/Discord-MusicBot",
"logo": "https://cdn.discordapp.com/avatars/750613142488481843/e6326038dbe2243ca551ba5b6ecd8bf2.png?size=1024",
"keywords": ["node", "discord", "youtube", "music", "bot", "lavalink", "dashboard"],
"keywords": [
"node",
"discord",
"youtube",
"music",
"bot",
"lavalink",
"dashboard"
],
"image": "heroku/nodejs",
"buildpacks": [
{
"url": "heroku/nodejs"
}
{
"url": "heroku/nodejs"
}
],
"env": {
"Prefix": {
"description": "The Discord Bot Prefix",
"required": "true"
},
"Token": {
"description": "The Discord Bot Token (https://discord.com/developers/applications)",
"required": "true"
},
"Discord_ClientID": {
"description": "The Discord Bot ClientID",
"required": "true"
},
"Discord_ClientSecret": {
"description": "The Discord Bot ClientSecret",
"required": "true"
},
"Website": {
"description": "URL of your webserver (Example: https://domain.xyz). Change this if you want to use the web-dashboard.",
"value": "http://localhost"
},
"Spotify_ClientID": {
"description": "Spotify ClientID. This is used if you want to use Spotify features for your bot. (https://developer.spotify.com/dashboard/)",
"required": "true"
},
"Spotify_ClientSecret": {
"description": "Spotify ClientSecret. This is used if you want to use Spotify features for your bot. (https://developer.spotify.com/dashboard/)",
"required": "true"
"env": {
"Prefix": {
"description": "The Discord Bot Prefix",
"required": "true"
},
"Token": {
"description": "The Discord Bot Token (https://discord.com/developers/applications)",
"required": "true"
},
"Discord_ClientID": {
"description": "The Discord Bot ClientID",
"required": "true"
},
"Discord_ClientSecret": {
"description": "The Discord Bot ClientSecret",
"required": "true"
},
"Website": {
"description": "URL of your webserver (Example: https://domain.xyz). Change this if you want to use the web-dashboard.",
"value": "http://localhost"
},
"Spotify_ClientID": {
"description": "Spotify ClientID. This is used if you want to use Spotify features for your bot. (https://developer.spotify.com/dashboard/)",
"required": "true"
},
"Spotify_ClientSecret": {
"description": "Spotify ClientSecret. This is used if you want to use Spotify features for your bot. (https://developer.spotify.com/dashboard/)",
"required": "true"
}
}
}
}
11 changes: 5 additions & 6 deletions botconfig.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = {
Admins: ["UserID", "UserID"], //Admins of the bot
ExpressServer: true,//If you wanted to make the website run or not
ExpressServer: true, //If you wanted to make the website run or not
DefaultPrefix: process.env.Prefix || ">", //Default prefix, Server Admins can change the prefix
Port: 3000, //Which port website gonna be hosted
SupportServer: "https://discord.gg/sbySMS7m3v", //Support Server Link
Token: process.env.Token || "", //Discord Bot Token
ClientID: process.env.Discord_ClientID || "", //Discord Client ID
ClientSecret: process.env.Discord_ClientSecret || "", //Discord Client Secret
Scopes: ["identify", "guilds", "applications.commands"],//Discord OAuth2 Scopes
ServerDeafen : true,//If you want bot to stay deafened
Scopes: ["identify", "guilds", "applications.commands"], //Discord OAuth2 Scopes
ServerDeafen: true, //If you want bot to stay deafened
CallbackURL: "/api/callback", //Discord OAuth2 Callback URL
"24/7": false, //If you want the bot to be stay in the vc 24/7
CookieSecret: "Pikachu is cute", //A Secret like a password
Expand All @@ -19,15 +19,14 @@ module.exports = {
Website: process.env.Website || "http://localhost", //Website where it was hosted at includes http or https || Use "0.0.0.0" if you using Heroku

//Lavalink
Lavalink: {
Lavalink: {
id: "Main",
host: "host name or IP",
port: 80, // The port that lavalink is listening to. This must be a number!
pass: "your password",
pass: "your password",
secure: false, // Set this to true if the lavalink uses SSL or you're hosting lavalink on repl.it
},


//Please go to https://developer.spotify.com/dashboard/
Spotify: {
ClientID: process.env.Spotify_ClientID || "", //Spotify Client ID
Expand Down
Loading

0 comments on commit 2dd435e

Please sign in to comment.