mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 08:22:22 +02:00
Fix bugs in changelog, friendship
This commit is contained in:
@@ -103,7 +103,7 @@ module.exports = class FriendshipCommand extends Command {
|
|||||||
if (level > 69 && level < 80) return 'Good';
|
if (level > 69 && level < 80) return 'Good';
|
||||||
if (level > 79 && level < 90) return 'Great';
|
if (level > 79 && level < 90) return 'Great';
|
||||||
if (level > 89 && level < 100) return 'Amazing';
|
if (level > 89 && level < 100) return 'Amazing';
|
||||||
if (level === 100) return 'Best Friends';
|
if (level === 100) return 'Besties';
|
||||||
return '???';
|
return '???';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ module.exports = class ChangelogCommand extends Command {
|
|||||||
.setURL(`https://github.com/${XIAO_GITHUB_REPO_USERNAME}/${XIAO_GITHUB_REPO_NAME}/commits/master`)
|
.setURL(`https://github.com/${XIAO_GITHUB_REPO_USERNAME}/${XIAO_GITHUB_REPO_NAME}/commits/master`)
|
||||||
.setDescription(commits.map(commit => {
|
.setDescription(commits.map(commit => {
|
||||||
const hash = embedURL(`\`${commit.sha.slice(0, 7)}\``, commit.html_url);
|
const hash = embedURL(`\`${commit.sha.slice(0, 7)}\``, commit.html_url);
|
||||||
return `${hash} ${shorten(commit.commit.message.split('\n')[0], 50)} - ${commit.author.login}`;
|
return `${hash} ${shorten(commit.commit.message.split('\n')[0], 25)} - ${commit.author.login}`;
|
||||||
}).join('\n'));
|
}).join('\n'));
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "113.1.0",
|
"version": "113.1.1",
|
||||||
"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