From 927fcd75a2d2bf32770bc265f435836340dde244 Mon Sep 17 00:00:00 2001
From: Ayaan Gaming <64188607+ayaan1005@users.noreply.github.com>
Date: Thu, 25 Jun 2020 10:46:48 +0530
Subject: [PATCH 01/17] Create Procfile
---
Procfile | 1 +
1 file changed, 1 insertion(+)
create mode 100644 Procfile
diff --git a/Procfile b/Procfile
new file mode 100644
index 0000000..f2d1f0b
--- /dev/null
+++ b/Procfile
@@ -0,0 +1 @@
+worker: node index.js
From 17cf4bfa5f4c96c4c823bd82152d170c99eec671 Mon Sep 17 00:00:00 2001
From: Ayaan Gaming <64188607+ayaan1005@users.noreply.github.com>
Date: Thu, 25 Jun 2020 10:47:28 +0530
Subject: [PATCH 02/17] Delete leave.js
---
commands/music/leave.js | 19 -------------------
1 file changed, 19 deletions(-)
delete mode 100644 commands/music/leave.js
diff --git a/commands/music/leave.js b/commands/music/leave.js
deleted file mode 100644
index 2b42c85..0000000
--- a/commands/music/leave.js
+++ /dev/null
@@ -1,19 +0,0 @@
-module.exports = {
- config: {
- name: "leave",
- aliases: ["lev", "stop"],
- description: "Makes the bot leave the voice channel.",
- accessableby: "Member",
- category: "music",
- },
- run: async (bot, message, args) => {
- const { voiceChannel } = message.member;
- const player = bot.music.players.get(message.guild.id);
-
- if(!player) return message.channel.send("No song/s currently playing in this guild.");
- if(!voiceChannel || voiceChannel.id !== player.voiceChannel.id) return message.channel.send("You need to be in a voice channel to use the leave command.");
-
- bot.music.players.destroy(message.guild.id);
- return message.channel.send("Successfully stopped the music.")
- }
-}
\ No newline at end of file
From a0aee92518531c510741f397dda6ba456a9c341f Mon Sep 17 00:00:00 2001
From: Ayaan Gaming <64188607+ayaan1005@users.noreply.github.com>
Date: Thu, 25 Jun 2020 10:47:41 +0530
Subject: [PATCH 03/17] Delete nowplaying.js
---
commands/music/nowplaying.js | 27 ---------------------------
1 file changed, 27 deletions(-)
delete mode 100644 commands/music/nowplaying.js
diff --git a/commands/music/nowplaying.js b/commands/music/nowplaying.js
deleted file mode 100644
index fe4b5af..0000000
--- a/commands/music/nowplaying.js
+++ /dev/null
@@ -1,27 +0,0 @@
-const { Utils } = require("erela.js")
-const { RichEmbed } = require("discord.js")
-const { stripIndents } = require("common-tags")
-
-module.exports = {
- config: {
- name: "nowplaying",
- aliases: ["np", "now"],
- description: "Displays what the bot is currently playing.",
- accessableby: "Member",
- category: "music",
- },
- run: async (bot, message, args) => {
- const player = bot.music.players.get(message.guild.id);
- if (!player || !player.queue[0]) return message.channel.send("No song/s currently playing within this guild.");
- const { title, author, duration, thumbnail } = player.queue[0];
-
- const embed = new RichEmbed()
- .setAuthor("Current Song Playing.", message.author.displayAvatarURL)
- .setThumbnail(thumbnail)
- .setDescription(stripIndents`
- ${player.playing ? "▶️" : "⏸️"} **${title}** \`${Utils.formatTime(duration, true)}\` by ${author}
- `);
-
- return message.channel.send(embed);
- }
-}
\ No newline at end of file
From e2fb9b3c429b93f2b806447638c751852f6c3cc9 Mon Sep 17 00:00:00 2001
From: Ayaan Gaming <64188607+ayaan1005@users.noreply.github.com>
Date: Thu, 25 Jun 2020 10:47:53 +0530
Subject: [PATCH 04/17] Delete pause.js
---
commands/music/pause.js | 20 --------------------
1 file changed, 20 deletions(-)
delete mode 100644 commands/music/pause.js
diff --git a/commands/music/pause.js b/commands/music/pause.js
deleted file mode 100644
index bd3ddab..0000000
--- a/commands/music/pause.js
+++ /dev/null
@@ -1,20 +0,0 @@
-module.exports = {
- config: {
- name: "pause",
- aliases: ["resume"],
- description: "Makes the bot pause/resume the music currently playing.",
- accessableby: "Member",
- category: "music",
- },
- run: (bot, message, args) => {
- const player = bot.music.players.get(message.guild.id);
- if (!player) return message.channel.send("No song/s currently playing in this guild.");
-
- const { voiceChannel } = message.member;
- if (!voiceChannel || voiceChannel.id !== player.voiceChannel.id) return message.channel.send("You need to be in a voice channel to pause music.");
-
-
- player.pause(player.playing);
- return message.channel.send(`Player is now ${player.playing ? "resumed" : "paused"}.`);
- }
-}
\ No newline at end of file
From e4ea0e4ea03ca041fae8ee3132784640bfdab298 Mon Sep 17 00:00:00 2001
From: Ayaan Gaming <64188607+ayaan1005@users.noreply.github.com>
Date: Thu, 25 Jun 2020 10:48:05 +0530
Subject: [PATCH 05/17] Delete play.js
---
commands/music/play.js | 74 ------------------------------------------
1 file changed, 74 deletions(-)
delete mode 100644 commands/music/play.js
diff --git a/commands/music/play.js b/commands/music/play.js
deleted file mode 100644
index 0c492c2..0000000
--- a/commands/music/play.js
+++ /dev/null
@@ -1,74 +0,0 @@
-const { Utils } = require("erela.js")
-const { RichEmbed } = require("discord.js")
-
-module.exports = {
- config: {
- name: "play",
- description: "Play a song/playlist or search for a song from youtube",
- usage: "",
- category: "music",
- accessableby: "Member",
- aliases: ["p", "pplay"]
- },
- run: async (bot, message, args) => {
- const { voiceChannel } = message.member;
- if (!voiceChannel) return message.channel.send("You need to be in a voice channel to play music.");
-
- const permissions = voiceChannel.permissionsFor(bot.user);
- if (!permissions.has("CONNECT")) return message.channel.send("I cannot connect to your voice channel, make sure I have permission to!");
- if (!permissions.has("SPEAK")) return message.channel.send("I cannot connect to your voice channel, make sure I have permission to!");
-
- if (!args[0]) return message.channel.send("Please provide a song name or link to search.");
-
- const player = bot.music.players.spawn({
- guild: message.guild,
- textChannel: message.channel,
- voiceChannel
- });
-
- bot.music.search(args.join(" "), message.author).then(async res => {
- switch (res.loadType) {
- case "TRACK_LOADED":
- player.queue.add(res.tracks[0]);
- message.channel.send(`Enqueuing \`${res.tracks[0].title}\` \`${Utils.formatTime(res.tracks[0].duration, true)}\``);
- if (!player.playing) player.play()
- break;
-
- case "SEARCH_RESULT":
- let index = 1;
- const tracks = res.tracks.slice(0, 5);
- const embed = new RichEmbed()
- .setAuthor("Song Selection.", message.author.displayAvatarURL)
- .setDescription(tracks.map(video => `**${index++} -** ${video.title}`))
- .setFooter("Your response time closes within the next 30 seconds. Type 'cancel' to cancel the selection");
-
- await message.channel.send(embed);
-
- const collector = message.channel.createMessageCollector(m => {
- return m.author.id === message.author.id && new RegExp(`^([1-5]|cancel)$`, "i").test(m.content)
- }, { time: 30000, max: 1});
-
- collector.on("collect", m => {
- if (/cancel/i.test(m.content)) return collector.stop("cancelled")
-
- const track = tracks[Number(m.content) - 1];
- player.queue.add(track)
- message.channel.send(`Enqueuing \`${track.title}\` \`${Utils.formatTime(track.duration, true)}\``);
- if(!player.playing) player.play();
- });
-
- collector.on("end", (_, reason) => {
- if(["time", "cancelled"].includes(reason)) return message.channel.send("Cancelled selection.")
- });
- break;
-
- case "PLAYLIST_LOADED":
- res.playlist.tracks.forEach(track => player.queue.add(track));
- const duration = Utils.formatTime(res.playlist.tracks.reduce((acc, cur) => ({duration: acc.duration + cur.duration})).duration, true);
- message.channel.send(`Enqueuing \`${res.playlist.tracks.length}\` \`${duration}\` tracks in playlist \`${res.playlist.info.name}\``);
- if(!player.playing) player.play()
- break;
- }
- }).catch(err => message.channel.send(err.message))
- }
-}
\ No newline at end of file
From d253168b8f70659b9df233d692a27659df0d5f81 Mon Sep 17 00:00:00 2001
From: Ayaan Gaming <64188607+ayaan1005@users.noreply.github.com>
Date: Thu, 25 Jun 2020 10:48:35 +0530
Subject: [PATCH 06/17] Delete queue.js
---
commands/music/queue.js | 28 ----------------------------
1 file changed, 28 deletions(-)
delete mode 100644 commands/music/queue.js
diff --git a/commands/music/queue.js b/commands/music/queue.js
deleted file mode 100644
index 2004291..0000000
--- a/commands/music/queue.js
+++ /dev/null
@@ -1,28 +0,0 @@
-const { RichEmbed } = require("discord.js")
-
-module.exports = {
- config: {
- name: "queue",
- aliases: ["q", "now"],
- description: "Displays what the current queue is.",
- accessableby: "Member",
- category: "music",
- },
- run: async (bot, message, args) => {
- const player = bot.music.players.get(message.guild.id);
- if(!player || !player.queue[0]) return message.channel.send("No song currently playing in this guild.");
-
- let index = 1;
- let string = "";
-
- if(player.queue[0]) string += `__**Currently Playing**__\n ${player.queue[0].title} - **Requested by ${player.queue[0].requester.username}**. \n`;
- if(player.queue[1]) string += `__**Rest of queue:**__\n ${player.queue.slice(1, 10).map(x => `**${index++})** ${x.title} - **Requested by ${x.requester.username}**.`).join("\n")}`;
-
- const embed = new RichEmbed()
- .setAuthor(`Current Queue for ${message.guild.name}`, message.guild.iconURL)
- .setThumbnail(player.queue[0].thumbnail)
- .setDescription(string);
-
- return message.channel.send(embed);
- }
-}
\ No newline at end of file
From a849e21d58039b22e893962c7a61ddbc9d139348 Mon Sep 17 00:00:00 2001
From: Ayaan Gaming <64188607+ayaan1005@users.noreply.github.com>
Date: Thu, 25 Jun 2020 10:48:49 +0530
Subject: [PATCH 07/17] Delete skip.js
---
commands/music/skip.js | 20 --------------------
1 file changed, 20 deletions(-)
delete mode 100644 commands/music/skip.js
diff --git a/commands/music/skip.js b/commands/music/skip.js
deleted file mode 100644
index f54b1d2..0000000
--- a/commands/music/skip.js
+++ /dev/null
@@ -1,20 +0,0 @@
-module.exports = {
- config: {
- name: "skip",
- aliases: ["next"],
- description: "Skips the song currently playing.",
- accessableby: "Member",
- category: "music",
- usage: ""
- },
- run: (bot, message, args) => {
- const player = bot.music.players.get(message.guild.id);
- if(!player) return message.channel.send("No song/s currently playing in this guild.");
-
- const { voiceChannel } = message.member;
- if(!voiceChannel || voiceChannel.id !== player.voiceChannel.id) return message.channel.send("You need to be in a voice channel to use the skip command.");
-
- player.stop();
- return message.channel.send("Skipped the current song!");
- }
-}
\ No newline at end of file
From f3b926aceb15309424f7e39bf3c0403406dfad3f Mon Sep 17 00:00:00 2001
From: Ayaan Gaming <64188607+ayaan1005@users.noreply.github.com>
Date: Thu, 25 Jun 2020 10:49:02 +0530
Subject: [PATCH 08/17] Delete volume.js
---
commands/music/volume.js | 23 -----------------------
1 file changed, 23 deletions(-)
delete mode 100644 commands/music/volume.js
diff --git a/commands/music/volume.js b/commands/music/volume.js
deleted file mode 100644
index 4b7592c..0000000
--- a/commands/music/volume.js
+++ /dev/null
@@ -1,23 +0,0 @@
-module.exports = {
- config: {
- name: "volume",
- aliases: ["vol", "v"],
- description: "Adjusts the volume of the bot.",
- accessableby: "Member",
- category: "music",
- usage: ""
- },
- run: async (bot, message, args) => {
- const player = bot.music.players.get(message.guild.id);
- if (!player) return message.channel.send("No song/s currently playing within this guild.");
-
- const { voiceChannel } = message.member;
- if (!voiceChannel || voiceChannel.id !== player.voiceChannel.id) return message.channel.send("You need to be in a voice channel to adjust the volume.");
-
- if (!args[0]) return message.channel.send(`Current Volume: ${player.volume}`);
- if (Number(args[0]) <= 0 || Number(args[0]) > 100) return message.channel.send("You may only set the volume to 1-100");
-
- player.setVolume(Number(args[0]));
- return message.channel.send(`Successfully set the volume to: ${args[0]}`)
- }
-}
\ No newline at end of file
From 968e57751bb63a26cc8240c35c14aaa00fd15f1c Mon Sep 17 00:00:00 2001
From: Ayaan Gaming <64188607+ayaan1005@users.noreply.github.com>
Date: Thu, 25 Jun 2020 10:50:45 +0530
Subject: [PATCH 09/17] Update command.js
---
handlers/command.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/handlers/command.js b/handlers/command.js
index 2c71273..8e469d9 100644
--- a/handlers/command.js
+++ b/handlers/command.js
@@ -9,5 +9,5 @@ const load = dirs => {
if(pull.config.aliases) pull.config.aliases.forEach(a => bot.aliases.set(a, pull.config.name))
}
}
- ["miscellaneous", "moderation", "music", "owner", "games", "image", "economy"].forEach(x => load(x))
-}
\ No newline at end of file
+ ["miscellaneous", "moderation", "owner", "games", "image", "economy"].forEach(x => load(x))
+}
From 901b12a3e07a28441ae97fdda14af70f4dcf91b5 Mon Sep 17 00:00:00 2001
From: Ayaan Gaming <64188607+ayaan1005@users.noreply.github.com>
Date: Thu, 25 Jun 2020 10:51:20 +0530
Subject: [PATCH 10/17] Update ready.js
---
events/client/ready.js | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/events/client/ready.js b/events/client/ready.js
index 3c9914a..3dc398f 100644
--- a/events/client/ready.js
+++ b/events/client/ready.js
@@ -4,21 +4,6 @@ const { nodes } = require("../../botconfig.json")
module.exports = bot => {
console.log(`${bot.user.username} is online`);
- bot.music = new ErelaClient(bot, nodes)
- .on("nodeError", console.log)
- .on("nodeConnect", () => console.log("Successfully created a new Node."))
- .on("queueEnd", player => {
- player.textChannel.send("Queue has ended.")
- return bot.music.players.destroy(player.guild.id)
- })
- .on("trackStart", ({textChannel}, {title, duration}) => textChannel.send(`Now playing: **${title}** \`${Utils.formatTime(duration, true)}\``).then(m => m.delete(15000)));
-
- bot.levels = new Map()
- .set("none", 0.0)
- .set("low", 0.10)
- .set("medium", 0.15)
- .set("high", 0.25);
-
let activities = [ `${bot.guilds.size} servers!`, `${bot.channels.size} channels!`, `${bot.users.size} users!` ], i = 0;
setInterval(() => bot.user.setActivity(`!!help | ${activities[i++ % activities.length]}`, { type: "WATCHING" }), 15000)
-};
\ No newline at end of file
+};
From e19a997de48d4131eab38f8094b8063d4f700662 Mon Sep 17 00:00:00 2001
From: AyaanDEV <64188607+ayaan1005@users.noreply.github.com>
Date: Wed, 16 Sep 2020 00:12:46 +0530
Subject: [PATCH 11/17] Create README.md
---
README.md | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 README.md
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..bca1718
--- /dev/null
+++ b/README.md
@@ -0,0 +1,37 @@
+
+
+# Alix Beta
+
+[](https://alix.glitch.me)
+[](https://top.gg/bot/693846748824862770/vote)
+[](https://github.com/discordjs)
+[](https://www.patreon.com/alixbot)
+
+> This bot is used by more than 70,000+ Discord users and more than 90+ servers.
+
+Alix Beta Is A Open Sourced Discord Bot Can Use In Many Was Like To Make Server Full Moderation Filled, And Fun. Coded With JavaScript [Discord.js](https://discord.js.org) And [Quick.db](https://quickdb.js.org/) Made By [AyaanDEV](https://github.com/ayaan1005/)
+
Feel free to add a star ⭐ to the repository to promote the project!
+
+## Links
+
+* [Commands List](https://allix.glitch.me/commands)
+* [F.A.Q](https://discord.gg/qBbgnxs)
+* [Discord](https://alix.glitch.me/community)
+* [Github](https://github.com/ayaan1005/Alix-Beta)
+* [Dashboard](https://alix.glitch.me/dashboard)
+* [Embed Gen](https://alix.glitch.me/embed)
+
+## License
+
+Alix Beta is licensed under the GPL 3.0 license. See the file `LICENSE` for more information. If you plan to use any part of this source code in your own bot, I would be grateful if you would include some form of credit somewhere.
+
+## Security
+
+For secutiry purposes check `SECURITY.md`
+
+## Top.GG
+
+Vote Alix And Have 24h Free Credit Of Premium Usage `SOON!`
+
+
+
From 119f22770ddcc78eb022f256d03914dcfd60b20c Mon Sep 17 00:00:00 2001
From: AyaanDEV <64188607+ayaan1005@users.noreply.github.com>
Date: Wed, 16 Sep 2020 00:31:27 +0530
Subject: [PATCH 12/17] Create FUNDING.yml
---
.github/FUNDING.yml | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 .github/FUNDING.yml
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..166df95
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1,4 @@
+# These are supported funding model platforms
+
+patreon: [https://patreon.com/alixbot]
+custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
From 6e1e03ae85278b5bf1e1b3e5e8d6b7f9131d4dff Mon Sep 17 00:00:00 2001
From: AyaanDEV <64188607+ayaan1005@users.noreply.github.com>
Date: Wed, 16 Sep 2020 00:37:23 +0530
Subject: [PATCH 13/17] Create .replit
---
.replit | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 .replit
diff --git a/.replit b/.replit
new file mode 100644
index 0000000..3181441
--- /dev/null
+++ b/.replit
@@ -0,0 +1,2 @@
+language = "nodejs"
+run = "node index.js"
From 11c06cc0689434f85acd2380ca18a1530b6e01f2 Mon Sep 17 00:00:00 2001
From: AyaanDEV <64188607+ayaan1005@users.noreply.github.com>
Date: Wed, 16 Sep 2020 00:41:22 +0530
Subject: [PATCH 14/17] Update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index bca1718..8082958 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,7 @@
# Alix Beta
+[](https://repl.it/github/ayaan1005/Alix-Beta)
[](https://alix.glitch.me)
[](https://top.gg/bot/693846748824862770/vote)
[](https://github.com/discordjs)
From 635f4b6537cf8d323fdde3db6c611630142ba69b Mon Sep 17 00:00:00 2001
From: AyaanDEV <64188607+ayaan1005@users.noreply.github.com>
Date: Wed, 16 Sep 2020 11:40:14 +0530
Subject: [PATCH 15/17] Update FUNDING.yml
---
.github/FUNDING.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
index 166df95..6e01b48 100644
--- a/.github/FUNDING.yml
+++ b/.github/FUNDING.yml
@@ -1,4 +1,4 @@
# These are supported funding model platforms
-patreon: [https://patreon.com/alixbot]
+patreon: https://patreon.com/alixbot
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
From d224c85a3b5f14a3b1ceee3115b7a1a2844ffa3d Mon Sep 17 00:00:00 2001
From: AyaanDEV <64188607+ayaan1005@users.noreply.github.com>
Date: Wed, 16 Sep 2020 12:16:13 +0530
Subject: [PATCH 16/17] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 8082958..17b0788 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-
+
# Alix Beta
From f1e2f47a1d660820debc1b3879648a3292a16c96 Mon Sep 17 00:00:00 2001
From: AyaanDEV <64188607+ayaan1005@users.noreply.github.com>
Date: Sat, 14 Nov 2020 19:18:59 +0530
Subject: [PATCH 17/17] Update botconfig.json
---
botconfig.json | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/botconfig.json b/botconfig.json
index 19fc3d9..746ddb1 100644
--- a/botconfig.json
+++ b/botconfig.json
@@ -1,8 +1,11 @@
{
- "token": "Your Token",
- "prefix": "Prefix",
- "nodes": [
- { "host": "Host Name", "port": 2333, "password": "Your Pass"}
- ],
- "ownerid": "Owner Id"
+ "token": "Your Bot Token",
+ "prefix": "Bot Prefix",
+ "report_channelid": "Channel ID Where Bug Reports Comes",
+ "support_server": "Your Bots Support Server",
+ "main_ownerid": "Your Id",
+ "extra_ownerid": [
+ "Owner 1",
+ "Owner 2"
+ ]
}