mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
User Agent Command
This commit is contained in:
@@ -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());
|
||||
}
|
||||
};
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "135.5.0",
|
||||
"version": "135.6.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"private": true,
|
||||
|
||||
Reference in New Issue
Block a user