-
-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
898 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import { Command, type Context, type Lavamusic } from "../../structures/index.js"; | ||
|
||
export default class _8d extends Command { | ||
constructor(client: Lavamusic) { | ||
super(client, { | ||
name: "8d", | ||
description: { | ||
content: "cmd.8d.description", | ||
examples: ["8d"], | ||
usage: "8d", | ||
}, | ||
category: "filters", | ||
aliases: ["3d"], | ||
cooldown: 3, | ||
args: false, | ||
vote: false, | ||
player: { | ||
voice: true, | ||
dj: true, | ||
active: true, | ||
djPerm: null, | ||
}, | ||
permissions: { | ||
dev: false, | ||
client: ["SendMessages", "ReadMessageHistory", "ViewChannel", "EmbedLinks"], | ||
user: [], | ||
}, | ||
slashCommand: true, | ||
options: [], | ||
}); | ||
} | ||
|
||
public async run(client: Lavamusic, ctx: Context): Promise<any> { | ||
const player = client.manager.getPlayer(ctx.guild!.id); | ||
const filterEnabled = player.filterManager.filters.rotation; | ||
|
||
if (filterEnabled) { | ||
await player.filterManager.toggleRotation(); | ||
await ctx.sendMessage({ | ||
embeds: [ | ||
{ | ||
description: ctx.locale("cmd.8d.messages.filter_disabled"), | ||
color: this.client.color.main, | ||
}, | ||
], | ||
}); | ||
} else { | ||
await player.filterManager.toggleRotation(0.2); | ||
await ctx.sendMessage({ | ||
embeds: [ | ||
{ | ||
description: ctx.locale("cmd.8d.messages.filter_enabled"), | ||
color: this.client.color.main, | ||
}, | ||
], | ||
}); | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Project: lavamusic | ||
* Author: Appu | ||
* Main Contributor: LucasB25 | ||
* Company: Coders | ||
* Copyright (c) 2024. All rights reserved. | ||
* This code is the property of Coder and may not be reproduced or | ||
* modified without permission. For more information, contact us at | ||
* https://discord.gg/ns8CTk9J3e | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
import { ApplicationCommandOptionType } from "discord.js"; | ||
import { EQList } from "lavalink-client"; | ||
import { Command, type Context, type Lavamusic } from "../../structures/index.js"; | ||
|
||
export default class BassBoost extends Command { | ||
constructor(client: Lavamusic) { | ||
super(client, { | ||
name: "bassboost", | ||
description: { | ||
content: "cmd.bassboost.description", | ||
examples: ["bassboost high", "bassboost medium", "bassboost low", "bassboost off"], | ||
usage: "bassboost [level]", | ||
}, | ||
category: "filters", | ||
aliases: ["bb"], | ||
cooldown: 3, | ||
args: true, | ||
vote: false, | ||
player: { | ||
voice: true, | ||
dj: true, | ||
active: true, | ||
djPerm: null, | ||
}, | ||
permissions: { | ||
dev: false, | ||
client: ["SendMessages", "ReadMessageHistory", "ViewChannel", "EmbedLinks"], | ||
user: [], | ||
}, | ||
slashCommand: true, | ||
options: [ | ||
{ | ||
name: "level", | ||
description: "cmd.bassboost.options.level", | ||
type: ApplicationCommandOptionType.String, | ||
required: true, | ||
choices: [ | ||
{ name: "high", value: "high" }, | ||
{ name: "medium", value: "medium" }, | ||
{ name: "low", value: "low" }, | ||
{ name: "off", value: "off" }, | ||
], | ||
}, | ||
], | ||
}); | ||
} | ||
|
||
public async run(client: Lavamusic, ctx: Context): Promise<any> { | ||
const player = client.manager.getPlayer(ctx.guild!.id); | ||
|
||
switch (ctx.args[0]?.toLowerCase()) { | ||
case "high": | ||
await player.filterManager.setEQ(EQList.BassboostHigh); | ||
await ctx.sendMessage({ | ||
embeds: [ | ||
{ | ||
description: ctx.locale("cmd.bassboost.messages.high"), | ||
color: this.client.color.main, | ||
}, | ||
], | ||
}); | ||
break; | ||
case "medium": | ||
await player.filterManager.setEQ(EQList.BassboostMedium); | ||
await ctx.sendMessage({ | ||
embeds: [ | ||
{ | ||
description: ctx.locale("cmd.bassboost.messages.medium"), | ||
color: this.client.color.main, | ||
}, | ||
], | ||
}); | ||
break; | ||
case "low": | ||
await player.filterManager.setEQ(EQList.BassboostLow); | ||
await ctx.sendMessage({ | ||
embeds: [ | ||
{ | ||
description: ctx.locale("cmd.bassboost.messages.low"), | ||
color: this.client.color.main, | ||
}, | ||
], | ||
}); | ||
break; | ||
case "off": | ||
await player.filterManager.clearEQ(); | ||
await ctx.sendMessage({ | ||
embeds: [ | ||
{ | ||
description: ctx.locale("cmd.bassboost.messages.off"), | ||
color: this.client.color.main, | ||
}, | ||
], | ||
}); | ||
break; | ||
} | ||
} | ||
} | ||
|
||
/** | ||
* Project: lavamusic | ||
* Author: Appu | ||
* Main Contributor: LucasB25 | ||
* Company: Coders | ||
* Copyright (c) 2024. All rights reserved. | ||
* This code is the property of Coder and may not be reproduced or | ||
* modified without permission. For more information, contact us at | ||
* https://discord.gg/ns8CTk9J3e | ||
*/ |
Oops, something went wrong.