Remove leftover comments from example

This commit is contained in:
SileNce5k 2021-07-01 17:48:42 +02:00
parent dbb3ba41d5
commit 29d5d81edc
No known key found for this signature in database
GPG key ID: C507260E7F2583AD
2 changed files with 20 additions and 2 deletions

View file

@ -1,7 +1,7 @@
module.exports = { module.exports = {
name: 'ping', // Keep it to one word name: 'ping',
description: 'Just 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`) message.channel.send(`Pong.\n${client.ws.ping}ms`)
} }
}; };

18
commands/update.js Normal file
View 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);
}
});
}
};