diff --git a/commands/edit-image/tweet.js b/commands/edit-image/tweet.js index 60ffafdc..d93bbd24 100644 --- a/commands/edit-image/tweet.js +++ b/commands/edit-image/tweet.js @@ -76,7 +76,12 @@ module.exports = class TweetCommand extends Command { ctx.fillText(lines.join('\n'), 32, 164); ctx.fillStyle = '#8899a6'; ctx.font = '18px Noto'; - ctx.fillText(moment().format('h:mm A ∙ MMMM D, YYYY'), 31, 275); + const time = moment().format('h:mm A ∙ MMMM D, YYYY ∙'); + ctx.fillText(time, 31, 275); + const timeLen = ctx.measureText(time).width; + ctx.fillStyle = '#1b95e0'; + ctx.fillText('Twitter for Xiao', 31 + timeLen + 10, 275); + ctx.fillStyle = '#8899a6'; ctx.font = '16px Noto'; ctx.fillText(this.formatNumber(replies), 87, 463); ctx.fillText(this.formatNumber(likes), 509, 463); diff --git a/package.json b/package.json index c31ae0f0..0b4409f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "114.29.1", + "version": "114.29.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/Command.js b/structures/Command.js index 53c1054d..db7eb01a 100644 --- a/structures/Command.js +++ b/structures/Command.js @@ -5,7 +5,7 @@ module.exports = class XiaoCommand extends Command { super(client, info); this.argsSingleQuotes = info.argsSingleQuotes || false; - this.throttling = info.throttling || { usages: 1, duration: 2 }; + this.throttling = info.unknown ? null : info.throttling || { usages: 1, duration: 2 }; this.uses = 0; this.credit = info.credit || []; this.credit.push({