mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 08:14:47 +02:00
tag-view, update travis node
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
sudo: false
|
sudo: false
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- '9'
|
- '10'
|
||||||
install: npm i -g eslint eslint-config-amber eslint-plugin-json
|
install: npm i -g eslint eslint-config-amber eslint-plugin-json
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ served over 10,000 servers with a uniquely devoted fanbase.
|
|||||||
* **tag-info**: Responds with detailed information on a tag in this server.
|
* **tag-info**: Responds with detailed information on a tag in this server.
|
||||||
* **tag-remove**: Removes a tag from this server.
|
* **tag-remove**: Removes a tag from this server.
|
||||||
* **tag-source**: Responds with the base markdown of a tag in this server.
|
* **tag-source**: Responds with the base markdown of a tag in this server.
|
||||||
* **tag**: Responds with a tag in this server.
|
* **tag-view**: Responds with a tag in this server.
|
||||||
|
|
||||||
### Role Management:
|
### Role Management:
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
const { Command } = require('discord.js-commando');
|
const { Command } = require('discord.js-commando');
|
||||||
const Tag = require('../../models/Tag');
|
const Tag = require('../../models/Tag');
|
||||||
|
|
||||||
module.exports = class TagCommand extends Command {
|
module.exports = class TagViewCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'tag',
|
name: 'tag-view',
|
||||||
|
aliases: ['tag', 'view-tag'],
|
||||||
group: 'tags',
|
group: 'tags',
|
||||||
memberName: 'tag',
|
memberName: 'view',
|
||||||
description: 'Responds with a tag in this server.',
|
description: 'Responds with a tag in this server.',
|
||||||
guildOnly: true,
|
guildOnly: true,
|
||||||
args: [
|
args: [
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "73.2.2",
|
"version": "73.2.3",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user