Remove leftover comments from example
This commit is contained in:
parent
dbb3ba41d5
commit
29d5d81edc
2 changed files with 20 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
module.exports = {
|
||||
name: 'ping', // Keep it to one word
|
||||
name: 'ping',
|
||||
description: 'Just ping.',
|
||||
execute({message, client}) { //parameters you can use for netload: message, args, client, prefix
|
||||
execute({message, client}) {
|
||||
message.channel.send(`Pong.\n${client.ws.ping}ms`)
|
||||
}
|
||||
};
|
18
commands/update.js
Normal file
18
commands/update.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
module.exports = {
|
||||
name: 'update',
|
||||
description: 'pull changes from master and reload commands',
|
||||
admin: true,
|
||||
execute({message}) {
|
||||
let cmd = "git pull";
|
||||
const exec = require("child_process").exec;
|
||||
|
||||
exec(cmd, (err, stdout, stderr) => {
|
||||
process.stdout.write(stdout);
|
||||
if (err) {
|
||||
message.channel.send("Something went wrong...");
|
||||
console.log(stderr);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue