mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
public stuff
This commit is contained in:
@@ -9,7 +9,13 @@ Xiao is a Discord bot coded in JavaScript with
|
|||||||
[Commando](https://github.com/discordjs/Commando) command framework. With over
|
[Commando](https://github.com/discordjs/Commando) command framework. With over
|
||||||
300 commands, she is one of the most feature-filled bots out there.
|
300 commands, she is one of the most feature-filled bots out there.
|
||||||
|
|
||||||
## Commands (307)
|
## Invite
|
||||||
|
You can invite the bot to your server using
|
||||||
|
[this link](https://discordapp.com/oauth2/authorize?client_id=278305350804045834&scope=bot&permissions=372632641).
|
||||||
|
Be sure to also join the [home server](https://discord.gg/sbMe32W) for
|
||||||
|
information and support.
|
||||||
|
|
||||||
|
## Commands (308)
|
||||||
### Utility:
|
### Utility:
|
||||||
|
|
||||||
* **prefix**: Shows or sets the command prefix.
|
* **prefix**: Shows or sets the command prefix.
|
||||||
@@ -18,6 +24,7 @@ Xiao is a Discord bot coded in JavaScript with
|
|||||||
* **donate**: Responds with Xiao's donation links.
|
* **donate**: Responds with Xiao's donation links.
|
||||||
* **help**: Displays a list of available commands, or detailed information for a specific command.
|
* **help**: Displays a list of available commands, or detailed information for a specific command.
|
||||||
* **info**: Responds with detailed bot information.
|
* **info**: Responds with detailed bot information.
|
||||||
|
* **invite**: Responds with Xiao's invite links.
|
||||||
* **ping**: Checks the bot's ping to the Discord server.
|
* **ping**: Checks the bot's ping to the Discord server.
|
||||||
* **uptime**: Responds with how long the bot has been active.
|
* **uptime**: Responds with how long the bot has been active.
|
||||||
* **whitelist**: Removes a user from the blacklist.
|
* **whitelist**: Removes a user from the blacklist.
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ module.exports = class SubscribeCommand extends Command {
|
|||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'subscribe',
|
name: 'subscribe',
|
||||||
aliases: ['join'],
|
|
||||||
group: 'role-manage',
|
group: 'role-manage',
|
||||||
memberName: 'subscribe',
|
memberName: 'subscribe',
|
||||||
description: 'Subscribes you to the specified role.',
|
description: 'Subscribes you to the specified role.',
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ module.exports = class UnsubscribeCommand extends Command {
|
|||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'unsubscribe',
|
name: 'unsubscribe',
|
||||||
aliases: ['leave'],
|
|
||||||
group: 'role-manage',
|
group: 'role-manage',
|
||||||
memberName: 'unsubscribe',
|
memberName: 'unsubscribe',
|
||||||
description: 'Unsubscribes you from the specified role.',
|
description: 'Unsubscribes you from the specified role.',
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
const { Command } = require('discord.js-commando');
|
||||||
|
const { stripIndents } = require('common-tags');
|
||||||
|
|
||||||
|
module.exports = class InviteCommand extends Command {
|
||||||
|
constructor(client) {
|
||||||
|
super(client, {
|
||||||
|
name: 'invite',
|
||||||
|
aliases: ['join'],
|
||||||
|
group: 'util',
|
||||||
|
memberName: 'invite',
|
||||||
|
description: 'Responds with Xiao\'s invite links.',
|
||||||
|
guarded: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async run(msg) {
|
||||||
|
const invite = await this.client.generateInvite('372632641');
|
||||||
|
return msg.say(stripIndents`
|
||||||
|
To invite me to your server, use this link:
|
||||||
|
<${invite}>
|
||||||
|
|
||||||
|
Or, join my home server:
|
||||||
|
${this.client.options.invite || 'Coming soon...'}
|
||||||
|
`);
|
||||||
|
}
|
||||||
|
};
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "74.0.0",
|
"version": "75.0.0",
|
||||||
"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