mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +02:00
Fix credit when blank, add readme data and bump version
This commit is contained in:
@@ -45,11 +45,12 @@ Xiao is a Discord bot coded in JavaScript with
|
|||||||
6. Run `npm i -g pm2` to install PM2.
|
6. Run `npm i -g pm2` to install PM2.
|
||||||
7. Run `pm2 start Xiao.js --name xiao` to run the bot.
|
7. Run `pm2 start Xiao.js --name xiao` to run the bot.
|
||||||
|
|
||||||
## Commands (342)
|
## Commands (343)
|
||||||
### Utility:
|
### Utility:
|
||||||
|
|
||||||
* **eval:** Executes JavaScript code.
|
* **eval:** Executes JavaScript code.
|
||||||
* **changelog:** Responds with the bot's latest 10 commits.
|
* **changelog:** Responds with the bot's latest 10 commits.
|
||||||
|
* **credit:** Responds with a command's credits list.
|
||||||
* **donate:** Responds with the bot's donation links.
|
* **donate:** Responds with the bot'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.
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ module.exports = class CreditCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run(msg, { command }) {
|
run(msg, { command }) {
|
||||||
|
if (!command.credit) return msg.say('This command is credited to no one. It just appeared.');
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setTitle(command.name)
|
.setTitle(command.name)
|
||||||
.setColor(0x7289DA)
|
.setColor(0x7289DA)
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "102.4.0",
|
"version": "102.5.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