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
|
||||
if (url != "stop") {
|
||||
var name = Math.floor(Math.random() * 999999);
|
||||
var callback = function(exitCodes) {
|
||||
var callback = function (exitCodes) {
|
||||
console.log('Called Back - Converting....');
|
||||
|
||||
let midiBuffer = fs.readFileSync('./midifiles/' + name + ".mid");
|
||||
@ -41,7 +41,7 @@ exports.run = async (bot, message, args, functions) => {
|
||||
|
||||
{
|
||||
"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
|
||||
}
|
||||
]
|
||||
@ -78,7 +78,7 @@ exports.run = async (bot, message, args, functions) => {
|
||||
|
||||
{
|
||||
"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
|
||||
}
|
||||
]
|
||||
@ -113,12 +113,11 @@ exports.conf = {
|
||||
guildOnly: false,
|
||||
aliases: [''],
|
||||
permLevel: "User"
|
||||
};
|
||||
};
|
||||
|
||||
exports.help = {
|
||||
exports.help = {
|
||||
name: "midi",
|
||||
category: "Troll",
|
||||
description: "",
|
||||
description: "Play a midi file from a URL - Download the wav or Listen in VC",
|
||||
usage: "midi"
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user