Skip to content

Commit 1a30b57

Browse files
committed
new version
v13 support buttons menus stage channels and more commands and slashcommands
1 parent e20d25d commit 1a30b57

File tree

237 files changed

+15370
-10914
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+15370
-10914
lines changed

Diff for: Folder_structure.png

-14.5 KB
Binary file not shown.

Diff for: aha.png

-342 KB
Binary file not shown.

Diff for: application.yml

-47
This file was deleted.

Diff for: botconfig/config.json

+40-53
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,40 @@
1-
{
2-
"token": "TOKEN",
3-
"prefix": "!",
4-
5-
"clientsettings": {
6-
"nodes": [
7-
{
8-
"host": "localhost",
9-
"port": 2333,
10-
"password": "youshallnotpass"
11-
}
12-
]
13-
},
14-
15-
"spotify": {
16-
"clientSecret": "",
17-
"clientID": ""
18-
},
19-
20-
"settings": {
21-
"COMMENT": "time_delay 0 === insta leave",
22-
"progressbar_emoji": "🔶",
23-
"leaveOnEmpty_Channel" : {
24-
"enabled": true,
25-
"time_delay": 60000
26-
},
27-
"LeaveOnEmpty_Queue": {
28-
"enabled": true,
29-
"time_delay": 30000
30-
},
31-
"selfDeaf": true,
32-
"serverDeaf": true
33-
},
34-
35-
"lyricssettings": {
36-
"lyrics_finder": true, "COMMENT": "my suggestion is to use ksoft_api on true and paste in the api key u can sign up, until u get the key use lyrics_finder which is way weaker but better the nothing",
37-
"ksoft_api": {
38-
"use_this_instead": false,
39-
"api_key": ""
40-
}
41-
},
42-
43-
44-
"ownerIDS": ["442355791412854784"],
45-
46-
47-
"status": {
48-
"text": "!help | powered by milrato.eu",
49-
"type": "STREAMING", "COMMENT:": "TYPES ARE: PLAYING, STREAMING, WATCHING, LISTENING",
50-
"url": "https://twitch.tv/milratodiscordbot"
51-
}
52-
53-
}
1+
{
2+
"token": "Bot Token",
3+
4+
"prefix": "?",
5+
"ownerIDS": [
6+
"442355791412854784"
7+
],
8+
"status": {
9+
"text": "{prefix}help | played {songsplayed} Songs on {guildcount} Guilds | Support: discord.gg/milrato",
10+
"type": "PLAYING",
11+
"url": "https://twitch.tv/#"
12+
},
13+
"clientsettings": {
14+
"nodes": [
15+
{
16+
"host": "localhost",
17+
"port": 2333,
18+
"password": "youshallnotpass"
19+
}
20+
]
21+
},
22+
23+
"spotify": {
24+
"clientID": "",
25+
"clientSecret": ""
26+
},
27+
28+
29+
"settings": {
30+
"COMMENT": "time_delay 0 === insta leave",
31+
"leaveOnEmpty_Channel": {
32+
"enabled": true,
33+
"time_delay": 60000
34+
},
35+
"LeaveOnEmpty_Queue": {
36+
"enabled": true,
37+
"time_delay": 60000
38+
}
39+
}
40+
}

Diff for: botconfig/embed.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"color": "#fe6654",
33
"wrongcolor": "#e01e01",
4-
"footertext": "Lava Music | powered by milrato.eu",
5-
"footericon": "https://cdn.discordapp.com/avatars/742672021422342165/51af974ec0b81339dbf26d0c7dbe157f.webp"
4+
"footertext": "Lava Music",
5+
"footericon": "https://cdn.discordapp.com/avatars/742672021422342165/d26bfcf7495aada8ed9294d49933eb6a.png"
66
}

Diff for: botconfig/songoftheday.json

-9
This file was deleted.

Diff for: commands/⚙️ Settings/addbotchat.js

+57-57
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,77 @@
1-
const {
2-
MessageEmbed
3-
} = require(`discord.js`);
4-
const config = require(`../../botconfig/config.json`);
5-
const ee = require(`../../botconfig/embed.json`);
6-
const emoji = require(`../../botconfig/emojis.json`);
1+
const { MessageEmbed } = require(`discord.js`);
2+
const config = require(`${process.cwd()}/botconfig/config.json`);
3+
var ee = require(`${process.cwd()}/botconfig/embed.json`);
4+
const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
75
module.exports = {
8-
name: `addbotchat`,
9-
aliases: [`addbotchannel`],
10-
category: `⚙️ Settings`,
11-
description: `Let's you enable a bot only chat where the community is allowed to use commands`,
12-
usage: `addbotchat <#chat>`,
13-
memberpermissions: [`ADMINISTRATOR`],
14-
run: async (client, message, args) => {
15-
try {
6+
name: `addbotchat`,
7+
aliases: [`addbotchannel`],
8+
category: `⚙️ Settings`,
9+
description: `Let's you enable a bot only chat where the community is allowed to use commands`,
10+
usage: `addbotchat <#chat>`,
11+
memberpermissions: [`ADMINISTRATOR`],
12+
type: "bot",
13+
run: async (client, message, args, cmduser, text, prefix) => {
14+
let es = client.settings.get(message.guild.id, "embed");let ls = client.settings.get(message.guild.id, "language")
15+
try{
16+
1617
//get the channel from the Ping
17-
let channel = message.mentions.channels.first();
18+
let channel = message.mentions.channels.filter(ch=>ch.guild.id==message.guild.id).first() || message.guild.channels.cache.get(message.content.trim().split(" ")[0]);
1819
//if no channel pinged return error
1920
if (!channel)
20-
return message.channel.send(new MessageEmbed()
21-
.setColor(ee.wrongcolor)
22-
.setFooter(ee.footertext, ee.footericon)
23-
.setTitle(`${emoji.msg.ERROR} Error | Please add a Channel via ping, for example: #channel!`)
24-
);
21+
return message.reply({embeds : [new MessageEmbed()
22+
.setColor(es.wrongcolor).setFooter(es.footertext, es.footericon)
23+
.setTitle(eval(client.la[ls]["cmds"]["settings"]["addbotchat"]["variable1"]))
24+
]});
2525
//try to find it, just incase user pings channel from different server
2626
try {
27-
message.guild.channels.cache.get(channel.id)
27+
message.guild.channels.cache.get(channel.id)
2828
} catch {
29-
return message.channel.send(new MessageEmbed()
30-
.setColor(ee.wrongcolor)
31-
.setFooter(ee.footertext, ee.footericon)
32-
.setTitle(`${emoji.msg.ERROR} Error | It seems that the Channel does not exist in this Server!`)
33-
);
29+
return message.reply({embeds :[new MessageEmbed()
30+
.setColor(es.wrongcolor)
31+
.setFooter(es.footertext, es.footericon)
32+
.setTitle(eval(client.la[ls]["cmds"]["settings"]["addbotchat"]["variable2"]))
33+
]});
3434
}
3535
//if its already in the database return error
36-
if (client.settings.get(message.guild.id, `botchannel`).includes(channel.id))
37-
return message.channel.send(new MessageEmbed()
38-
.setColor(ee.wrongcolor)
39-
.setFooter(ee.footertext, ee.footericon)
40-
.setTitle(`${emoji.msg.ERROR} Error | This Channel is alerady in the List!`)
41-
);
36+
if(client.settings.get(message.guild.id,`botchannel`).includes(channel.id))
37+
return message.reply({embeds : [new MessageEmbed()
38+
.setColor(es.wrongcolor)
39+
.setFooter(es.footertext, es.footericon)
40+
.setTitle(eval(client.la[ls]["cmds"]["settings"]["addbotchat"]["variable3"]))
41+
]});
4242
//push it into the database
4343
client.settings.push(message.guild.id, channel.id, `botchannel`);
4444
//these lines create the string of the Bot Channels
4545
let leftb = ``;
46-
if (client.settings.get(message.guild.id, `botchannel`).join(``) === ``) leftb = `no Channels, aka all Channels are Bot Channels`
46+
if(client.settings.get(message.guild.id, `botchannel`).join(``) ===``) leftb = `no Channels, aka all Channels are Bot Channels`
4747
else
48-
for (let i = 0; i < client.settings.get(message.guild.id, `botchannel`).length; i++) {
49-
leftb += `<#` + client.settings.get(message.guild.id, `botchannel`)[i] + `> | `
50-
}
48+
for(let i = 0; i < client.settings.get(message.guild.id, `botchannel`).length; i++){
49+
leftb += `<#` +client.settings.get(message.guild.id, `botchannel`)[i] + `> | `
50+
}
5151
//send informational message
52-
return message.channel.send(new MessageEmbed()
53-
.setColor(ee.color)
54-
.setFooter(ee.footertext, ee.footericon)
55-
.setTitle(`${emoji.msg.SUCCESS} Success | Added the Bot-Chat \`${channel.name}\``)
56-
.setDescription(`All Bot Chats:\n> ${leftb.substr(0, leftb.length - 3)}`)
57-
);
52+
return message.reply({embeds : [new MessageEmbed()
53+
.setColor(es.color).setThumbnail(es.thumb ? es.footericon : null)
54+
.setFooter(es.footertext, es.footericon)
55+
.setTitle(eval(client.la[ls]["cmds"]["settings"]["addbotchat"]["variable4"]))
56+
.setDescription(eval(client.la[ls]["cmds"]["settings"]["addbotchat"]["variable5"]))
57+
]});
5858
} catch (e) {
59-
console.log(String(e.stack).bgRed)
60-
return message.channel.send(new MessageEmbed()
61-
.setColor(ee.wrongcolor)
62-
.setFooter(ee.footertext, ee.footericon)
63-
.setTitle(`${emoji.msg.ERROR} ERROR | An error occurred`)
64-
.setDescription(`\`\`\`${e.message}\`\`\``)
65-
);
59+
console.log(String(e.stack).grey.bgRed)
60+
return message.reply({embeds : [new MessageEmbed()
61+
.setColor(es.wrongcolor)
62+
.setFooter(es.footertext, es.footericon)
63+
.setTitle(client.la[ls].common.erroroccur)
64+
.setDescription(`\`\`\`${String(e.message ? e.message : e).substr(0, 2000)}\`\`\``)
65+
]});
6666
}
6767
}
6868
};
6969
/**
70-
* @INFO
71-
* Bot Coded by Tomato#6966 | https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js
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-
*/
70+
* @INFO
71+
* Bot Coded by Tomato#6966 | https://discord.gg/milrato
72+
* @INFO
73+
* Work for Milrato Development | https://milrato.dev
74+
* @INFO
75+
* Please mention him / Milrato Development, when using this Code!
76+
* @INFO
77+
*/

Diff for: commands/⚙️ Settings/addbotchat.js~RFd671a4.TMP

-74
This file was deleted.

0 commit comments

Comments
 (0)