More music/sound work
This commit is contained in:
parent
59c2c230fb
commit
8e5c0aa2ac
17 changed files with 26 additions and 21 deletions
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
return soundPlayer.play("./assets/audio/boi.ogg", message);
|
||||
return await soundPlayer.play("./assets/audio/boi.ogg", message);
|
||||
};
|
||||
|
||||
exports.aliases = ["boy", "neutron", "hugh"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
return soundPlayer.play("./assets/audio/boom.ogg", message);
|
||||
return await soundPlayer.play("./assets/audio/boom.ogg", message);
|
||||
};
|
||||
|
||||
exports.aliases = ["thud", "vine"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
return soundPlayer.play("./assets/audio/bruh.ogg", message);
|
||||
return await soundPlayer.play("./assets/audio/bruh.ogg", message);
|
||||
};
|
||||
|
||||
exports.aliases = ["bro"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
return soundPlayer.play("./assets/audio/explosion.ogg", message);
|
||||
return await soundPlayer.play("./assets/audio/explosion.ogg", message);
|
||||
};
|
||||
|
||||
exports.category = 6;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
return soundPlayer.play("./assets/audio/ping.ogg", message);
|
||||
return await soundPlayer.play("./assets/audio/ping.ogg", message);
|
||||
};
|
||||
|
||||
exports.aliases = ["notification", "notif"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
return soundPlayer.play("./assets/audio/fart.ogg", message);
|
||||
return await soundPlayer.play("./assets/audio/fart.ogg", message);
|
||||
};
|
||||
|
||||
exports.aliases = ["toot"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
return soundPlayer.play("./assets/audio/fbi.ogg", message);
|
||||
return await soundPlayer.play("./assets/audio/fbi.ogg", message);
|
||||
};
|
||||
|
||||
exports.aliases = ["openup"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
return soundPlayer.play("./assets/audio/mail.ogg", message);
|
||||
return await soundPlayer.play("./assets/audio/mail.ogg", message);
|
||||
};
|
||||
|
||||
exports.aliases = ["yougotmail", "youvegotmail", "aol"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
soundPlayer.playing(message);
|
||||
await soundPlayer.playing(message);
|
||||
};
|
||||
|
||||
exports.aliases = ["playing", "np"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
return soundPlayer.play("./assets/audio/oof.ogg", message);
|
||||
return await soundPlayer.play("./assets/audio/oof.ogg", message);
|
||||
};
|
||||
|
||||
exports.aliases = ["roblox", "commitdie"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
soundPlayer.pause(message);
|
||||
await soundPlayer.pause(message);
|
||||
};
|
||||
|
||||
exports.aliases = ["resume"];
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
const urlRegex = /(?:\w+:)?\/\/(\S+)/;
|
||||
const searchRegex = /^(sc|yt)search:/;
|
||||
|
||||
exports.run = async (message, args) => {
|
||||
if (!args[0]) return `${message.author.mention}, you need to provide what you want to play!`;
|
||||
soundPlayer.play(encodeURIComponent(args.join(" ").trim()), message, true);
|
||||
const query = args.join(" ").trim();
|
||||
const search = urlRegex.test(query) ? query : (searchRegex.test(query) ? query : `ytsearch:${query}`);
|
||||
await soundPlayer.play(encodeURIComponent(search), message, true);
|
||||
};
|
||||
|
||||
exports.aliases = ["p"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
soundPlayer.queue(message);
|
||||
await soundPlayer.queue(message);
|
||||
};
|
||||
|
||||
exports.aliases = ["q"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
soundPlayer.skip(message);
|
||||
await soundPlayer.skip(message);
|
||||
};
|
||||
|
||||
exports.category = 7;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
soundPlayer.stop(message);
|
||||
await soundPlayer.stop(message);
|
||||
};
|
||||
|
||||
exports.aliases = ["disconnect"];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const soundPlayer = require("../utils/soundplayer.js");
|
||||
|
||||
exports.run = async (message) => {
|
||||
return soundPlayer.play("./assets/audio/winxp.ogg", message);
|
||||
return await soundPlayer.play("./assets/audio/winxp.ogg", message);
|
||||
};
|
||||
|
||||
exports.aliases = ["windows", "xp"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue