Skip to content

Commit

Permalink
Support Heroku Host (SudhanPlayz#175)
Browse files Browse the repository at this point in the history
* Update Procfile

* Create app.json

* Update README.md

* Update README.md

* Update config.js

* Update Procfile

* Update package.json

* Update config.js

* Update config.js

* Update config.js

* Update Procfile

* Update Procfile

* Update config.js

* Update config.js

* Update DiscordMusicBot.js

* Update config.js

* Update Procfile

* Update config.js

* Update config.js

* Update config.js

* Update DiscordMusicBot.js

* Update DiscordMusicBot.js

* Update app.json

* Update config.js

* Update config.js

* Update config.js

* Update config.js

* Update DiscordMusicBot.js

* Update DiscordMusicBot.js

* Update DiscordMusicBot.js

* Update config.js

* Update DiscordMusicBot.js

* Update DiscordMusicBot.js

* Update config.js

* Update config.js

* Update package.json

* Update config.js

* Update README.md
  • Loading branch information
Colonel-Ltd authored May 3, 2021
1 parent a83d921 commit 2ab9726
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
worker: node index.js
worker: npm start
19 changes: 19 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Discord-MusicBot",
"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", "dashboared"],
"image": "heroku/nodejs",
"buildpacks": [
{
"url": "heroku/nodejs"
}
],
"env": {
"Token": {
"description": "Discord Bot Token.",
"required": "true"
}
}
}
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
DefaultPrefix: ">", //Default prefix, Server Admins can change the prefix
Port: 3000, //Which port website gonna be hosted
SupportServer: "https://discord.gg/a9SHDpD", //Support Server Link
Token: "", //Discord Bot Token
Token: "" || process.env.Token, //Discord Bot Token
ClientID: "", //Discord Client ID
ClientSecret: "", //Discord Client Secret
Scopes: ["identify", "guilds"], //Discord OAuth2 Scopes
Expand All @@ -13,7 +13,7 @@ module.exports = {
IconURL:
"https://raw.githubusercontent.com/SudhanPlayz/Discord-MusicBot/master/assets/Music.gif", //URL of all embed author icons | Dont edit unless you dont need that Music CD Spining
Permissions: 2205280576, //Bot Inviting Permissions
Website: "http://localhost", //Website where it was hosted at includes http or https
Website: "http://localhost", //Website where it was hosted at includes http or https || Use "0.0.0.0" if you using Heroku

//Lavalink - Already there is a serer to connect :)
Lavalink: {
Expand Down
2 changes: 1 addition & 1 deletion structures/DiscordMusicBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class DiscordMusicBot extends Client {

build() {
this.login(this.config.Token);
this.http.listen(this.config.Port, () => this.log("Web Server has been started"));
this.http.listen(process.env.PORT || this.config.Port, () => this.log("Web Server has been started"));
}

RegisterSlashCommands(){
Expand Down

0 comments on commit 2ab9726

Please sign in to comment.