This repository has been archived on 2022-10-14. You can view files and clone it, but cannot push or open issues/pull-requests.
melonybot/commands/ping.js

18 lines
449 B
JavaScript

const { Command } = require('discord-akairo');
class PingCommand extends Command {
constructor() {
super('ping', {
aliases: ['ping'],
description: "Pings a random person on the server.",
ownerOnly: true,
typing: true
});
}
async exec(message) {
await message.channel.send(String((await message.guild.members.fetch()).random()));
}
}
module.exports = PingCommand;