User Agent Command

This commit is contained in:
Dragon Fire
2021-04-18 20:52:20 -04:00
parent 84e653111d
commit 0d4f51a325
2 changed files with 18 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
const Command = require('../../structures/Command');
const UserAgent = require('user-agents');
module.exports = class UserAgentCommand extends Command {
constructor(client) {
super(client, {
name: 'user-agent',
group: 'random-res',
memberName: 'user-agent',
description: 'Responds with a random User Agent.'
});
}
run(msg) {
return msg.reply(new UserAgent().toString());
}
};