mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
If explode is done by the author, say "casts explosion"
This commit is contained in:
@@ -24,6 +24,6 @@ module.exports = class ExplodeCommand extends ImgurAlbumCommand {
|
|||||||
|
|
||||||
generateText(msg, user) {
|
generateText(msg, user) {
|
||||||
const noUserAuthor = msg.author.id !== user.id;
|
const noUserAuthor = msg.author.id !== user.id;
|
||||||
return `_**${msg.author.username}** explodes${noUserAuthor ? ` **${user.username}**` : ''}._`;
|
return `_**${msg.author.username}** ${noUserAuthor ? `explodes **${user.username}**` : 'casts explosion'}._`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "116.15.1",
|
"version": "116.15.2",
|
||||||
"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