├── .github
└── FUNDING.yml
├── LICENSE
├── README.md
├── botconfig
├── config.json
└── embed.json
├── bots
├── discordjshandler
│ ├── LICENSE
│ ├── README.md
│ ├── botconfig
│ │ ├── config.json
│ │ └── embed.json
│ ├── commands
│ │ ├── Administration
│ │ │ ├── embed.js
│ │ │ └── say.js
│ │ └── Information
│ │ │ ├── help.js
│ │ │ ├── ping.js
│ │ │ └── uptime.js
│ ├── events
│ │ ├── client
│ │ │ ├── disconnect.js
│ │ │ ├── error.js
│ │ │ ├── ready.js
│ │ │ ├── reconnecting.js
│ │ │ └── warn.js
│ │ └── guild
│ │ │ └── message.js
│ ├── handlers
│ │ ├── command.js
│ │ ├── events.js
│ │ └── functions.js
│ ├── index.js
│ └── package.json
├── jointocreate
│ ├── LICENSE
│ ├── README.md
│ ├── botconfig
│ │ ├── config.json
│ │ └── embed.json
│ ├── commands
│ │ ├── Information
│ │ │ ├── help.js
│ │ │ ├── ping.js
│ │ │ └── uptime.js
│ │ └── Setup
│ │ │ ├── addchannel.js
│ │ │ └── removechannel.js
│ ├── events
│ │ ├── client
│ │ │ ├── disconnect.js
│ │ │ ├── error.js
│ │ │ ├── ready.js
│ │ │ ├── reconnecting.js
│ │ │ └── warn.js
│ │ └── guild
│ │ │ └── message.js
│ ├── handlers
│ │ ├── command.js
│ │ ├── events.js
│ │ └── functions.js
│ ├── index.js
│ ├── modules
│ │ └── jointocreate.js
│ └── package.json
├── musicbot
│ ├── LICENSE
│ ├── README.md
│ ├── botconfig
│ │ ├── config.json
│ │ └── embed.json
│ ├── commands
│ │ ├── Administration
│ │ │ ├── embed.js
│ │ │ └── say.js
│ │ ├── Information
│ │ │ ├── help.js
│ │ │ ├── ping.js
│ │ │ └── uptime.js
│ │ └── Music
│ │ │ ├── autoplay.js
│ │ │ ├── filter.js
│ │ │ ├── forward.js
│ │ │ ├── loop.js
│ │ │ ├── nowplaying.js
│ │ │ ├── pause.js
│ │ │ ├── play.js
│ │ │ ├── queue.js
│ │ │ ├── resume.js
│ │ │ ├── rewind.js
│ │ │ ├── search.js
│ │ │ ├── seek.js
│ │ │ ├── shuffle.js
│ │ │ ├── skip.js
│ │ │ ├── stop.js
│ │ │ └── volume.js
│ ├── events
│ │ ├── client
│ │ │ ├── disconnect.js
│ │ │ ├── error.js
│ │ │ ├── ready.js
│ │ │ ├── reconnecting.js
│ │ │ └── warn.js
│ │ └── guild
│ │ │ └── message.js
│ ├── handlers
│ │ ├── command.js
│ │ ├── distube-handler.js
│ │ ├── events.js
│ │ └── functions.js
│ ├── index.js
│ └── package.json
└── waitingroombot
│ ├── LICENSE
│ ├── README.md
│ ├── botconfig
│ ├── config.json
│ └── embed.json
│ ├── commands
│ ├── Information
│ │ ├── help.js
│ │ ├── ping.js
│ │ └── uptime.js
│ └── Voice
│ │ ├── changeradio.js
│ │ ├── join.js
│ │ ├── leave.js
│ │ ├── play.js
│ │ ├── rejoin.js
│ │ └── setup.js
│ ├── events
│ ├── client
│ │ ├── disconnect.js
│ │ ├── error.js
│ │ ├── ready.js
│ │ ├── reconnecting.js
│ │ └── warn.js
│ └── guild
│ │ └── message.js
│ ├── handlers
│ ├── command.js
│ ├── events.js
│ └── functions.js
│ ├── index.js
│ ├── modules
│ └── radiomodule.js
│ └── package.json
├── commands
├── ⚙️ Bot Creation
│ ├── discordjshandler.js
│ ├── jointocreatebot.js
│ ├── musicbot.js
│ └── waitingroombot.js
├── ⛔️ Admin
│ ├── embed.js
│ ├── prefix.js
│ └── say.js
└── 🔰 Info
│ ├── botinfo.js
│ ├── developer.js
│ ├── github.js
│ ├── help.js
│ ├── invite.js
│ ├── ping.js
│ ├── serverinfo.js
│ ├── sponsor.js
│ ├── stats.js
│ ├── uptime.js
│ └── userinfo.js
├── databases
├── settings
│ └── placeholder.txt
└── stats
│ └── placeholder.txt
├── events
├── client
│ ├── disconnect.js
│ ├── error.js
│ ├── ready.js
│ ├── reconnecting.js
│ └── warn.js
└── guild
│ └── message.js
├── handlers
├── command.js
├── events.js
└── functions.js
├── index.js
└── package.json
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | custom: ['milrato.eu', 'dc.milrato.eu', 'bero.milrato.eu', 'bittmax.milrato.eu' ]
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Discord Bot Maker
2 |
3 | **A Discord Bot that makes yourself Discord Bots**
4 |
5 | [This is the official Source Code of the Public Bot called "DISCORD BOT MAKER#9428"](https://discordbotmaker.milrato.eu) so if you consider to use the source code than please make sure to support [Milrato Development](https://milrato.eu) by [Inviting](https://discordbotmaker.milrato.eu) this Bot!
6 |
7 |
8 |
9 | ***
10 |
11 | ## [Discord Server 😎](https://discord.gg/milrato) | [Website](https://milrato.dev)
12 |
13 |
14 | ***
15 |
16 | ## SUPPORT ME AND MILRATO DEVELOPMENT
17 |
18 | > You can always Support me by inviting one of my **own Discord Bots**
19 |
20 | [](https://lava.milrato.dev)
21 | [](https://musicium.musicium.dev)
22 | [](https://milrato.milrato.dev)
23 |
24 | # Credits
25 |
26 | > If consider using this Bot, make sure to credit me!
27 |
--------------------------------------------------------------------------------
/botconfig/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "token": "YOUR TOKEN GOES HERE",
3 | "prefix": "b!"
4 | }
5 |
--------------------------------------------------------------------------------
/botconfig/embed.json:
--------------------------------------------------------------------------------
1 | {
2 | "color": "#ffca4f",
3 | "wrongcolor": "#e01e01",
4 | "footertext": "Discord Bot Maker | powered by milrato.eu",
5 | "footericon": "https://cdn.discordapp.com/attachments/816967454776623123/816973890898362368/discordbotmaker.png"
6 | }
7 |
--------------------------------------------------------------------------------
/bots/discordjshandler/README.md:
--------------------------------------------------------------------------------
1 | # Discord-Js-Handler-Template
2 |
3 | For Questions: https://discord.gg/fS6qBSm
4 |
5 | ## BEST HOSTING | Bittmax.de
6 | BITTMAX Quality is their solution.
7 | Bittmax is our first and probably most important sponsor!
8 |
9 | **What they are offering:**
10 | > Quality LXC & KVM (Root) Server
11 | > Minecraft Hosting, as well as BungeeCord Network Hosting support
12 | > Cheap and fast Domains
13 | > WEBHOSTING
14 | > DISCORD, TEAMSPEAK, Setups / Music Bots
15 | > GAME SERVER, Rust, Gary's Mod, ..
16 |
17 | **Discord Server:**
18 | [https://discord.gg/GgjJZCyYKD](https://discord.gg/GgjJZCyYKD)
19 |
20 | **Website:**
21 | [https://bittmax.de/](https://bittmax.de/])
22 |
23 | GET **5%** OFF EVERYTHING FOR EVER!
24 | Code: **`x10`**
25 |
26 | ## MC-Host24.de
27 | MC-Host24.de is selling the Best Digital Hosting Services ever!
28 | Like For games..
29 |
30 | **What they are offering:**
31 | > Quality LXC & KVM (Root) Server
32 | > WORLDS BEST Minecraft Hosting,
33 | > Cheap and fast Domains
34 | > WEBHOSTING
35 | > DISCORD, TEAMSPEAK, Setups / Music Bots
36 | > GAME SERVER, Rust, Gary's Mod, ..
37 |
38 | **Discord Server:**
39 | [https://discord.com/invite/4dGuGXK4A4](https://discord.com/invite/4dGuGXK4A4)
40 |
41 | **Website:**
42 | [mc-host24.de](https://mc-host24.de/user/affiliate/3121])
43 |
44 |
45 | ## SUPPORT ME
46 |
47 | You can always Support me by inviting one of my **own Discord Bots**
48 |
49 | [](https://musicium.eu)
50 | [](https://milrato.eu)
51 |
52 | [OTHER BOTS](https://bots.musicium.eu)
53 |
54 | [| fork my repository |](https://github.com/user/repository/fork)
55 | [watch this repo |](https://github.com/user/repository/subscription)
56 | [create issue |](https://github.com/user/repository/issues/new)
57 |
58 | *Both bots are still in Development, and will always be in development, this means always uptodate and always online and always improving!*
59 |
--------------------------------------------------------------------------------
/bots/discordjshandler/botconfig/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "token": "",
3 | "prefix": "",
4 | "owner": ""
5 | }
--------------------------------------------------------------------------------
/bots/discordjshandler/botconfig/embed.json:
--------------------------------------------------------------------------------
1 | {
2 | "color": "#3498db",
3 | "wrongcolor": "#e01e01"
4 | }
5 |
--------------------------------------------------------------------------------
/bots/discordjshandler/commands/Administration/embed.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | module.exports = {
5 | name: "embed",
6 | category: "Administration",
7 | aliases: ["say-embed"],
8 | cooldown: 2,
9 | usage: "embed
++ ",
10 | description: "Resends a message from u as an Embed",
11 | run: async (client, message, args, user, text, prefix) => {
12 | try{
13 | if(!args[0])
14 | return message.channel.send(new MessageEmbed()
15 | .setColor(ee.wrongcolor)
16 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
17 | .setTitle(`❌ ERROR | You didn't provided a Title, nor a Description`)
18 | .setDescription(`Usage: \`${prefix}embed ++ \``)
19 | );
20 | let userargs = args.join(" ").split("++");
21 | let title = userargs[0];
22 | let desc = userargs.slice(1).join(" ")
23 | message.channel.send(new MessageEmbed()
24 | .setColor(ee.color)
25 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
26 | .setTitle(title ? title : "")
27 | .setDescription(desc ? desc : "")
28 | )
29 | } catch (e) {
30 | console.log(String(e.stack).bgRed)
31 | return message.channel.send(new MessageEmbed()
32 | .setColor(ee.wrongcolor)
33 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
34 | .setTitle(`❌ ERROR | An error occurred`)
35 | .setDescription(`\`\`\`${e.message}\`\`\``)
36 | );
37 | }
38 | }
39 | }
40 | /**
41 | * @INFO
42 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
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 | */
49 |
--------------------------------------------------------------------------------
/bots/discordjshandler/commands/Administration/say.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | module.exports = {
5 | name: "say",
6 | category: "Administration",
7 | aliases: [""],
8 | cooldown: 2,
9 | usage: "say ",
10 | description: "Resends your Text",
11 | run: async (client, message, args, user, text, prefix) => {
12 | try{
13 | if(!args[0])
14 | return message.channel.send(new MessageEmbed()
15 | .setColor(ee.wrongcolor)
16 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
17 | .setTitle(`❌ ERROR | You didn't provided a Text`)
18 | .setDescription(`Usage: \`${prefix}say \``)
19 | );
20 | message.channel.send(text);
21 | } catch (e) {
22 | console.log(String(e.stack).bgRed)
23 | return message.channel.send(new MessageEmbed()
24 | .setColor(ee.wrongcolor)
25 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
26 | .setTitle(`❌ ERROR | An error occurred`)
27 | .setDescription(`\`\`\`${e.message}\`\`\``)
28 | );
29 | }
30 | }
31 | }
32 | /**
33 | * @INFO
34 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
35 | * @INFO
36 | * Work for Milrato Development | https://milrato.eu
37 | * @INFO
38 | * Please mention Him / Milrato Development, when using this Code!
39 | * @INFO
40 | */
41 |
--------------------------------------------------------------------------------
/bots/discordjshandler/commands/Information/help.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | module.exports = {
5 | name: "help",
6 | category: "Information",
7 | aliases: ["h", "commandinfo", "cmds", "cmd"],
8 | cooldown: 4,
9 | usage: "help [Command]",
10 | description: "Returns all Commmands, or one specific command",
11 | run: async (client, message, args, user, text, prefix) => {
12 | try{
13 | if (args[0]) {
14 | const embed = new MessageEmbed();
15 | const cmd = client.commands.get(args[0].toLowerCase()) || client.commands.get(client.aliases.get(args[0].toLowerCase()));
16 | if (!cmd) {
17 | return message.channel.send(embed.setColor(ee.wrongcolor).setDescription(`No Information found for command **${args[0].toLowerCase()}**`));
18 | }
19 | if (cmd.name) embed.addField("**Command name**", `\`${cmd.name}\``);
20 | if (cmd.name) embed.setTitle(`Detailed Information about:\`${cmd.name}\``);
21 | if (cmd.description) embed.addField("**Description**", `\`${cmd.description}\``);
22 | if (cmd.aliases) embed.addField("**Aliases**", `\`${cmd.aliases.map((a) => `${a}`).join("`, `")}\``);
23 | if (cmd.cooldown) embed.addField("**Cooldown**", `\`${cmd.cooldown} Seconds\``);
24 | else embed.addField("**Cooldown**", `\`1 Second\``);
25 | if (cmd.usage) {
26 | embed.addField("**Usage**", `\`${config.prefix}${cmd.usage}\``);
27 | embed.setFooter("Syntax: <> = required, [] = optional");
28 | }
29 | if (cmd.useage) {
30 | embed.addField("**Useage**", `\`${config.prefix}${cmd.useage}\``);
31 | embed.setFooter("Syntax: <> = required, [] = optional");
32 | }
33 | return message.channel.send(embed.setColor(ee.color));
34 | } else {
35 | const embed = new MessageEmbed()
36 | .setColor(ee.color)
37 | .setThumbnail(client.user.displayAvatarURL())
38 | .setTitle("HELP MENU 🔰 Commands")
39 | .setFooter(`To see command descriptions and inforamtion, type: ${config.prefix}help [CMD NAME]`, client.user.displayAvatarURL());
40 | const commands = (category) => {
41 | return client.commands.filter((cmd) => cmd.category === category).map((cmd) => `\`${cmd.name}\``);
42 | };
43 | try {
44 | for (let i = 0; i < client.categories.length; i += 1) {
45 | const current = client.categories[i];
46 | const items = commands(current);
47 | const n = 3;
48 | const result = [[], [], []];
49 | const wordsPerLine = Math.ceil(items.length / 3);
50 | for (let line = 0; line < n; line++) {
51 | for (let i = 0; i < wordsPerLine; i++) {
52 | const value = items[i + line * wordsPerLine];
53 | if (!value) continue;
54 | result[line].push(value);
55 | }
56 | }
57 | embed.addField(`**${current.toUpperCase()} [${items.length}]**`, `> ${result[0].join("\n> ")}`, true);
58 | embed.addField(`\u200b`, `${result[1].join("\n") ? result[1].join("\n") : "\u200b"}`, true);
59 | embed.addField(`\u200b`, `${result[2].join("\n") ? result[2].join("\n") : "\u200b"}`, true);
60 | }
61 | } catch (e) {
62 | console.log(String(e.stack).red);
63 | }
64 | message.channel.send(embed);
65 | }
66 | } catch (e) {
67 | console.log(String(e.stack).bgRed)
68 | return message.channel.send(new MessageEmbed()
69 | .setColor(ee.wrongcolor)
70 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
71 | .setTitle(`❌ ERROR | An error occurred`)
72 | .setDescription(`\`\`\`${e.message}\`\`\``)
73 | );
74 | }
75 | }
76 | }
77 | /**
78 | * @INFO
79 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
80 | * @INFO
81 | * Work for Milrato Development | https://milrato.eu
82 | * @INFO
83 | * Please mention Him / Milrato Development, when using this Code!
84 | * @INFO
85 | */
86 |
--------------------------------------------------------------------------------
/bots/discordjshandler/commands/Information/ping.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | module.exports = {
5 | name: "ping",
6 | category: "Information",
7 | aliases: ["latency"],
8 | cooldown: 2,
9 | usage: "ping",
10 | description: "Gives you information on how fast the Bot can respond to you",
11 | run: async (client, message, args, user, text, prefix) => {
12 | try{
13 | message.channel.send(new MessageEmbed()
14 | .setColor(ee.color)
15 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
16 | .setTitle(`🏓 Pinging....`)
17 | ).then(msg=>{
18 | msg.edit(new MessageEmbed()
19 | .setColor(ee.color)
20 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
21 | .setTitle(`🏓 Ping is \`${Math.round(client.ws.ping)}ms\``)
22 | );
23 | })
24 | } catch (e) {
25 | console.log(String(e.stack).bgRed)
26 | return message.channel.send(new MessageEmbed()
27 | .setColor(ee.wrongcolor)
28 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
29 | .setTitle(`❌ ERROR | An error occurred`)
30 | .setDescription(`\`\`\`${e.message}\`\`\``)
31 | );
32 | }
33 | }
34 | }
35 | /**
36 | * @INFO
37 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
38 | * @INFO
39 | * Work for Milrato Development | https://milrato.eu
40 | * @INFO
41 | * Please mention Him / Milrato Development, when using this Code!
42 | * @INFO
43 | */
44 |
--------------------------------------------------------------------------------
/bots/discordjshandler/commands/Information/uptime.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | const { duration } = require("../../handlers/functions")
5 | module.exports = {
6 | name: "uptime",
7 | category: "Information",
8 | aliases: [""],
9 | cooldown: 10,
10 | usage: "uptime",
11 | description: "Returns the duration on how long the Bot is online",
12 | run: async (client, message, args, user, text, prefix) => {
13 | try{
14 | message.channel.send(new MessageEmbed()
15 | .setColor(ee.color)
16 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
17 | .setTitle(`:white_check_mark: **${client.user.username}** is since:\n ${duration(client.uptime)} online`)
18 | );
19 | } catch (e) {
20 | console.log(String(e.stack).bgRed)
21 | return message.channel.send(new MessageEmbed()
22 | .setColor(ee.wrongcolor)
23 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
24 | .setTitle(`❌ ERROR | An error occurred`)
25 | .setDescription(`\`\`\`${e.message}\`\`\``)
26 | );
27 | }
28 | }
29 | }
30 | /**
31 | * @INFO
32 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
33 | * @INFO
34 | * Work for Milrato Development | https://milrato.eu
35 | * @INFO
36 | * Please mention Him / Milrato Development, when using this Code!
37 | * @INFO
38 | */
39 |
--------------------------------------------------------------------------------
/bots/discordjshandler/events/client/disconnect.js:
--------------------------------------------------------------------------------
1 | //here the event starts
2 | module.exports = client => {
3 | console.log(`You have been disconnected at ${new Date()}.`.red)
4 | }
5 | /**
6 | * @INFO
7 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
8 | * @INFO
9 | * Work for Milrato Development | https://milrato.eu
10 | * @INFO
11 | * Please mention Him / Milrato Development, when using this Code!
12 | * @INFO
13 | */
14 |
--------------------------------------------------------------------------------
/bots/discordjshandler/events/client/error.js:
--------------------------------------------------------------------------------
1 | //here the event starts
2 | module.exports = client => {
3 | console.error();
4 | }
5 | /**
6 | * @INFO
7 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
8 | * @INFO
9 | * Work for Milrato Development | https://milrato.eu
10 | * @INFO
11 | * Please mention Him / Milrato Development, when using this Code!
12 | * @INFO
13 | */
14 |
--------------------------------------------------------------------------------
/bots/discordjshandler/events/client/ready.js:
--------------------------------------------------------------------------------
1 | //here the event starts
2 | const config = require("../../botconfig/config.json")
3 | module.exports = client => {
4 | try{
5 | const stringlength = 69;
6 | console.log("\n")
7 | console.log(` ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓`.bold.brightGreen)
8 | console.log(` ┃ `.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length)+ "┃".bold.brightGreen)
9 | console.log(` ┃ `.bold.brightGreen + `Discord Bot is online!`.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length-`Discord Bot is online!`.length)+ "┃".bold.brightGreen)
10 | console.log(` ┃ `.bold.brightGreen + ` /--/ ${client.user.tag} /--/ `.bold.brightGreen+ " ".repeat(-1+stringlength-` ┃ `.length-` /--/ ${client.user.tag} /--/ `.length)+ "┃".bold.brightGreen)
11 | console.log(` ┃ `.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length)+ "┃".bold.brightGreen)
12 | console.log(` ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛`.bold.brightGreen)
13 | }catch{ /* */ }
14 |
15 | try{
16 | client.user.setActivity(client.user.username, { type: "PLAYING" });
17 | }catch (e) {
18 | console.log(String(e.stack).red);
19 | }
20 | //Change status each 10 minutes
21 | setInterval(()=>{
22 | try{
23 | client.user.setActivity(client.user.username, { type: "PLAYING" });
24 | }catch (e) {
25 | console.log(String(e.stack).red);
26 | }
27 | }, 10*60*1000)
28 | }
29 | /**
30 | * @INFO
31 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
32 | * @INFO
33 | * Work for Milrato Development | https://milrato.eu
34 | * @INFO
35 | * Please mention Him / Milrato Development, when using this Code!
36 | * @INFO
37 | */
38 |
--------------------------------------------------------------------------------
/bots/discordjshandler/events/client/reconnecting.js:
--------------------------------------------------------------------------------
1 | //here the event starts
2 | module.exports = client => {
3 | console.log(`Reconnceting at ${new Date()}.`.bgYellow.black)
4 | }
5 |
6 | /**
7 | * @INFO
8 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
9 | * @INFO
10 | * Work for Milrato Development | https://milrato.eu
11 | * @INFO
12 | * Please mention Him / Milrato Development, when using this Code!
13 | * @INFO
14 | */
15 |
--------------------------------------------------------------------------------
/bots/discordjshandler/events/client/warn.js:
--------------------------------------------------------------------------------
1 | //here the event starts
2 | module.exports = client => {
3 | console.warn();
4 | }
5 | /**
6 | * @INFO
7 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
8 | * @INFO
9 | * Work for Milrato Development | https://milrato.eu
10 | * @INFO
11 | * Please mention Him / Milrato Development, when using this Code!
12 | * @INFO
13 | */
14 |
--------------------------------------------------------------------------------
/bots/discordjshandler/handlers/command.js:
--------------------------------------------------------------------------------
1 | const { readdirSync } = require("fs");
2 | const ascii = require("ascii-table");
3 | let table = new ascii("Commands");
4 | table.setHeading("Command", "Load status");
5 | console.log("Welcome to SERVICE HANDLER /--/ By https://milrato.eu /--/ Discord: Tomato#6966".yellow);
6 | module.exports = (client) => {
7 | try{
8 | readdirSync("./commands/").forEach((dir) => {
9 | const commands = readdirSync(`./commands/${dir}/`).filter((file) => file.endsWith(".js"));
10 | for (let file of commands) {
11 | let pull = require(`../commands/${dir}/${file}`);
12 | if (pull.name) {
13 | client.commands.set(pull.name, pull);
14 | table.addRow(file, "Ready");
15 | } else {
16 | table.addRow(file, `error->missing a help.name,or help.name is not a string.`);
17 | continue;
18 | }
19 | if (pull.aliases && Array.isArray(pull.aliases)) pull.aliases.forEach((alias) => client.aliases.set(alias, pull.name));
20 | }
21 | });
22 | console.log(table.toString().cyan);
23 | }catch (e){
24 | console.log(String(e.stack).bgRed)
25 | }
26 | };
27 | /**
28 | * @INFO
29 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
30 | * @INFO
31 | * Work for Milrato Development | https://milrato.eu
32 | * @INFO
33 | * Please mention Him / Milrato Development, when using this Code!
34 | * @INFO
35 | */
36 |
--------------------------------------------------------------------------------
/bots/discordjshandler/handlers/events.js:
--------------------------------------------------------------------------------
1 | const fs = require("fs");
2 | const ascii = require("ascii-table");
3 | let table = new ascii("Events");
4 | table.setHeading("Events", "Load status");
5 | const allevents = [];
6 | module.exports = async (client) => {
7 | try{
8 | const load_dir = (dir) => {
9 | const event_files = fs.readdirSync(`./events/${dir}`).filter((file) => file.endsWith(".js"));
10 | for (const file of event_files){
11 | const event = require(`../events/${dir}/${file}`)
12 | let eventName = file.split(".")[0];
13 | allevents.push(eventName);
14 | client.on(eventName, event.bind(null, client));
15 | }
16 | }
17 | await ["client", "guild"].forEach(e=>load_dir(e));
18 | for (let i = 0; i < allevents.length; i++) {
19 | try {
20 | table.addRow(allevents[i], "Ready");
21 | } catch (e) {
22 | console.log(String(e.stack).red);
23 | }
24 | }
25 | console.log(table.toString().cyan);
26 | try{
27 | const stringlength = 69;
28 | console.log("\n")
29 | console.log(` ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓`.bold.brightGreen)
30 | console.log(` ┃ `.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length)+ "┃".bold.brightGreen)
31 | console.log(` ┃ `.bold.brightGreen + `Welcome to SERVICE HANDLER!`.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length-`Welcome to SERVICE HANDLER!`.length)+ "┃".bold.brightGreen)
32 | console.log(` ┃ `.bold.brightGreen + ` /-/ By https://milrato.eu /-/`.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length-` /-/ By https://milrato.eu /-/`.length)+ "┃".bold.brightGreen)
33 | console.log(` ┃ `.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length)+ "┃".bold.brightGreen)
34 | console.log(` ┃ `.bold.brightGreen + ` /-/ Discord: Tomato#6966 /-/`.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length-` /-/ By Discord: Tomato#6966 /-/`.length)+ " ┃".bold.brightGreen)
35 | console.log(` ┃ `.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length)+ "┃".bold.brightGreen)
36 | console.log(` ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛`.bold.brightGreen)
37 | }catch{ /* */ }
38 | try{
39 | const stringlength2 = 69;
40 | console.log("\n")
41 | console.log(` ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓`.bold.yellow)
42 | console.log(` ┃ `.bold.yellow + " ".repeat(-1+stringlength2-` ┃ `.length)+ "┃".bold.yellow)
43 | console.log(` ┃ `.bold.yellow + `Logging into the BOT...`.bold.yellow + " ".repeat(-1+stringlength2-` ┃ `.length-`Logging into the BOT...`.length)+ "┃".bold.yellow)
44 | console.log(` ┃ `.bold.yellow + " ".repeat(-1+stringlength2-` ┃ `.length)+ "┃".bold.yellow)
45 | console.log(` ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛`.bold.yellow)
46 | }catch{ /* */ }
47 | }catch (e){
48 | console.log(String(e.stack).bgRed)
49 | }
50 | };
51 | /**
52 | * @INFO
53 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
54 | * @INFO
55 | * Work for Milrato Development | https://milrato.eu
56 | * @INFO
57 | * Please mention Him / Milrato Development, when using this Code!
58 | * @INFO
59 | */
60 |
--------------------------------------------------------------------------------
/bots/discordjshandler/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @INFO
3 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
4 | * @INFO
5 | * Work for Milrato Development | https://milrato.eu
6 | * @INFO
7 | * Please mention Him / Milrato Development, when using this Code!
8 | * @INFO
9 | */
10 | //Importing all needed Commands
11 | const Discord = require("discord.js"); //this is the official discord.js wrapper for the Discord Api, which we use!
12 | const colors = require("colors"); //this Package is used, to change the colors of our Console! (optional and doesnt effect performance)
13 | const fs = require("fs"); //this package is for reading files and getting their inputs
14 | //Creating the Discord.js Client for This Bot with some default settings ;) and with partials, so you can fetch OLD messages
15 | const client = new Discord.Client({
16 | messageCacheLifetime: 60,
17 | fetchAllMembers: false,
18 | messageCacheMaxSize: 10,
19 | restTimeOffset: 0,
20 | restWsBridgetimeout: 100,
21 | disableEveryone: true,
22 | partials: ['MESSAGE', 'CHANNEL', 'REACTION']
23 | });
24 | //Client variables to use everywhere
25 | client.commands = new Discord.Collection(); //an collection (like a digital map(database)) for all your commands
26 | client.aliases = new Discord.Collection(); //an collection for all your command-aliases
27 | client.categories = fs.readdirSync("./commands/"); //categories
28 | client.cooldowns = new Discord.Collection(); //an collection for cooldown commands of each user
29 |
30 | //Loading files, with the client variable like Command Handler, Event Handler, ...
31 | ["command", "events"].forEach(handler => {
32 | require(`./handlers/${handler}`)(client);
33 | });
34 | //login into the bot
35 | client.login(require("./botconfig/config.json").token);
36 | /**
37 | * @INFO
38 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
39 | * @INFO
40 | * Work for Milrato Development | https://milrato.eu
41 | * @INFO
42 | * Please mention Him / Milrato Development, when using this Code!
43 | * @INFO
44 | */
45 |
--------------------------------------------------------------------------------
/bots/discordjshandler/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "discord-js-handler-template",
3 | "version": "1.0.0",
4 | "description": "Discord.js Command and Event Handler Template with example Command usages! For Questions: https://discord.gg/fS6qBSm",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "start": "node index.js"
9 | },
10 | "author": "Tomato#6966",
11 | "license": "ISC",
12 | "dependencies": {
13 | "ascii-table": "0.0.9",
14 | "discord.js": "^12.5.1"
15 | },
16 | "devDependencies": {
17 | "ascii-table": "0.0.9",
18 | "colors": "^1.4.0"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/bots/jointocreate/README.md:
--------------------------------------------------------------------------------
1 | # Discord-Js-Handler-Template
2 |
3 | For Questions: https://discord.gg/fS6qBSm
4 |
5 | ## BEST HOSTING | Bittmax.de
6 | BITTMAX Quality is their solution.
7 | Bittmax is our first and probably most important sponsor!
8 |
9 | **What they are offering:**
10 | > Quality LXC & KVM (Root) Server
11 | > Minecraft Hosting, as well as BungeeCord Network Hosting support
12 | > Cheap and fast Domains
13 | > WEBHOSTING
14 | > DISCORD, TEAMSPEAK, Setups / Music Bots
15 | > GAME SERVER, Rust, Gary's Mod, ..
16 |
17 | **Discord Server:**
18 | [https://discord.gg/GgjJZCyYKD](https://discord.gg/GgjJZCyYKD)
19 |
20 | **Website:**
21 | [https://bittmax.de/](https://bittmax.de/])
22 |
23 | GET **5%** OFF EVERYTHING FOR EVER!
24 | Code: **`x10`**
25 |
26 | ## MC-Host24.de
27 | MC-Host24.de is selling the Best Digital Hosting Services ever!
28 | Like For games..
29 |
30 | **What they are offering:**
31 | > Quality LXC & KVM (Root) Server
32 | > WORLDS BEST Minecraft Hosting,
33 | > Cheap and fast Domains
34 | > WEBHOSTING
35 | > DISCORD, TEAMSPEAK, Setups / Music Bots
36 | > GAME SERVER, Rust, Gary's Mod, ..
37 |
38 | **Discord Server:**
39 | [https://discord.com/invite/4dGuGXK4A4](https://discord.com/invite/4dGuGXK4A4)
40 |
41 | **Website:**
42 | [mc-host24.de](https://mc-host24.de/user/affiliate/3121])
43 |
44 |
45 | ## SUPPORT ME
46 |
47 | You can always Support me by inviting one of my **own Discord Bots**
48 |
49 | [](https://musicium.eu)
50 | [](https://milrato.eu)
51 |
52 | [OTHER BOTS](https://bots.musicium.eu)
53 |
54 | [| fork my repository |](https://github.com/user/repository/fork)
55 | [watch this repo |](https://github.com/user/repository/subscription)
56 | [create issue |](https://github.com/user/repository/issues/new)
57 |
58 | *Both bots are still in Development, and will always be in development, this means always uptodate and always online and always improving!*
59 |
--------------------------------------------------------------------------------
/bots/jointocreate/botconfig/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "token": "",
3 | "prefix": "",
4 | "owner": "",
5 | "channels": [],
6 | "guild": ""
7 | }
--------------------------------------------------------------------------------
/bots/jointocreate/botconfig/embed.json:
--------------------------------------------------------------------------------
1 | {
2 | "color": "#3498db",
3 | "wrongcolor": "#e01e01"
4 | }
5 |
--------------------------------------------------------------------------------
/bots/jointocreate/commands/Information/help.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | module.exports = {
5 | name: "help",
6 | category: "Information",
7 | aliases: ["h", "commandinfo", "cmds", "cmd"],
8 | cooldown: 4,
9 | usage: "help [Command]",
10 | description: "Returns all Commmands, or one specific command",
11 | run: async (client, message, args, user, text, prefix) => {
12 | try{
13 | if (args[0]) {
14 | const embed = new MessageEmbed();
15 | const cmd = client.commands.get(args[0].toLowerCase()) || client.commands.get(client.aliases.get(args[0].toLowerCase()));
16 | if (!cmd) {
17 | return message.channel.send(embed.setColor(ee.wrongcolor).setDescription(`No Information found for command **${args[0].toLowerCase()}**`));
18 | }
19 | if (cmd.name) embed.addField("**Command name**", `\`${cmd.name}\``);
20 | if (cmd.name) embed.setTitle(`Detailed Information about:\`${cmd.name}\``);
21 | if (cmd.description) embed.addField("**Description**", `\`${cmd.description}\``);
22 | if (cmd.aliases) embed.addField("**Aliases**", `\`${cmd.aliases.map((a) => `${a}`).join("`, `")}\``);
23 | if (cmd.cooldown) embed.addField("**Cooldown**", `\`${cmd.cooldown} Seconds\``);
24 | else embed.addField("**Cooldown**", `\`1 Second\``);
25 | if (cmd.usage) {
26 | embed.addField("**Usage**", `\`${config.prefix}${cmd.usage}\``);
27 | embed.setFooter("Syntax: <> = required, [] = optional");
28 | }
29 | if (cmd.useage) {
30 | embed.addField("**Useage**", `\`${config.prefix}${cmd.useage}\``);
31 | embed.setFooter("Syntax: <> = required, [] = optional");
32 | }
33 | return message.channel.send(embed.setColor(ee.color));
34 | } else {
35 | const embed = new MessageEmbed()
36 | .setColor(ee.color)
37 | .setThumbnail(client.user.displayAvatarURL())
38 | .setTitle("HELP MENU 🔰 Commands")
39 | .setFooter(`To see command descriptions and inforamtion, type: ${config.prefix}help [CMD NAME]`, client.user.displayAvatarURL());
40 | const commands = (category) => {
41 | return client.commands.filter((cmd) => cmd.category === category).map((cmd) => `\`${cmd.name}\``);
42 | };
43 | try {
44 | for (let i = 0; i < client.categories.length; i += 1) {
45 | const current = client.categories[i];
46 | const items = commands(current);
47 | const n = 3;
48 | const result = [[], [], []];
49 | const wordsPerLine = Math.ceil(items.length / 3);
50 | for (let line = 0; line < n; line++) {
51 | for (let i = 0; i < wordsPerLine; i++) {
52 | const value = items[i + line * wordsPerLine];
53 | if (!value) continue;
54 | result[line].push(value);
55 | }
56 | }
57 | embed.addField(`**${current.toUpperCase()} [${items.length}]**`, `> ${result[0].join("\n> ")}`, true);
58 | embed.addField(`\u200b`, `${result[1].join("\n") ? result[1].join("\n") : "\u200b"}`, true);
59 | embed.addField(`\u200b`, `${result[2].join("\n") ? result[2].join("\n") : "\u200b"}`, true);
60 | }
61 | } catch (e) {
62 | console.log(String(e.stack).red);
63 | }
64 | message.channel.send(embed);
65 | }
66 | } catch (e) {
67 | console.log(String(e.stack).bgRed)
68 | return message.channel.send(new MessageEmbed()
69 | .setColor(ee.wrongcolor)
70 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
71 | .setTitle(`❌ ERROR | An error occurred`)
72 | .setDescription(`\`\`\`${e.stack}\`\`\``)
73 | );
74 | }
75 | }
76 | }
77 | /**
78 | * @INFO
79 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
80 | * @INFO
81 | * Work for Milrato Development | https://milrato.eu
82 | * @INFO
83 | * Please mention Him / Milrato Development, when using this Code!
84 | * @INFO
85 | */
86 |
--------------------------------------------------------------------------------
/bots/jointocreate/commands/Information/ping.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | module.exports = {
5 | name: "ping",
6 | category: "Information",
7 | aliases: ["latency"],
8 | cooldown: 2,
9 | usage: "ping",
10 | description: "Gives you information on how fast the Bot can respond to you",
11 | run: async (client, message, args, user, text, prefix) => {
12 | try{
13 | message.channel.send(new MessageEmbed()
14 | .setColor(ee.color)
15 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
16 | .setTitle(`🏓 Pinging....`)
17 | ).then(msg=>{
18 | msg.edit(new MessageEmbed()
19 | .setColor(ee.color)
20 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
21 | .setTitle(`🏓 Ping is \`${Math.round(client.ws.ping)}ms\``)
22 | );
23 | })
24 | } catch (e) {
25 | console.log(String(e.stack).bgRed)
26 | return message.channel.send(new MessageEmbed()
27 | .setColor(ee.wrongcolor)
28 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
29 | .setTitle(`❌ ERROR | An error occurred`)
30 | .setDescription(`\`\`\`${e.stack}\`\`\``)
31 | );
32 | }
33 | }
34 | }
35 | /**
36 | * @INFO
37 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
38 | * @INFO
39 | * Work for Milrato Development | https://milrato.eu
40 | * @INFO
41 | * Please mention Him / Milrato Development, when using this Code!
42 | * @INFO
43 | */
44 |
--------------------------------------------------------------------------------
/bots/jointocreate/commands/Information/uptime.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | const { duration } = require("../../handlers/functions")
5 | module.exports = {
6 | name: "uptime",
7 | category: "Information",
8 | aliases: [""],
9 | cooldown: 10,
10 | usage: "uptime",
11 | description: "Returns the duration on how long the Bot is online",
12 | run: async (client, message, args, user, text, prefix) => {
13 | try{
14 | message.channel.send(new MessageEmbed()
15 | .setColor(ee.color)
16 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
17 | .setTitle(`:white_check_mark: **${client.user.username}** is since:\n ${duration(client.uptime)} online`)
18 | );
19 | } catch (e) {
20 | console.log(String(e.stack).bgRed)
21 | return message.channel.send(new MessageEmbed()
22 | .setColor(ee.wrongcolor)
23 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
24 | .setTitle(`❌ ERROR | An error occurred`)
25 | .setDescription(`\`\`\`${e.stack}\`\`\``)
26 | );
27 | }
28 | }
29 | }
30 | /**
31 | * @INFO
32 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
33 | * @INFO
34 | * Work for Milrato Development | https://milrato.eu
35 | * @INFO
36 | * Please mention Him / Milrato Development, when using this Code!
37 | * @INFO
38 | */
39 |
--------------------------------------------------------------------------------
/bots/jointocreate/commands/Setup/addchannel.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | const fs = require("fs")
5 | module.exports = {
6 | name: "addchannel",
7 | category: "Setup",
8 | aliases: ["addch"],
9 | cooldown: 2,
10 | usage: "addchannel ",
11 | description: "Adds a Channel, which should be used as an Setup | Source for Join to Creates!",
12 | run: async (client, message, args, user, text, prefix) => {
13 | try{
14 | if(!args[0])
15 | return message.channel.send(new MessageEmbed()
16 | .setColor(ee.wrongcolor)
17 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
18 | .setTitle(`❌ ERROR | Please add a Channel ID!`)
19 | );
20 | let channel = message.guild.channels.cache.get(args[0])
21 | if(!channel)
22 | return message.channel.send(new MessageEmbed()
23 | .setColor(ee.wrongcolor)
24 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
25 | .setTitle(`❌ ERROR | Cannot find your Channel by ID!`)
26 | );
27 | if(channel.type !== "voice")
28 | return message.channel.send(new MessageEmbed()
29 | .setColor(ee.wrongcolor)
30 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
31 | .setTitle(`❌ ERROR | Your granted Channel is not a Voice Channel`)
32 | );
33 | if(config.guild.length === 18 && config.guild !== message.guild.id)
34 | return message.channel.send(new MessageEmbed()
35 | .setColor(ee.wrongcolor)
36 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
37 | .setTitle(`❌ ERROR | You are not allowed to add a Channel cause you are not in the right guild!`)
38 | );
39 | let oldconfig = config;
40 | oldconfig.guild = message.guild.id;
41 | oldconfig.channels.push(channel.id);
42 | fs.writeFile("./botconfig/config.json", JSON.stringify(oldconfig, null, 3), async (e) => {
43 | if (e) {
44 | console.log(String(e.stack).red);
45 | return message.channel.send(new MessageEmbed()
46 | .setFooter(ee.footertext,ee.footericon)
47 | .setColor(ee.wrongcolor)
48 | .setTitle("❌ ERROR Writing the File")
49 | .setDescription(`\`\`\`${e.stack}\`\`\``)
50 | )
51 | }
52 | return message.channel.send(new MessageEmbed()
53 | .setColor(ee.color)
54 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
55 | .setTitle(`✅ Success | You can now use: \`${channel.name}\` as a Join to Create Channel!`)
56 | )
57 | });
58 | } catch (e) {
59 | console.log(String(e.stack).bgRed)
60 | return message.channel.send(new MessageEmbed()
61 | .setColor(ee.wrongcolor)
62 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
63 | .setTitle(`❌ ERROR | An error occurred`)
64 | .setDescription(`\`\`\`${e.stack}\`\`\``)
65 | );
66 | }
67 | }
68 | }
69 | /**
70 | * @INFO
71 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
72 | * @INFO
73 | * Work for Milrato Development | https://milrato.eu
74 | * @INFO
75 | * Please mention Him / Milrato Development, when using this Code!
76 | * @INFO
77 | */
78 |
--------------------------------------------------------------------------------
/bots/jointocreate/commands/Setup/removechannel.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | const fs = require("fs")
5 | module.exports = {
6 | name: "removechannel",
7 | category: "Setup",
8 | aliases: ["removech"],
9 | cooldown: 2,
10 | usage: "removechannel ",
11 | description: "Removes a Channel, which should be not used as an Setup anymore | Source for Join to Creates!",
12 | run: async (client, message, args, user, text, prefix) => {
13 | try{
14 | if(!args[0])
15 | return message.channel.send(new MessageEmbed()
16 | .setColor(ee.wrongcolor)
17 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
18 | .setTitle(`❌ ERROR | Please add a Channel ID!`)
19 | );
20 | let channel = message.guild.channels.cache.get(args[0])
21 | if(!channel)
22 | return message.channel.send(new MessageEmbed()
23 | .setColor(ee.wrongcolor)
24 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
25 | .setTitle(`❌ ERROR | Cannot find your Channel by ID!`)
26 | );
27 | if(channel.type !== "voice")
28 | return message.channel.send(new MessageEmbed()
29 | .setColor(ee.wrongcolor)
30 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
31 | .setTitle(`❌ ERROR | Your granted Channel is not a Voice Channel`)
32 | );
33 | if(config.guild.length === 18 && config.guild !== message.guild.id)
34 | return message.channel.send(new MessageEmbed()
35 | .setColor(ee.wrongcolor)
36 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
37 | .setTitle(`❌ ERROR | You are not allowed to add a Channel cause you are not in the right guild!`)
38 | );
39 |
40 | let oldconfig = config;
41 | oldconfig.guild = message.guild.id;
42 | const index = oldconfig.channels.indexOf(channel.id);
43 | if (index > -1) {
44 | oldconfig.channels.splice(index, 1);
45 | }
46 | else {
47 | return message.channel.send(new MessageEmbed()
48 | .setColor(ee.wrongcolor)
49 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
50 | .setTitle(`❌ ERROR | Your granted ID is not saved so I can't remove it!`)
51 | );
52 | }
53 |
54 | fs.writeFile("./botconfig/config.json", JSON.stringify(oldconfig, null, 3), async (e) => {
55 | if (e) {
56 | console.log(String(e.stack).red);
57 | return message.channel.send(new MessageEmbed()
58 | .setFooter(ee.footertext,ee.footericon)
59 | .setColor(ee.wrongcolor)
60 | .setTitle("❌ ERROR Writing the File")
61 | .setDescription(`\`\`\`${e.stack}\`\`\``)
62 | )
63 | }
64 | return message.channel.send(new MessageEmbed()
65 | .setColor(ee.color)
66 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
67 | .setTitle(`✅ Success | Removed: \`${channel.name}\` from the Join to Create Channels!`)
68 | )
69 | });
70 | } catch (e) {
71 | console.log(String(e.stack).bgRed)
72 | return message.channel.send(new MessageEmbed()
73 | .setColor(ee.wrongcolor)
74 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
75 | .setTitle(`❌ ERROR | An error occurred`)
76 | .setDescription(`\`\`\`${e.stack}\`\`\``)
77 | );
78 | }
79 | }
80 | }
81 | /**
82 | * @INFO
83 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
84 | * @INFO
85 | * Work for Milrato Development | https://milrato.eu
86 | * @INFO
87 | * Please mention Him / Milrato Development, when using this Code!
88 | * @INFO
89 | */
90 |
--------------------------------------------------------------------------------
/bots/jointocreate/events/client/disconnect.js:
--------------------------------------------------------------------------------
1 | //here the event starts
2 | module.exports = client => {
3 | console.log(`You have been disconnected at ${new Date()}.`.red)
4 | }
5 | /**
6 | * @INFO
7 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
8 | * @INFO
9 | * Work for Milrato Development | https://milrato.eu
10 | * @INFO
11 | * Please mention Him / Milrato Development, when using this Code!
12 | * @INFO
13 | */
14 |
--------------------------------------------------------------------------------
/bots/jointocreate/events/client/error.js:
--------------------------------------------------------------------------------
1 | //here the event starts
2 | module.exports = client => {
3 | console.error();
4 | }
5 | /**
6 | * @INFO
7 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
8 | * @INFO
9 | * Work for Milrato Development | https://milrato.eu
10 | * @INFO
11 | * Please mention Him / Milrato Development, when using this Code!
12 | * @INFO
13 | */
14 |
--------------------------------------------------------------------------------
/bots/jointocreate/events/client/ready.js:
--------------------------------------------------------------------------------
1 | //here the event starts
2 | const config = require("../../botconfig/config.json")
3 | module.exports = client => {
4 | try{
5 | const stringlength = 69;
6 | console.log("\n")
7 | console.log(` ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓`.bold.brightGreen)
8 | console.log(` ┃ `.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length)+ "┃".bold.brightGreen)
9 | console.log(` ┃ `.bold.brightGreen + `Discord Bot is online!`.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length-`Discord Bot is online!`.length)+ "┃".bold.brightGreen)
10 | console.log(` ┃ `.bold.brightGreen + ` /--/ ${client.user.tag} /--/ `.bold.brightGreen+ " ".repeat(-1+stringlength-` ┃ `.length-` /--/ ${client.user.tag} /--/ `.length)+ "┃".bold.brightGreen)
11 | console.log(` ┃ `.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length)+ "┃".bold.brightGreen)
12 | console.log(` ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛`.bold.brightGreen)
13 | }catch{ /* */ }
14 |
15 | try{
16 | client.user.setActivity(client.user.username, { type: "PLAYING" });
17 | }catch (e) {
18 | console.log(String(e.stack).red);
19 | }
20 | //Change status each 10 minutes
21 | setTimeout(()=>{
22 | try{
23 | client.user.setActivity(client.user.username, { type: "PLAYING" });
24 | }catch (e) {
25 | console.log(String(e.stack).red);
26 | }
27 | }, 10*60*1000)
28 | }
29 | /**
30 | * @INFO
31 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
32 | * @INFO
33 | * Work for Milrato Development | https://milrato.eu
34 | * @INFO
35 | * Please mention Him / Milrato Development, when using this Code!
36 | * @INFO
37 | */
38 |
--------------------------------------------------------------------------------
/bots/jointocreate/events/client/reconnecting.js:
--------------------------------------------------------------------------------
1 | //here the event starts
2 | module.exports = client => {
3 | console.log(`Reconnceting at ${new Date()}.`.bgYellow.black)
4 | }
5 |
6 | /**
7 | * @INFO
8 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
9 | * @INFO
10 | * Work for Milrato Development | https://milrato.eu
11 | * @INFO
12 | * Please mention Him / Milrato Development, when using this Code!
13 | * @INFO
14 | */
15 |
--------------------------------------------------------------------------------
/bots/jointocreate/events/client/warn.js:
--------------------------------------------------------------------------------
1 | //here the event starts
2 | module.exports = client => {
3 | console.warn();
4 | }
5 | /**
6 | * @INFO
7 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
8 | * @INFO
9 | * Work for Milrato Development | https://milrato.eu
10 | * @INFO
11 | * Please mention Him / Milrato Development, when using this Code!
12 | * @INFO
13 | */
14 |
--------------------------------------------------------------------------------
/bots/jointocreate/handlers/command.js:
--------------------------------------------------------------------------------
1 | const { readdirSync } = require("fs");
2 | const ascii = require("ascii-table");
3 | let table = new ascii("Commands");
4 | table.setHeading("Command", "Load status");
5 | console.log("Welcome to SERVICE HANDLER /--/ By https://milrato.eu /--/ Discord: Tomato#6966".yellow);
6 | module.exports = (client) => {
7 | try{
8 | readdirSync("./commands/").forEach((dir) => {
9 | const commands = readdirSync(`./commands/${dir}/`).filter((file) => file.endsWith(".js"));
10 | for (let file of commands) {
11 | let pull = require(`../commands/${dir}/${file}`);
12 | if (pull.name) {
13 | client.commands.set(pull.name, pull);
14 | table.addRow(file, "Ready");
15 | } else {
16 | table.addRow(file, `error->missing a help.name,or help.name is not a string.`);
17 | continue;
18 | }
19 | if (pull.aliases && Array.isArray(pull.aliases)) pull.aliases.forEach((alias) => client.aliases.set(alias, pull.name));
20 | }
21 | });
22 | console.log(table.toString().cyan);
23 | }catch (e){
24 | console.log(String(e.stack).bgRed)
25 | }
26 | };
27 | /**
28 | * @INFO
29 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
30 | * @INFO
31 | * Work for Milrato Development | https://milrato.eu
32 | * @INFO
33 | * Please mention Him / Milrato Development, when using this Code!
34 | * @INFO
35 | */
36 |
--------------------------------------------------------------------------------
/bots/jointocreate/handlers/events.js:
--------------------------------------------------------------------------------
1 | const fs = require("fs");
2 | const ascii = require("ascii-table");
3 | let table = new ascii("Events");
4 | table.setHeading("Events", "Load status");
5 | const allevents = [];
6 | module.exports = async (client) => {
7 | try{
8 | const load_dir = (dir) => {
9 | const event_files = fs.readdirSync(`./events/${dir}`).filter((file) => file.endsWith(".js"));
10 | for (const file of event_files){
11 | const event = require(`../events/${dir}/${file}`)
12 | let eventName = file.split(".")[0];
13 | allevents.push(eventName);
14 | client.on(eventName, event.bind(null, client));
15 | }
16 | }
17 | await ["client", "guild"].forEach(e=>load_dir(e));
18 | for (let i = 0; i < allevents.length; i++) {
19 | try {
20 | table.addRow(allevents[i], "Ready");
21 | } catch (e) {
22 | console.log(String(e.stack).red);
23 | }
24 | }
25 | console.log(table.toString().cyan);
26 | try{
27 | const stringlength = 69;
28 | console.log("\n")
29 | console.log(` ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓`.bold.brightGreen)
30 | console.log(` ┃ `.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length)+ "┃".bold.brightGreen)
31 | console.log(` ┃ `.bold.brightGreen + `Welcome to SERVICE HANDLER!`.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length-`Welcome to SERVICE HANDLER!`.length)+ "┃".bold.brightGreen)
32 | console.log(` ┃ `.bold.brightGreen + ` /-/ By https://milrato.eu /-/`.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length-` /-/ By https://milrato.eu /-/`.length)+ "┃".bold.brightGreen)
33 | console.log(` ┃ `.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length)+ "┃".bold.brightGreen)
34 | console.log(` ┃ `.bold.brightGreen + ` /-/ Discord: Tomato#6966 /-/`.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length-` /-/ By Discord: Tomato#6966 /-/`.length)+ " ┃".bold.brightGreen)
35 | console.log(` ┃ `.bold.brightGreen + " ".repeat(-1+stringlength-` ┃ `.length)+ "┃".bold.brightGreen)
36 | console.log(` ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛`.bold.brightGreen)
37 | }catch{ /* */ }
38 | try{
39 | const stringlength2 = 69;
40 | console.log("\n")
41 | console.log(` ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓`.bold.yellow)
42 | console.log(` ┃ `.bold.yellow + " ".repeat(-1+stringlength2-` ┃ `.length)+ "┃".bold.yellow)
43 | console.log(` ┃ `.bold.yellow + `Logging into the BOT...`.bold.yellow + " ".repeat(-1+stringlength2-` ┃ `.length-`Logging into the BOT...`.length)+ "┃".bold.yellow)
44 | console.log(` ┃ `.bold.yellow + " ".repeat(-1+stringlength2-` ┃ `.length)+ "┃".bold.yellow)
45 | console.log(` ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛`.bold.yellow)
46 | }catch{ /* */ }
47 | }catch (e){
48 | console.log(String(e.stack).bgRed)
49 | }
50 | };
51 | /**
52 | * @INFO
53 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
54 | * @INFO
55 | * Work for Milrato Development | https://milrato.eu
56 | * @INFO
57 | * Please mention Him / Milrato Development, when using this Code!
58 | * @INFO
59 | */
60 |
--------------------------------------------------------------------------------
/bots/jointocreate/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @INFO
3 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
4 | * @INFO
5 | * Work for Milrato Development | https://milrato.eu
6 | * @INFO
7 | * Please mention Him / Milrato Development, when using this Code!
8 | * @INFO
9 | */
10 | //Importing all needed Commands
11 | const Discord = require("discord.js"); //this is the official discord.js wrapper for the Discord Api, which we use!
12 | const colors = require("colors"); //this Package is used, to change the colors of our Console! (optional and doesnt effect performance)
13 | const fs = require("fs"); //this package is for reading files and getting their inputs
14 | //Creating the Discord.js Client for This Bot with some default settings ;) and with partials, so you can fetch OLD messages
15 | const client = new Discord.Client({
16 | messageCacheLifetime: 60,
17 | fetchAllMembers: false,
18 | messageCacheMaxSize: 10,
19 | restTimeOffset: 0,
20 | restWsBridgetimeout: 100,
21 | disableEveryone: true,
22 | partials: ['MESSAGE', 'CHANNEL', 'REACTION']
23 | });
24 | //Client variables to use everywhere
25 | client.commands = new Discord.Collection(); //an collection (like a digital map(database)) for all your commands
26 | client.aliases = new Discord.Collection(); //an collection for all your command-aliases
27 | client.categories = fs.readdirSync("./commands/"); //categories
28 | client.cooldowns = new Discord.Collection(); //an collection for cooldown commands of each user
29 |
30 | //Loading files, with the client variable like Command Handler, Event Handler, ...
31 | ["command", "events"].forEach(handler => {
32 | require(`./handlers/${handler}`)(client);
33 | });
34 | //Loading files, with the client variable like Command Handler, Event Handler, ...
35 | ["jointocreate"].forEach(handler => {
36 | require(`./modules/${handler}`)(client);
37 | });
38 | //login into the bot
39 | client.login(require("./botconfig/config.json").token);
40 | /**
41 | * @INFO
42 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
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 | */
49 |
--------------------------------------------------------------------------------
/bots/jointocreate/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "discord-js-handler-template",
3 | "version": "1.0.0",
4 | "description": "Discord.js Command and Event Handler Template with example Command usages! For Questions: https://discord.gg/fS6qBSm",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "start": "node index.js"
9 | },
10 | "author": "Tomato#6966",
11 | "license": "ISC",
12 | "dependencies": {
13 | "ascii-table": "0.0.9",
14 | "discord.js": "^12.5.1"
15 | },
16 | "devDependencies": {
17 | "ascii-table": "0.0.9",
18 | "colors": "^1.4.0"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/bots/musicbot/README.md:
--------------------------------------------------------------------------------
1 | # Discord Music Bot
2 |
3 | In This tutorial Series I am explaining you how to do an advanced Music Bot in Discord, using the Distube Package
4 |
5 | It is fast and very good!
6 |
7 | First I will explain in several videos how to do specific Commands from skip to forward and lyrics!
8 |
9 | After that i will cover some more backend stuff, like adding reactions, filters, how to use cookies, spotify playlist supports etc. etc.
10 |
11 | ## Installation | How to use the Bot
12 |
13 | **1.** Install [node.js v12+](https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode) or higher
14 |
15 | **2.** Download this repo and unzip it | or git clone it
16 |
17 | **3.** Install all of the packages with **`npm install`**
18 |
19 | **4** Fill in the parameters, RIGHT in `./botconfig/config.json`!
20 |
21 | **5.** start the bot with **`node index.js`**
22 |
23 | #### **NOTE:**
24 |
25 | *If you are having errors/problems with starting delete the package.json file and do, before you install the packages `npm init`*
26 |
27 | *MAKE SURE THAT THE BOT HAS ADMIN*
28 |
29 | # TUTORIAL LISTS
30 |
31 | - **1. BASICS - play - skip - stop ...**
32 |
33 | - Tutorial Video: [Click Here](https://youtu.be/tF2hYHW3H4w)
34 |
35 | - Source Code: [Click Here]()
36 |
37 | - **2. Handeling the Commands**
38 |
39 | # SUPPORT ME
40 | BY [INVITING MY PUBLIC MUSIC BOT 24/7 UPTIME!](https://discord.com/api/oauth2/authorize?client_id=742672021422342165&permissions=8&scope=bot)
41 |
42 | This repository only exists, because of this DISCORD BOT, so make sure to invite it, so that i can keep this Repo up to date ;)
43 |
44 | ## BEST HOSTING | Bittmax.de
45 | BITTMAX Quality is their solution.
46 | Bittmax is our first and probably most important sponsor!
47 |
48 | **What they are offering:**
49 | > Quality LXC & KVM (Root) Server
50 | > Minecraft Hosting, as well as BungeeCord Network Hosting support
51 | > Cheap and fast Domains
52 | > WEBHOSTING
53 | > DISCORD, TEAMSPEAK, Setups / Music Bots
54 | > GAME SERVER, Rust, Gary's Mod, ..
55 |
56 | **Discord Server:**
57 | [https://discord.gg/GgjJZCyYKD](https://discord.gg/GgjJZCyYKD)
58 |
59 | **Website:**
60 | [https://bittmax.de/](https://bittmax.de/])
61 |
62 | GET **5%** OFF EVERYTHING FOR EVER!
63 | Code: **`x10`**
64 |
65 | ## MC-Host24.de
66 | MC-Host24.de is selling the Best Digital Hosting Services ever!
67 | Like For games..
68 |
69 | **What they are offering:**
70 | > Quality LXC & KVM (Root) Server
71 | > WORLDS BEST Minecraft Hosting,
72 | > Cheap and fast Domains
73 | > WEBHOSTING
74 | > DISCORD, TEAMSPEAK, Setups / Music Bots
75 | > GAME SERVER, Rust, Gary's Mod, ..
76 |
77 | **Discord Server:**
78 | [https://discord.com/invite/4dGuGXK4A4](https://discord.com/invite/4dGuGXK4A4)
79 |
80 | **Website:**
81 | [mc-host24.de](https://mc-host24.de/user/affiliate/3121])
82 |
83 | # DISCORD BOTS
84 |
85 | You can always Support me by inviting one of my **own Discord Bots**
86 |
87 | [](https://musicium.eu)
88 | [](https://milrato.eu)
89 |
90 | [OTHER BOTS](https://bots.musicium.eu)
91 |
92 | [| fork my repository |](https://github.com/user/repository/fork)
93 | [watch this repo |](https://github.com/user/repository/subscription)
94 | [create issue |](https://github.com/user/repository/issues/new)
95 |
96 | *Both bots are still in Development, and will always be in development, this means always uptodate and always online and always improving!*
97 |
--------------------------------------------------------------------------------
/bots/musicbot/botconfig/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "token": "",
3 | "prefix": "",
4 | "owner": "",
5 | "music_settings": {
6 | "searchSongs": false,
7 | "emitNewSongOnly": false,
8 | "highWaterMark": 67108864,
9 | "leaveOnEmpty": false,
10 | "leaveOnFinish": false,
11 | "leaveOnStop": true,
12 | "youtubeDL": true,
13 | "updateYouTubeDL": true,
14 | "youtube_cookie": "Set your Cookie here, to prevent 429! TUTORIAL https://youtu.be/qymuvhBetnM"
15 | }
16 | }
--------------------------------------------------------------------------------
/bots/musicbot/botconfig/embed.json:
--------------------------------------------------------------------------------
1 | {
2 | "color": "#3498db",
3 | "wrongcolor": "#e01e01"
4 | }
5 |
--------------------------------------------------------------------------------
/bots/musicbot/commands/Administration/embed.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | module.exports = {
5 | name: "embed",
6 | category: "Administration",
7 | aliases: ["say-embed"],
8 | cooldown: 2,
9 | useage: "embed ++ ",
10 | description: "Resends a message from u as an Embed",
11 | run: async (client, message, args, user, text, prefix) => {
12 | try{
13 | if(!args[0])
14 | return message.channel.send(new MessageEmbed()
15 | .setColor(ee.wrongcolor)
16 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
17 | .setTitle(`❌ ERROR | You didn't provided a Title, nor a Description`)
18 | .setDescription(`Usage: \`${prefix}embed ++ \``)
19 | );
20 | let userargs = args.join(" ").split("++");
21 | let title = userargs[0];
22 | let desc = userargs.slice(1).join(" ")
23 | message.channel.send(new MessageEmbed()
24 | .setColor(ee.color)
25 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
26 | .setTitle(title ? title : "")
27 | .setDescription(desc ? desc : "")
28 | )
29 | } catch (e) {
30 | console.log(String(e.stack).bgRed)
31 | return message.channel.send(new MessageEmbed()
32 | .setColor(ee.wrongcolor)
33 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
34 | .setTitle(`❌ ERROR | An error occurred`)
35 | .setDescription(`\`\`\`${e.stack}\`\`\``)
36 | );
37 | }
38 | }
39 | }
40 | /**
41 | * @INFO
42 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
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 | */
49 |
--------------------------------------------------------------------------------
/bots/musicbot/commands/Administration/say.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | module.exports = {
5 | name: "say",
6 | category: "Administration",
7 | aliases: [""],
8 | cooldown: 2,
9 | useage: "say ",
10 | description: "Resends your Text",
11 | run: async (client, message, args, user, text, prefix) => {
12 | try{
13 | if(!args[0])
14 | return message.channel.send(new MessageEmbed()
15 | .setColor(ee.wrongcolor)
16 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
17 | .setTitle(`❌ ERROR | You didn't provided a Text`)
18 | .setDescription(`Usage: \`${prefix}say \``)
19 | );
20 | message.channel.send(text);
21 | } catch (e) {
22 | console.log(String(e.stack).bgRed)
23 | return message.channel.send(new MessageEmbed()
24 | .setColor(ee.wrongcolor)
25 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
26 | .setTitle(`❌ ERROR | An error occurred`)
27 | .setDescription(`\`\`\`${e.stack}\`\`\``)
28 | );
29 | }
30 | }
31 | }
32 | /**
33 | * @INFO
34 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
35 | * @INFO
36 | * Work for Milrato Development | https://milrato.eu
37 | * @INFO
38 | * Please mention Him / Milrato Development, when using this Code!
39 | * @INFO
40 | */
41 |
--------------------------------------------------------------------------------
/bots/musicbot/commands/Information/help.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | module.exports = {
5 | name: "help",
6 | category: "Information",
7 | aliases: ["h", "commandinfo", "cmds", "cmd"],
8 | cooldown: 4,
9 | useage: "help [Command]",
10 | description: "Returns all Commmands, or one specific command",
11 | run: async (client, message, args, user, text, prefix) => {
12 | try{
13 | if (args[0]) {
14 | const embed = new MessageEmbed();
15 | const cmd = client.commands.get(args[0].toLowerCase()) || client.commands.get(client.aliases.get(args[0].toLowerCase()));
16 | if (!cmd) {
17 | return message.channel.send(embed.setColor(ee.wrongcolor).setDescription(`No Information found for command **${args[0].toLowerCase()}**`));
18 | }
19 | if (cmd.name) embed.addField("**Command name**", `\`${cmd.name}\``);
20 | if (cmd.name) embed.setTitle(`Detailed Information about:\`${cmd.name}\``);
21 | if (cmd.description) embed.addField("**Description**", `\`${cmd.description}\``);
22 | if (cmd.aliases) embed.addField("**Aliases**", `\`${cmd.aliases.map((a) => `${a}`).join("`, `")}\``);
23 | if (cmd.cooldown) embed.addField("**Cooldown**", `\`${cmd.cooldown} Seconds\``);
24 | else embed.addField("**Cooldown**", `\`1 Second\``);
25 | if (cmd.usage) {
26 | embed.addField("**Usage**", `\`${config.prefix}${cmd.usage}\``);
27 | embed.setFooter("Syntax: <> = required, [] = optional");
28 | }
29 | if (cmd.useage) {
30 | embed.addField("**Useage**", `\`${config.prefix}${cmd.useage}\``);
31 | embed.setFooter("Syntax: <> = required, [] = optional");
32 | }
33 | return message.channel.send(embed.setColor(ee.color));
34 | } else {
35 | const embed = new MessageEmbed()
36 | .setColor(ee.color)
37 | .setThumbnail(client.user.displayAvatarURL())
38 | .setTitle("HELP MENU 🔰 Commands")
39 | .setFooter(`To see command descriptions and inforamtion, type: ${config.prefix}help [CMD NAME]`, client.user.displayAvatarURL());
40 | const commands = (category) => {
41 | return client.commands.filter((cmd) => cmd.category === category).map((cmd) => `\`${cmd.name}\``);
42 | };
43 | try {
44 | for (let i = 0; i < client.categories.length; i += 1) {
45 | const current = client.categories[i];
46 | const items = commands(current);
47 | const n = 3;
48 | const result = [[], [], []];
49 | const wordsPerLine = Math.ceil(items.length / 3);
50 | for (let line = 0; line < n; line++) {
51 | for (let i = 0; i < wordsPerLine; i++) {
52 | const value = items[i + line * wordsPerLine];
53 | if (!value) continue;
54 | result[line].push(value);
55 | }
56 | }
57 | embed.addField(`**${current.toUpperCase()} [${items.length}]**`, `> ${result[0].join("\n> ")}`, true);
58 | embed.addField(`\u200b`, `${result[1].join("\n") ? result[1].join("\n") : "\u200b"}`, true);
59 | embed.addField(`\u200b`, `${result[2].join("\n") ? result[2].join("\n") : "\u200b"}`, true);
60 | }
61 | } catch (e) {
62 | console.log(String(e.stack).red);
63 | }
64 | message.channel.send(embed);
65 | }
66 | } catch (e) {
67 | console.log(String(e.stack).bgRed)
68 | return message.channel.send(new MessageEmbed()
69 | .setColor(ee.wrongcolor)
70 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
71 | .setTitle(`❌ ERROR | An error occurred`)
72 | .setDescription(`\`\`\`${e.stack}\`\`\``)
73 | );
74 | }
75 | }
76 | }
77 | /**
78 | * @INFO
79 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
80 | * @INFO
81 | * Work for Milrato Development | https://milrato.eu
82 | * @INFO
83 | * Please mention Him / Milrato Development, when using this Code!
84 | * @INFO
85 | */
86 |
--------------------------------------------------------------------------------
/bots/musicbot/commands/Information/ping.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | module.exports = {
5 | name: "ping",
6 | category: "Information",
7 | aliases: ["latency"],
8 | cooldown: 2,
9 | useage: "ping",
10 | description: "Gives you information on how fast the Bot can respond to you",
11 | run: async (client, message, args, user, text, prefix) => {
12 | try{
13 | message.channel.send(new MessageEmbed()
14 | .setColor(ee.color)
15 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
16 | .setTitle(`🏓 Pinging....`)
17 | ).then(msg=>{
18 | msg.edit(new MessageEmbed()
19 | .setColor(ee.color)
20 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
21 | .setTitle(`🏓 Ping is \`${Math.round(client.ws.ping)}ms\``)
22 | );
23 | })
24 | } catch (e) {
25 | console.log(String(e.stack).bgRed)
26 | return message.channel.send(new MessageEmbed()
27 | .setColor(ee.wrongcolor)
28 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
29 | .setTitle(`❌ ERROR | An error occurred`)
30 | .setDescription(`\`\`\`${e.stack}\`\`\``)
31 | );
32 | }
33 | }
34 | }
35 | /**
36 | * @INFO
37 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
38 | * @INFO
39 | * Work for Milrato Development | https://milrato.eu
40 | * @INFO
41 | * Please mention Him / Milrato Development, when using this Code!
42 | * @INFO
43 | */
44 |
--------------------------------------------------------------------------------
/bots/musicbot/commands/Information/uptime.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | const { duration } = require("../../handlers/functions")
5 | module.exports = {
6 | name: "uptime",
7 | category: "Information",
8 | aliases: [""],
9 | cooldown: 10,
10 | useage: "uptime",
11 | description: "Returns the duration on how long the Bot is online",
12 | run: async (client, message, args, user, text, prefix) => {
13 | try{
14 | message.channel.send(new MessageEmbed()
15 | .setColor(ee.color)
16 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
17 | .setTitle(`:white_check_mark: **${client.user.username}** is since:\n ${duration(client.uptime)} online`)
18 | );
19 | } catch (e) {
20 | console.log(String(e.stack).bgRed)
21 | return message.channel.send(new MessageEmbed()
22 | .setColor(ee.wrongcolor)
23 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
24 | .setTitle(`❌ ERROR | An error occurred`)
25 | .setDescription(`\`\`\`${e.stack}\`\`\``)
26 | );
27 | }
28 | }
29 | }
30 | /**
31 | * @INFO
32 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
33 | * @INFO
34 | * Work for Milrato Development | https://milrato.eu
35 | * @INFO
36 | * Please mention Him / Milrato Development, when using this Code!
37 | * @INFO
38 | */
39 |
--------------------------------------------------------------------------------
/bots/musicbot/commands/Music/autoplay.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | const { format } = require("../../handlers/functions")
5 | module.exports = {
6 | name: "autoplay",
7 | category: "Music",
8 | aliases: ["ap"],
9 | cooldown: 4,
10 | useage: "autoplay",
11 | description: "Toggles Autoplay",
12 | run: async (client, message, args, cmduser, text, prefix) => {
13 | try{
14 | const { channel } = message.member.voice; // { message: { member: { voice: { channel: { name: "Allgemein", members: [{user: {"username"}, {user: {"username"}] }}}}}
15 | if(!channel)
16 | return message.channel.send(new MessageEmbed()
17 | .setColor(ee.wrongcolor)
18 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
19 | .setTitle(`❌ ERROR | Please join a Channel first`)
20 | );
21 | if(!client.distube.getQueue(message))
22 | return message.channel.send(new MessageEmbed()
23 | .setColor(ee.wrongcolor)
24 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
25 | .setTitle(`❌ ERROR | I am not playing Something`)
26 | .setDescription(`The Queue is empty`)
27 | );
28 | if(client.distube.getQueue(message) && channel.id !== message.guild.me.voice.channel.id)
29 | return message.channel.send(new MessageEmbed()
30 | .setColor(ee.wrongcolor)
31 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
32 | .setTitle(`❌ ERROR | Please join **my** Channel first`)
33 | .setDescription(`Channelname: \`${message.guild.me.voice.channel.name}\``)
34 | );
35 | message.channel.send(new MessageEmbed()
36 | .setColor(ee.color)
37 | .setFooter(client.user.username + " | powered by: milrato.eu",client.user.displayAvatarURL())
38 | .setTitle(`✅ Successfully toggled Autoplay! It's now: ${client.distube.toggleAutoplay(message) ? "ON" : "OFF"}`)
39 | ).then(msg=>msg.delete({timeout: 4000}).catch(e=>console.log(e.message)))
40 | } catch (e) {
41 | console.log(String(e.stack).bgRed)
42 | return message.channel.send(new MessageEmbed()
43 | .setColor(ee.wrongcolor)
44 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
45 | .setTitle(`❌ ERROR | An error occurred`)
46 | .setDescription(`\`\`\`${e.stack}\`\`\``)
47 | );
48 | }
49 | }
50 | }
51 | /**
52 | * @INFO
53 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
54 | * @INFO
55 | * Work for Milrato Development | https://milrato.eu
56 | * @INFO
57 | * Please mention Him / Milrato Development, when using this Code!
58 | * @INFO
59 | */
60 |
--------------------------------------------------------------------------------
/bots/musicbot/commands/Music/filter.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | const filters = [
5 | "clear",
6 | "lowbass",
7 | "bassboost",
8 | "purebass",
9 | "8D",
10 | "vaporwave",
11 | "nightcore",
12 | "phaser",
13 | "tremolo",
14 | "vibrato",
15 | "reverse",
16 | "treble",
17 | "normalizer",
18 | "surrounding",
19 | "pulsator",
20 | "subboost",
21 | "karaoke",
22 | "flanger",
23 | "gate",
24 | "haas",
25 | "mcompand"
26 | ]
27 | module.exports = {
28 | name: "filter",
29 | category: "Music",
30 | aliases: ["ap"],
31 | cooldown: 4,
32 | useage: "filter ",
33 | description: "Changes the audio Filter",
34 | run: async (client, message, args, cmduser, text, prefix) => {
35 | try{
36 | const { channel } = message.member.voice; // { message: { member: { voice: { channel: { name: "Allgemein", members: [{user: {"username"}, {user: {"username"}] }}}}}
37 | if(!channel)
38 | return message.channel.send(new MessageEmbed()
39 | .setColor(ee.wrongcolor)
40 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
41 | .setTitle(`❌ ERROR | Please join a Channel first`)
42 | );
43 | if(!client.distube.getQueue(message))
44 | return message.channel.send(new MessageEmbed()
45 | .setColor(ee.wrongcolor)
46 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
47 | .setTitle(`❌ ERROR | I am not playing Something`)
48 | .setDescription(`The Queue is empty`)
49 | );
50 | if(client.distube.getQueue(message) && channel.id !== message.guild.me.voice.channel.id)
51 | return message.channel.send(new MessageEmbed()
52 | .setColor(ee.wrongcolor)
53 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
54 | .setTitle(`❌ ERROR | Please join **my** Channel first`)
55 | .setDescription(`Channelname: \`${message.guild.me.voice.channel.name}\``)
56 | );
57 | if(!args[0])
58 | return message.channel.send(new MessageEmbed()
59 | .setColor(ee.wrongcolor)
60 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
61 | .setTitle(`❌ ERROR | Please add a Filtertype`)
62 | .setDescription(`Usage: \`${prefix}filter \`\nExample: \`${prefix}filter bassboost\``)
63 | );
64 | if(!filters.join(" ").toLowerCase().split(" ").includes(args[0].toLowerCase()))
65 | return message.channel.send(new MessageEmbed()
66 | .setColor(ee.wrongcolor)
67 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
68 | .setTitle(`❌ ERROR | Not a valid Filtertype`)
69 | .setDescription(`Usage: \`${prefix}filter \`\nFilter types:\n> \`${filters.join("`, `")}\``.substr(0, 2048))
70 | );
71 | client.distube.setFilter(message, args[0]);
72 |
73 | message.channel.send(new MessageEmbed()
74 | .setColor(ee.color)
75 | .setFooter(client.user.username + " | powered by: milrato.eu",client.user.displayAvatarURL())
76 | .setTitle(`✅ Successfully set Filter to: \`${args[0]}\``)
77 | ).then(msg=>msg.delete({timeout: 4000}).catch(e=>console.log(e.message)))
78 | } catch (e) {
79 | console.log(String(e.stack).bgRed)
80 | return message.channel.send(new MessageEmbed()
81 | .setColor(ee.wrongcolor)
82 | .setFooter(client.user.username + " | powered by: milrato.eu", client.user.displayAvatarURL())
83 | .setTitle(`❌ ERROR | An error occurred`)
84 | .setDescription(`\`\`\`${e.stack}\`\`\``)
85 | );
86 | }
87 | }
88 | }
89 | /**
90 | * @INFO
91 | * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template
92 | * @INFO
93 | * Work for Milrato Development | https://milrato.eu
94 | * @INFO
95 | * Please mention Him / Milrato Development, when using this Code!
96 | * @INFO
97 | */
98 |
--------------------------------------------------------------------------------
/bots/musicbot/commands/Music/forward.js:
--------------------------------------------------------------------------------
1 | const { MessageEmbed } = require("discord.js");
2 | const config = require("../../botconfig/config.json");
3 | const ee = require("../../botconfig/embed.json");
4 | const { format } = require("../../handlers/functions")
5 | module.exports = {
6 | name: "forward",
7 | category: "Music",
8 | aliases: ["fwd"],
9 | cooldown: 4,
10 | useage: "forward