mirror of
https://github.com/Alee14/DLAP.git
synced 2025-01-22 10:52:03 -05:00
Set status to invis, removed ms ping, changed name to stop
This commit is contained in:
parent
d211d73230
commit
69858d1a95
1 changed files with 7 additions and 5 deletions
12
bot.js
12
bot.js
|
@ -19,6 +19,7 @@ function playAudio() {
|
|||
client.on('ready', () => {
|
||||
console.log(`Logged in as ${client.user.tag}!`);
|
||||
console.log(`Prefix: ${prefix}`);
|
||||
client.user.setStatus("invisible");
|
||||
playAudio();
|
||||
});
|
||||
|
||||
|
@ -32,13 +33,14 @@ client.on('message', async msg => {
|
|||
command = command.slice(prefix.length);
|
||||
|
||||
if (command == 'ping') {
|
||||
msg.reply('Pong! ' + Math.round(client.ping) + ' ms');
|
||||
msg.reply('Pong!');
|
||||
}
|
||||
|
||||
if (command == 'poweroff') {
|
||||
console.log("Powering off...");
|
||||
client.destroy();
|
||||
process.exit(0);
|
||||
if (command == 'stop') {
|
||||
await msg.reply("Powering off...")
|
||||
console.log("Powering off...");
|
||||
client.destroy();
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
if (command == 'join') {
|
||||
|
|
Loading…
Reference in a new issue