User Agent Command

This commit is contained in:
lilyissillyyy
2025-07-20 01:09:41 -04:00
parent 6fc212c4bb
commit 9d68b4e573
4 changed files with 23 additions and 3 deletions
+17
View File
@@ -0,0 +1,17 @@
const Command = require('../../framework/Command');
const { UserAgent } = require('user-agents');
module.exports = class UserAgentCommand extends Command {
constructor(client) {
super(client, {
name: 'user-agent',
group: 'random-res',
description: 'Responds with a random User Agent.'
});
}
run(msg) {
const agent = new UserAgent();
return msg.say(agent.toString());
}
};