Skip to content

Commit

Permalink
Update 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Adivise committed Feb 21, 2023
1 parent feb29b1 commit eec866e
Show file tree
Hide file tree
Showing 85 changed files with 1,860 additions and 1,637 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Bot
TOKEN=REPLACE_HERE
PREFIX=#
EMBED_COLOR=#000001
SEARCH_ENGINE=youtube
LEAVE_EMPTY=120000
Expand Down
117 changes: 59 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

## 📑 Feature
- [x] Music Systems
- [x] Slash Commands (Base, Group, Sub)
- [x] AutoComplete (Play, Playskip, Playtop)
- [x] Custom Filters
- [x] Easy to use

Expand Down Expand Up @@ -64,7 +66,6 @@ Copy or Rename `.env.example` to `.env` and fill out the values:
```.env
# Bot
TOKEN=REPLACE_HERE
PREFIX=!
EMBED_COLOR=#000001
SEARCH_ENGINE=youtube
LEAVE_EMPTY=120000
Expand All @@ -88,70 +89,70 @@ After installation or finishes all you can use `node .` to start the bot. or `Ru

## 🔩 Features & Commands

> Note: The default prefix is '#'
> Note: The default prefix is '/'
🎶 **Music Commands!**

- Play (#play, #p, #pplay [song/url])
- Nowplaying (#nowplaying, #np, #now)
- Queue (#queue <page>)
- Repeat (#loop (current, all), #repeat (current, all))
- Loopqueue (#loopall, #lq, repeatall)
- Shuffle (#shuffle, mix)
- Volume control (#vol, #v [10 - 100])
- Pause (#pause, #pa)
- Resume (#resume, #r)
- Skip (#skip, #s)
- Skipto (#skipto, #st [position])
- Clear (#clear)
- Join (#join, #summon)
- Leave (#leave, #dc, #lev, #stop)
- Forward (#forward <second>)
- Seek (#seek <second>)
- Rewind (#rewind <second>)
- Replay (#replay)
- Search (#search [songname])
- 247 (#247)
- Previous (#previous)
- Autoplay (#autoplay)
- Move (#move [song] [position])
- Remove (#remove [song])
- PlaySkip (#playskip [song/url])
- SearchSkip (#searchskip [songname])
- PlayTop (#playtop [song/url])
- SearchTop (#searchtop [songname])
- Play (/play [song/url])
- Nowplaying (/nowplaying)
- Queue (/queue [page])
- Repeat (/loop [current, all])
- Loopqueue (/loopqueue)
- Shuffle (/shuffle)
- Volume control (/volume [1 - 100])
- Pause (/pause)
- Resume (/resume)
- Skip (/skip)
- Skipto (/skipto [position])
- Clear (/clear)
- Join (/join )
- Leave (/leave)
- Forward (/forward [seconds])
- Seek (/seek [seconds])
- Rewind (/rewind [seconds])
- Replay (/replay)
- Search (/search [songname])
- 247 (/247)
- Previous (/previous)
- Autoplay (/autoplay)
- Move (/move [song] [position])
- Remove (/remove [song])
- PlaySkip (/playskip [song/url])
- SearchSkip (/searchskip [songname])
- PlayTop (/playtop [song/url])
- SearchTop (/searchtop [songname])

**Filter Commands!**
- Bass (#bass)
- Superbass (#superbass, #sb)
- Pop (#pop)
- Treblebass (#treblebass, #tb)
- Soft (#soft)
- Earrape (#earrape, #ear)
- Equalizer (#eq <custom>)
- Speed (#speed <amount>)
- Picth (#pitch <amount>)
- Vaporwave (#vaporwave)
- Nightcore (#nightcore)
- Bassboost (#bassboost, #bb [-10 - 10])
- Rate (#rate)
- Reset (#reset)
- 3d (#3d)
- China (#china)
- Dance (#dance)
- Chipmunk (#chipmunk)
- Darthvader (#darthvader)
- DoubleTime (#doubletime)
- SlowMotion (#slowmotion)
- Tremolo (#tremolo)
- Vibrate (#vibrate)
- Vibrato (#vibrato)
- Daycore (#daycore)
- Television (#Television)
- Jazz (#jazz)
- Bass (/bass)
- Superbass (/superbass)
- Pop (/pop)
- Treblebass (/treblebass)
- Soft (/soft)
- Earrape (/earrape)
- Equalizer (/equalizer [custom])
- Speed (/speed [0 - 10])
- Picth (/pitch [0 - 10])
- Vaporwave (/vaporwave)
- Nightcore (/nightcore)
- Bassboost (/bassboost [-10 - 10])
- Rate (/rate)
- Reset (/reset)
- 3d (/3d)
- China (/china)
- Dance (/dance)
- Chipmunk (/chipmunk)
- Darthvader (/darthvader)
- DoubleTime (/doubletime)
- SlowMotion (/slowmotion)
- Tremolo (/tremolo)
- Vibrate (/vibrate)
- Vibrato (/vibrato)
- Daycore (/daycore)
- Television (/Television)
- Jazz (/jazz)

📑 **Misc Commands!**
- Help (#help, #halp [command])
- Help (/help)

</p>
</details>
34 changes: 34 additions & 0 deletions commands/Filter/3d.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const { EmbedBuilder } = require("discord.js");

module.exports = {
name: ["filter", "3d"],
description: "Turning on 3d filter",
category: "Filter",
run: async (client, interaction) => {
await interaction.reply("Loading please wait...");

const player = client.manager.players.get(interaction.guild.id);
if(!player) return interaction.editReply(`No playing in this guild!`);
const { channel } = interaction.member.voice;
if (!channel || interaction.member.voice.channel !== interaction.guild.members.me.voice.channel) return interaction.editReply(`I'm not in the same voice channel as you!`);

const data = {
op: "filters",
guildId: interaction.guild.id,
rotation: { rotationHz: 0.2 }
};

await player.send(data);

const embed = new EmbedBuilder()
.setDescription("`💠` | *Turned on:* `3d`")
.setColor(client.color);

await delay(5000);
return interaction.editReply({ content: " ", embeds: [embed] });
}
}

function delay(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
25 changes: 11 additions & 14 deletions commands/Filters/Bass.js → commands/Filter/Bass.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
const { EmbedBuilder } = require("discord.js");

module.exports = {
config: {
name: "bass",
description: "Turn on bass filter",
category: "Filters",
accessableby: "Member"
},
run: async (client, message, args) => {
const msg = await message.reply("Loading please wait...");
name: ["filter", "bass"],
description: "Turning on bass filter",
category: "Filter",
run: async (client, interaction) => {
await interaction.reply("Loading please wait...");

const player = client.manager.players.get(message.guild.id);
if(!player) return msg.edit(`No playing in this guild!`);
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit(`I'm not in the same voice channel as you!`);
const player = client.manager.players.get(interaction.guild.id);
if(!player) return interaction.editReply(`No playing in this guild!`);
const { channel } = interaction.member.voice;
if (!channel || interaction.member.voice.channel !== interaction.guild.members.me.voice.channel) return interaction.editReply(`I'm not in the same voice channel as you!`);

const data = {
op: 'filters',
guildId: message.guild.id,
guildId: interaction.guild.id,
equalizer: [
{ band: 0, gain: 0.10 },
{ band: 1, gain: 0.10 },
Expand All @@ -43,7 +40,7 @@ module.exports = {
.setColor(client.color);

await delay(5000);
return msg.edit({ content: " ", embeds: [embed] });
return interaction.editReply({ content: " ", embeds: [embed] });
}
}

Expand Down
65 changes: 34 additions & 31 deletions commands/Filters/BassBoost.js → commands/Filter/BassBoost.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
const { EmbedBuilder } = require("discord.js");
const { EmbedBuilder, ApplicationCommandOptionType } = require("discord.js");

module.exports = {
config: {
name: "bassboost",
description: "Turn on bass filter",
category: "Filters",
usage: "<integer>",
accessableby: "Member",
aliases: ["bb"]
},
run: async (client, message, args) => {
const msg = await message.reply("Loading please wait...");
name: ["filter", "bassboost"],
description: 'Turning on bassboost filter',
category: "Filter",
options: [
{
name: 'amount',
description: 'The amount of the bassboost',
type: ApplicationCommandOptionType.Integer,
required: false,
min_value: -10,
max_value: 10
}
],
run: async (client, interaction) => {
await interaction.reply("Loading please wait...");

const player = client.manager.players.get(message.guild.id);
if(!player) return msg.edit(`No playing in this guild!`);
const { channel } = message.member.voice;
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit(`I'm not in the same voice channel as you!`);
const player = client.manager.players.get(interaction.guild.id);
if(!player) return interaction.editReply(`No playing in this guild!`);
const { channel } = interaction.member.voice;
if (!channel || interaction.member.voice.channel !== interaction.guild.members.me.voice.channel) return interaction.editReply(`I'm not in the same voice channel as you!`);

if(!args[0]) {
const value = interaction.options.getInteger('amount');
if(!value) {
const data = {
op: 'filters',
guildId: message.guild.id,
guildId: interaction.guild.id,
equalizer: [
{ band: 0, gain: 0.10 },
{ band: 1, gain: 0.10 },
Expand All @@ -46,22 +52,19 @@ module.exports = {
.setColor(client.color);

await delay(5000);
return msg.edit({ content: " ", embeds: [embed] });
return interaction.editReply({ content: " ", embeds: [embed] });
} else {
if(isNaN(args[0])) return msg.edit(`Please enter a number!`);
if(args[0] > 10 || args[0] < -10) return msg.edit(`Please enter a number between -10 - 10!`);

const data = {
op: 'filters',
guildId: message.guild.id,
guildId: interaction.guild.id,
equalizer: [
{ band: 0, gain: args[0] / 10 },
{ band: 1, gain: args[0] / 10 },
{ band: 2, gain: args[0] / 10 },
{ band: 3, gain: args[0] / 10 },
{ band: 4, gain: args[0] / 10 },
{ band: 5, gain: args[0] / 10 },
{ band: 6, gain: args[0] / 10 },
{ band: 0, gain: value / 10 },
{ band: 1, gain: value / 10 },
{ band: 2, gain: value / 10 },
{ band: 3, gain: value / 10 },
{ band: 4, gain: value / 10 },
{ band: 5, gain: value / 10 },
{ band: 6, gain: value / 10 },
{ band: 7, gain: 0 },
{ band: 8, gain: 0 },
{ band: 9, gain: 0 },
Expand All @@ -75,11 +78,11 @@ module.exports = {
await player.send(data);

const embed = new EmbedBuilder()
.setDescription(`\`💠\` | *Turned on:* \`Bassboost\` | *Gain:* \`${args[0]}\``)
.setDescription(`\`💠\` | *Turned on:* \`Bassboost\` | *Gain:* \`${value}\``)
.setColor(client.color);

await delay(5000);
return msg.edit({ content: " ", embeds: [embed] });
return interaction.editReply({ content: " ", embeds: [embed] });
}
}
}
Expand Down
38 changes: 38 additions & 0 deletions commands/Filter/China.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const { EmbedBuilder } = require('discord.js');

module.exports = {
name: ["filter", "china"],
description: "Turning on china filter",
category: "Filter",
run: async (client, interaction) => {
await interaction.reply(`Loading please wait....`);

const player = client.manager.players.get(interaction.guild.id);
if(!player) return interaction.editReply(`No playing in this guild!`);
const { channel } = interaction.member.voice;
if (!channel || interaction.member.voice.channel !== interaction.guild.members.me.voice.channel) return interaction.editReply(`I'm not in the same voice channel as you!`);

const data = {
op: 'filters',
guildId: interaction.guild.id,
timescale: {
speed: 0.75,
pitch: 1.25,
rate: 1.25
}
}

await player.send(data);

const embed = new EmbedBuilder()
.setDescription("`💠` | *Turned on:* `China`")
.setColor(client.color);

await delay(5000);
interaction.editReply({ content: " ", embeds: [embed] });
}
};

function delay(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
Loading

0 comments on commit eec866e

Please sign in to comment.