clean up
This commit is contained in:
parent
75a3a414bf
commit
95d8c13bcb
@ -14,7 +14,7 @@ exports.run = async (bot, message, args, functions) => {
|
|||||||
var url = urlcmd
|
var url = urlcmd
|
||||||
if (url != "stop") {
|
if (url != "stop") {
|
||||||
var name = Math.floor(Math.random() * 999999);
|
var name = Math.floor(Math.random() * 999999);
|
||||||
var callback = function(exitCodes) {
|
var callback = function (exitCodes) {
|
||||||
console.log('Called Back - Converting....');
|
console.log('Called Back - Converting....');
|
||||||
|
|
||||||
let midiBuffer = fs.readFileSync('./midifiles/' + name + ".mid");
|
let midiBuffer = fs.readFileSync('./midifiles/' + name + ".mid");
|
||||||
@ -41,7 +41,7 @@ exports.run = async (bot, message, args, functions) => {
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Midi Sound Generator",
|
"name": "Midi Sound Generator",
|
||||||
"value": "Here is the sound file: \n https://midi.codingvm.codes/" + name + ".wav \n It should also be playing within the voice channel" ,
|
"value": "Here is the sound file: \n https://midi.codingvm.codes/" + name + ".wav \n It should also be playing within the voice channel",
|
||||||
"inline": true
|
"inline": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -78,7 +78,7 @@ exports.run = async (bot, message, args, functions) => {
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Midi Sound Generator",
|
"name": "Midi Sound Generator",
|
||||||
"value": "Here is the sound file: \n https://midi.codingvm.codes/" + name + ".wav \n If you join voice, I can also play it when finished." ,
|
"value": "Here is the sound file: \n https://midi.codingvm.codes/" + name + ".wav \n If you join voice, I can also play it when finished.",
|
||||||
"inline": true
|
"inline": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -113,12 +113,11 @@ exports.conf = {
|
|||||||
guildOnly: false,
|
guildOnly: false,
|
||||||
aliases: [''],
|
aliases: [''],
|
||||||
permLevel: "User"
|
permLevel: "User"
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.help = {
|
exports.help = {
|
||||||
name: "midi",
|
name: "midi",
|
||||||
category: "Troll",
|
category: "Troll",
|
||||||
description: "",
|
description: "Play a midi file from a URL - Download the wav or Listen in VC",
|
||||||
usage: "midi"
|
usage: "midi"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user