Skip to content

Commit 5f8b52b

Browse files
authored
Add files via upload
1 parent 34a10d7 commit 5f8b52b

File tree

7 files changed

+113
-79
lines changed

7 files changed

+113
-79
lines changed

commands/💪 Source-Help/djs.js

+8-19
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,15 @@ module.exports = {
1313
usage: "djs [QUEURY]",
1414
description: "DOES SEARCH FOR THE DISCORD.JS DOCS and gives u help",
1515
run: async (client, message, args, user, text, prefix) => {
16-
try {
17-
const urltosearch = `https://djsdocs.sorta.moe/v2/embed?src=stable&q=${args.join(" ")}`;
18-
axios.get(urltosearch).then(embed => {
19-
const {
20-
data
21-
} = embed;
22-
data.color = ee.color
23-
message.channel.send({
24-
embed: data
25-
});
16+
axios.get(`https://djsdocs.sorta.moe/v2/embed?src=stable&q=${args.join(" ")}`).then(embed => {
17+
const {
18+
data
19+
} = embed;
20+
data.color = ee.color
21+
message.channel.send({
22+
embed: data
2623
});
27-
} catch (e) {
28-
console.log(String(e.stack).bgRed)
29-
return message.channel.send(new MessageEmbed()
30-
.setColor(ee.color)
31-
.setFooter(ee.footertext, ee.footericon)
32-
.setTitle(`${emoji.msg.ERROR} ERROR | An error occurred`)
33-
.setDescription(`\`\`\`${e.message}\`\`\``)
34-
);
35-
}
24+
});
3625
}
3726
};
3827
/**

commands/💪 Source-Help/docs.js

+6-16
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,12 @@ module.exports = {
1212
usage: "docs",
1313
description: "Shows information about docs",
1414
run: async (client, message, args, user, text, prefix) => {
15-
try {
16-
message.channel.send(new MessageEmbed()
17-
.setTitle(`This Bot is made by \`Tomato#6966\` and **this** is the Source Code link to this Bot`)
18-
.setColor(ee.color)
19-
.setFooter(ee.footertext, ee.footericon)
20-
.setDescription(`WOAH THERE ARE DOCS!?!!?\n[\`CLICK HERE\`](https://discord.js.org/#/docs/main/stable/general/welcome)\nYes, discord.js has docs that can be used when creating a bot with it.\nIf you need some pointers for using the docs watch a video by one of our Lower Management Members\n\nhttps://www.youtube.com/watch?v=CvcDpm4PsnI`)
21-
);
22-
} catch (e) {
23-
console.log(String(e.stack).bgRed)
24-
return message.channel.send(new MessageEmbed()
25-
.setColor(ee.wrongcolor)
26-
.setFooter(ee.footertext, ee.footericon)
27-
.setTitle(`${emoji.msg.ERROR} ERROR | An error occurred`)
28-
.setDescription(`\`\`\`${e.message}\`\`\``)
29-
);
30-
}
15+
message.channel.send(new MessageEmbed()
16+
.setTitle(`This Bot is made by \`Tomato#6966\` and **this** is the Source Code link to this Bot`)
17+
.setColor(ee.color)
18+
.setFooter(ee.footertext, ee.footericon)
19+
.setDescription(`WOAH THERE ARE DOCS!?!!?\n[\`CLICK HERE\`](https://discord.js.org/#/docs/main/stable/general/welcome)\nYes, discord.js has docs that can be used when creating a bot with it.\nIf you need some pointers for using the docs watch a video by one of our Lower Management Members\n\nhttps://www.youtube.com/watch?v=CvcDpm4PsnI`)
20+
);
3121
}
3222
};
3323
/**
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
//Here the command starts
2+
const {
3+
MessageEmbed
4+
} = require("discord.js")
5+
const config = require("../../botconfig/config.json")
6+
const ee = require("../../botconfig/embed.json")
7+
const emoji = require(`../../botconfig/emojis.json`);
8+
module.exports = {
9+
name: "howtohost", //the name of the command
10+
category: "💪 Source-Help", //the category this will be listed at, for the help cmd
11+
aliases: ["hth", "howto"], //every parameter can be an alias
12+
cooldown: 5, //this will set it to a 2 second cooldown
13+
usage: "howtohost", //this is for the help command for EACH cmd
14+
description: "Explaination on how to host this Bot", //the description of the command
15+
run: async (client, message, args, user, text, prefix) => {
16+
message.channel.send(new MessageEmbed()
17+
.setTitle(`Installation | How to use the Bot`)
18+
.setURL("https://www.npmjs.com/package/erela.js")
19+
.setColor(ee.color).setFooter(ee.footertext, ee.footericon)
20+
.setDescription(`
21+
22+
**1.** Install [node.js v12+](https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode) or higher
23+
24+
**2.** Download [the source code](https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js/) and unzip it | or git clone it
25+
26+
**3.** Install all of the packages with **\`npm install\`** | the important packages are **\`npm install discord.js erela.js\`**
27+
28+
**4** Fill in the parameters, RIGHT in \`./botconfig/config.json\`!
29+
30+
**5.** [Download Lavalink](https://cdn.discordapp.com/attachments/798196676405755905/827174915714711572/Lavalink.jar) and download Java 15 (Java 13 recommended)
31+
32+
**5.1**Open a Terminal and Run the Lavalink file with: **\`java -jar Lavalink.jar\`**
33+
34+
**MAKE SURE THAT THERE IS THE \`application.yml\` FILE OTHERWISE IT WILL NOT WORK!
35+
36+
**6.**Open a new Terminal and start the bot with **\`node index.js\`**`)
37+
);
38+
}
39+
};
40+
/**
41+
* @INFO
42+
* Bot Coded by Tomato#6966 | https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js
43+
* @INFO
44+
* Work for Milrato Development | https://milrato.eu
45+
* @INFO
46+
* Please mention Him / Milrato Development, when using this Code!
47+
* @INFO
48+
*/

commands/💪 Source-Help/lavalink.js

+12-22
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,18 @@ module.exports = {
1313
usage: "lavalink", //this is for the help command for EACH cmd
1414
description: "Shows information about Lavalink", //the description of the command
1515
run: async (client, message, args, user, text, prefix) => {
16-
try {
17-
message.channel.send(new MessageEmbed()
18-
.setTitle(`Interested in using Lavalink? use \`Erela.js\``)
19-
.setURL("https://www.npmjs.com/package/erela.js")
20-
.addField("Bot's Source Code. ", "Don't just use the source for yourself,... please [invite](https://discord.com/api/oauth2/authorize?client_id=742672021422342165&permissions=8&scope=bot) me too![\`Click here\`](https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js/commit/768f6fbe3314340043cbc341fcc70700b8dc1bdb)")
21-
.setColor(ee.color)
22-
.setFooter(ee.footertext, ee.footericon)
23-
.addField("Download Lavalink: ", "[\`v3.3.2.3\`](https://github.com/Frederikam/Lavalink/releases/tag/3.3.2.3)")
24-
.addField("Download application.yml: ", "[\`application.yml\`](https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js/blob/main/application.yml)")
25-
.setDescription(`If your \`application.yml\` has the port set to \`2333\` (or any custom one set by you) and lavalink shows it started on 8080 it means that the application.yml wasn't found in the directory you started lavalink in.
26-
\`\`\`/bot /lavalink - application.yml - lavalink.jar\`\`\`
27-
If your in /bot and you run \`java -jar ./lavalink/lavalink.jar\` it will look for application.yml in /bot. Make sure to start lavalink in the directory the \`application.yml\` is located.`)
28-
);
29-
} catch (e) {
30-
console.log(String(e.stack).bgRed)
31-
return message.channel.send(new MessageEmbed()
32-
.setColor(ee.wrongcolor)
33-
.setFooter(ee.footertext, ee.footericon)
34-
.setTitle(`${emoji.msg.ERROR} ERROR | An error occurred`)
35-
.setDescription(`\`\`\`${e.message}\`\`\``)
36-
);
37-
}
16+
message.channel.send(new MessageEmbed()
17+
.setTitle(`Interested in using Lavalink? use \`Erela.js\``)
18+
.setURL("https://www.npmjs.com/package/erela.js")
19+
.addField("Bot's Source Code. ", "Don't just use the source for yourself,... please [invite](https://discord.com/api/oauth2/authorize?client_id=742672021422342165&permissions=8&scope=bot) me too![\`Click here\`](https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js/)")
20+
.setColor(ee.color)
21+
.setFooter(ee.footertext, ee.footericon)
22+
.addField("Download Lavalink: ", "[\`@dev\`](https://cdn.discordapp.com/attachments/798196676405755905/827174915714711572/Lavalink.jar)")
23+
.addField("Download application.yml: ", "[\`application.yml\`](https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js/blob/main/application.yml)")
24+
.setDescription(`If your \`application.yml\` has the port set to \`2333\` (or any custom one set by you) and lavalink shows it started on 8080 it means that the application.yml wasn't found in the directory you started lavalink in.
25+
\`\`\`/bot /lavalink - application.yml - lavalink.jar\`\`\`
26+
If your in /bot and you run \`java -jar ./lavalink/lavalink.jar\` it will look for application.yml in /bot. Make sure to start lavalink in the directory the \`application.yml\` is located.`)
27+
);
3828
}
3929
};
4030
/**

commands/💪 Source-Help/source.js

+10-20
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,16 @@ module.exports = {
1212
usage: "sourcecode",
1313
description: "Shows you the Github and Source Code Information about this Bot",
1414
run: async (client, message, args, user, text, prefix) => {
15-
try {
16-
message.channel.send(new MessageEmbed()
17-
.setTitle(`This Bot is made by \`Tomato#6966\` and **this** is the Source Code link to this Bot`)
18-
.setURL("https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js/")
19-
.addField("Discord.js: ", "[\`v12.5.1\`](https://discord.js.org)", true)
20-
.addField("Erela.js: ", "[\`v2.3.2\`](https://solaris.codes/projects/erelajs/)", true)
21-
.addField("Node.js: ", "[\`v15.3.4\`](https://nodejs.org/en/)", true)
22-
.addField("Lavalink: ", "[\`v3.3.2.3\`](https://github.com/Frederikam/Lavalink/releases/tag/3.3.2.3)")
23-
.addField("Source Code. ", "Don't just use the source for yourself,... please [invite](https://discord.com/api/oauth2/authorize?client_id=742672021422342165&permissions=8&scope=bot) me too![\`Click here\`](https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js/)")
24-
.setColor(ee.color).setFooter(ee.footertext, ee.footericon)
25-
);
26-
} catch (e) {
27-
console.log(String(e.stack).bgRed)
28-
return message.channel.send(new MessageEmbed()
29-
.setColor(ee.wrongcolor)
30-
.setFooter(ee.footertext, ee.footericon)
31-
.setTitle(`${emoji.msg.ERROR} ERROR | An error occurred`)
32-
.setDescription(`\`\`\`${e.message}\`\`\``)
33-
);
34-
}
15+
message.channel.send(new MessageEmbed()
16+
.setTitle(`This Bot is made by \`Tomato#6966\` and **this** is the Source Code link to this Bot`)
17+
.setURL("https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js/")
18+
.addField("Discord.js: ", "[\`v12.5.1\`](https://discord.js.org)", true)
19+
.addField("Erela.js: ", "[\`v2.3.2\`](https://solaris.codes/projects/erelajs/)", true)
20+
.addField("Node.js: ", "[\`v15.3.4\`](https://nodejs.org/en/)", true)
21+
.addField("Lavalink: ", "[\`@dev\`](https://cdn.discordapp.com/attachments/798196676405755905/827174915714711572/Lavalink.jar)")
22+
.addField("Source Code. ", "Don't just use the source for yourself,... please [invite](https://discord.com/api/oauth2/authorize?client_id=742672021422342165&permissions=8&scope=bot) me too![\`Click here\`](https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js/)")
23+
.setColor(ee.color).setFooter(ee.footertext, ee.footericon)
24+
);
3525
}
3626
};
3727
/**

commands/💪 Source-Help/support.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//Here the command starts
2+
const {
3+
MessageEmbed
4+
} = require("discord.js")
5+
const config = require("../../botconfig/config.json")
6+
const ee = require("../../botconfig/embed.json")
7+
const emoji = require(`../../botconfig/emojis.json`);
8+
module.exports = {
9+
name: "support",
10+
category: "💪 Source-Help",
11+
aliases: ["server", "discord", "dc"],
12+
cooldown: 5,
13+
usage: "support",
14+
description: "Sends you a Link to the Support Server",
15+
run: async (client, message, args, user, text, prefix) => {
16+
message.channel.send("Join **Milrato Development**\n\n*This is the Official Support Server for this Bot*\n\n> **Link: **https://discord.gg/pe3V7uT");
17+
}
18+
};
19+
/**
20+
* @INFO
21+
* Bot Coded by Tomato#6966 | https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js
22+
* @INFO
23+
* Work for Milrato Development | https://milrato.eu
24+
* @INFO
25+
* Please mention Him / Milrato Development, when using this Code!
26+
* @INFO
27+
*/

commands/🔰 Info/botinfo.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ module.exports = {
4949
.addField("API Latency", `\`${client.ws.ping}ms\``, true)
5050
.setFooter("Coded by: Tomato#6966");
5151
message.channel.send(botinfo);
52-
}).catch(e => console.log(e));
52+
})
5353
} catch (e) {
5454
console.log(String(e.stack).bgRed)
55-
return message.channel.send(new MessageEmbed()
55+
return message.channel.send(new Discord.MessageEmbed()
5656
.setColor(ee.wrongcolor)
5757
.setFooter(ee.footertext, ee.footericon)
5858
.setTitle(`${emoji.msg.ERROR} ERROR | An error occurred`)

0 commit comments

Comments
 (0)