mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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
|
||||
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:
|
||||
|
||||
* **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.
|
||||
* **help**: Displays a list of available commands, or detailed information for a specific command.
|
||||
* **info**: Responds with detailed bot information.
|
||||
* **invite**: Responds with Xiao's invite links.
|
||||
* **ping**: Checks the bot's ping to the Discord server.
|
||||
* **uptime**: Responds with how long the bot has been active.
|
||||
* **whitelist**: Removes a user from the blacklist.
|
||||
|
||||
@@ -4,7 +4,6 @@ module.exports = class SubscribeCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'subscribe',
|
||||
aliases: ['join'],
|
||||
group: 'role-manage',
|
||||
memberName: 'subscribe',
|
||||
description: 'Subscribes you to the specified role.',
|
||||
|
||||
@@ -4,7 +4,6 @@ module.exports = class UnsubscribeCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'unsubscribe',
|
||||
aliases: ['leave'],
|
||||
group: 'role-manage',
|
||||
memberName: 'unsubscribe',
|
||||
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",
|
||||
"version": "74.0.0",
|
||||
"version": "75.0.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user