mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
added volume control
This commit is contained in:
@@ -33,9 +33,9 @@ client.on("message", msg => {
|
||||
if (msg.content.startsWith("$play")) {
|
||||
var url = msg.content.split(" ")[1];
|
||||
|
||||
client.voiceConnection.playFile(url);
|
||||
|
||||
console.log(request.get(url).end());
|
||||
client.voiceConnection.playFile(url, {
|
||||
volume : 0.1
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -49,10 +49,6 @@ console.log("INIT");
|
||||
|
||||
client.on("debug", console.log);
|
||||
|
||||
client.on("unknown", p => {
|
||||
console.log(p);
|
||||
});
|
||||
|
||||
client.login(process.env["ds_email"], process.env["ds_password"]).catch(console.log);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user