-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(music): add more music control commands
- Loading branch information
1 parent
647b22a
commit 20c4e6e
Showing
34 changed files
with
419 additions
and
147 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import Music from "@/Modules/Music"; | ||
import { CommandOptions, INDBClient } from "@/Types"; | ||
import { BaseCommand, Context } from "@/Utils/Structures"; | ||
|
||
export default class LeaveCommand extends BaseCommand { | ||
public constructor(protected client: INDBClient) { | ||
const options: CommandOptions = { | ||
name: "leave", | ||
aliases: ["sair"], | ||
description: "Disconnect's the bot from Voice Channel", | ||
category: "🎵 Music", | ||
usage: "", | ||
disable: false, | ||
cooldown: 0, | ||
permissions: { | ||
bot: ["SendMessages"], | ||
user: ["SendMessages"], | ||
guildOnly: false, | ||
ownerOnly: false | ||
}, | ||
minArgs: 0, | ||
maxArgs: 0, | ||
nsfw: false, | ||
ndcash: 0, | ||
DM: false, | ||
slash: { | ||
type: "Sub", | ||
name: "leave" | ||
} | ||
}; | ||
super(client, options); | ||
} | ||
|
||
public async run(context: Context) { | ||
const music = new Music(); | ||
const leave = await music.Leave(context); | ||
return context.reply(leave); | ||
} | ||
} |
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,39 @@ | ||
import Music from "@/Modules/Music"; | ||
import { CommandOptions, INDBClient } from "@/Types"; | ||
import { BaseCommand, Context } from "@/Utils/Structures"; | ||
|
||
export default class PauseCommand extends BaseCommand { | ||
public constructor(protected client: INDBClient) { | ||
const options: CommandOptions = { | ||
name: "pause", | ||
aliases: ["pausar"], | ||
description: "Pauses the music Queue", | ||
category: "🎵 Music", | ||
usage: "", | ||
disable: false, | ||
cooldown: 0, | ||
permissions: { | ||
bot: ["SendMessages"], | ||
user: ["SendMessages"], | ||
guildOnly: false, | ||
ownerOnly: false | ||
}, | ||
minArgs: 0, | ||
maxArgs: 0, | ||
nsfw: false, | ||
ndcash: 0, | ||
DM: false, | ||
slash: { | ||
type: "Sub", | ||
name: "pause" | ||
} | ||
}; | ||
super(client, options); | ||
} | ||
|
||
public async run(context: Context) { | ||
const music = new Music(); | ||
const pause = await music.Pause(context); | ||
return context.reply(pause); | ||
} | ||
} |
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,39 @@ | ||
import Music from "@/Modules/Music"; | ||
import { CommandOptions, INDBClient } from "@/Types"; | ||
import { BaseCommand, Context } from "@/Utils/Structures"; | ||
|
||
export default class ResumeCommand extends BaseCommand { | ||
public constructor(protected client: INDBClient) { | ||
const options: CommandOptions = { | ||
name: "resume", | ||
aliases: ["resumir"], | ||
description: "Resumes the music Queue", | ||
category: "🎵 Music", | ||
usage: "", | ||
disable: false, | ||
cooldown: 0, | ||
permissions: { | ||
bot: ["SendMessages"], | ||
user: ["SendMessages"], | ||
guildOnly: false, | ||
ownerOnly: false | ||
}, | ||
minArgs: 0, | ||
maxArgs: 0, | ||
nsfw: false, | ||
ndcash: 0, | ||
DM: false, | ||
slash: { | ||
type: "Sub", | ||
name: "resume" | ||
} | ||
}; | ||
super(client, options); | ||
} | ||
|
||
public async run(context: Context) { | ||
const music = new Music(); | ||
const resume = await music.Resume(context); | ||
return context.reply(resume); | ||
} | ||
} |
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,36 @@ | ||
import Music from "@/Modules/Music"; | ||
import { CommandOptions, INDBClient } from "@/Types"; | ||
import { BaseCommand, Context } from "@/Utils/Structures"; | ||
|
||
export default class StopCommand extends BaseCommand { | ||
constructor(client: INDBClient) { | ||
const options: CommandOptions = { | ||
name: "stop", | ||
aliases: ["parar"], | ||
description: "Stops the music queue", | ||
category: "🎵 Music", | ||
usage: "", | ||
disable: false, | ||
cooldown: 0, | ||
permissions: { | ||
bot: ["SendMessages"], | ||
user: ["SendMessages"], | ||
guildOnly: false, | ||
ownerOnly: false | ||
}, | ||
nsfw: false, | ||
ndcash: 0, | ||
DM: false, | ||
slash: { | ||
type: "Sub", | ||
name: "stop" | ||
} | ||
}; | ||
super(client, options); | ||
} | ||
|
||
async run(context: Context) { | ||
const music = new Music(); | ||
context.reply(await music.Stop(context)); | ||
} | ||
} |
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
Oops, something went wrong.