mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Fix changelog
This commit is contained in:
@@ -22,12 +22,12 @@ module.exports = class ChangelogCommand extends Command {
|
|||||||
.set({ Authorization: `Basic ${base64(`${GITHUB_USERNAME}:${GITHUB_PASSWORD}`)}` });
|
.set({ Authorization: `Basic ${base64(`${GITHUB_USERNAME}:${GITHUB_PASSWORD}`)}` });
|
||||||
const commits = body.slice(0, 10);
|
const commits = body.slice(0, 10);
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setTitle('[xiao:master] Latest 10 commits')
|
.setTitle(`[${XIAO_GITHUB_REPO_NAME}:master] Latest 10 commits`)
|
||||||
.setColor(0x7289DA)
|
.setColor(0x7289DA)
|
||||||
.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 = `[\`${commit.sha.slice(0, 7)}\`](${commit.html_url})`;
|
const hash = `[\`${commit.sha.slice(0, 7)}\`](${commit.html_url})`;
|
||||||
return `${hash} ${shorten(commit.commit.message, 50)} - ${commit.author.login}`;
|
return `${hash} ${shorten(commit.commit.message.split('\n')[0], 50)} - ${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": "85.1.0",
|
"version": "85.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