mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
User Agent Command
This commit is contained in:
@@ -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());
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user