Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove | ytdl for railway #4

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [Adivise]
ko_fi: nanotect
8 changes: 4 additions & 4 deletions commands/filters/3d.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "3d")
queue.filters.add("3d");

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ text: 'Turned on: 3d', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/bassboost.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "bassboost")
queue.filters.add("bassboost")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Bassboost', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
6 changes: 3 additions & 3 deletions commands/filters/earrape.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');

module.exports = {
config: {
Expand All @@ -14,11 +14,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

queue.setVolume(1000)

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setColor("#000001")
.setDescription(`\`🔊\` | **Volume charge to:** \`Earrape\``);

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/earwax.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "earwax")
queue.filters.add("earwax")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Earwax', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/echo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "echo")
queue.filters.add("echo")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Echo', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
18 changes: 11 additions & 7 deletions commands/filters/filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,15 +15,19 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

if (args[0] === "off" && queue.filters?.length) queue.setFilter(false)
else if (Object.keys(client.distube.filters).includes(args[0])) queue.setFilter(args[0])
else if (args[0]) msg.edit(`Invalid filter!`)
const filter = args[0];

const embed = new MessageEmbed()
if (filter === "off" && queue.filters.size) queue.filters.clear();
else if (Object.keys(client.distube.filters).includes(filter)) {
if (queue.filters.has(filter)) queue.filters.remove(filter)
else queue.filters.add(filter)
} else if (args[0]) msg.edit(`Invalid filter!`)

const embed = new EmbedBuilder()
.setAuthor({ name: `Currently Filter`, iconURL: `https://cdn.discordapp.com/emojis/741605543046807626.gif`})
.setDescription(`\🎲 **Filter:** \`${queue.filters.join(", ") || "Normal"}\``)
.setDescription(`\🎲 **Filter:** \`${queue.filters.names.join(", ") || "Normal"}\``)
.setFooter({ text: `🔩 **Example:** \`${client.prefix}filter 3d\``})
.setTimestamp()
.setColor('#000001');
Expand Down
8 changes: 4 additions & 4 deletions commands/filters/flanger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "flanger")
queue.filters.add("flanger")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Flanger', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/gate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "gate")
queue.filters.add("gate")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name:'Turned on: Gate', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/haas.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "haas")
queue.filters.add("haas")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Haas', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/karaoke.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "karaoke")
queue.filters.add("karaoke")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Karaoke', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/mcompand.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "mcompand")
queue.filters.add("mcompand")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Mcompand', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/nightcore.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "nightcore")
queue.filters.add("nightcore")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Nightcore', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/phaser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "phaser")
queue.filters.add("phaser")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Phaser', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/reset.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,12 +15,12 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, false)
queue.filters.clear();
queue.setVolume(50)

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Filter has been: Reseted', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/reverse.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "reverse")
queue.filters.add("reverse")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Reverse', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/surround.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "surround")
queue.filters.add("surround")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Surround', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/tremolo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "tremolo")
queue.filters.add("tremolo")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Tremolo', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
8 changes: 4 additions & 4 deletions commands/filters/vaporwave.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed } = require('discord.js');
const { EmbedBuilder } = require('discord.js');
const delay = require('delay');

module.exports = {
Expand All @@ -15,11 +15,11 @@ module.exports = {
const queue = client.distube.getQueue(message);
if (!queue) msg.edit(`There is nothing in the queue right now!`)
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit("You need to be in a same/voice channel.")

client.distube.setFilter(message, "vaporwave")
queue.filters.add("vaporwave")

const embed = new MessageEmbed()
const embed = new EmbedBuilder()
.setAuthor({ name: 'Turned on: Vaporwave', iconURL: 'https://cdn.discordapp.com/emojis/758423098885275748.gif'})
.setColor('#000001');

Expand Down
Loading