Use arialbd in be-like-bill

This commit is contained in:
Dragon Fire
2020-01-20 11:03:52 -05:00
parent d1c97b7947
commit 75b1a07906
4 changed files with 9 additions and 11 deletions
+2 -1
View File
@@ -637,7 +637,6 @@ here.
* steam-now-playing ([Noto Font](https://www.google.com/get/noto/))
* calendar ([Calendar API](https://developers.google.com/calendar/))
* google-doodle ([Google Doodles API](https://www.google.com/doodles))
* be-like-bill ([Noto Font](https://www.google.com/get/noto/))
* dear-liberals ([Oswald Font](https://fonts.google.com/specimen/Oswald))
* demotivational ([Noto Font](https://www.google.com/get/noto/))
* gru-plan ([Noto Font](https://www.google.com/get/noto/))
@@ -771,6 +770,8 @@ here.
- [Mojang](https://www.mojang.com/)
* achievement ([Original "Minecraft" Game](https://www.minecraft.net/en-us/))
* minecraft-skin ([API, Original "Minecraft" Game](https://wiki.vg/Mojang_API))
- [Monotype](https://www.monotype.com/)
* be-like-bill ([Arial Font](https://catalog.monotype.com/family/monotype/arial))
- [Monty Hall problem](https://en.wikipedia.org/wiki/Monty_Hall_problem)
* doors (Concept)
- [MotivaShian](https://www.youtube.com/channel/UC0yDCpC_UaXEdL6Zc4715rg)
Binary file not shown.
+6 -9
View File
@@ -4,9 +4,7 @@ const { stripIndents } = require('common-tags');
const path = require('path');
const { wrapText } = require('../../util/Canvas');
const texts = require('../../assets/json/be-like-bill');
registerFont(path.join(__dirname, '..', '..', 'assets', 'fonts', 'Noto-Regular.ttf'), { family: 'Noto' });
registerFont(path.join(__dirname, '..', '..', 'assets', 'fonts', 'Noto-CJK.otf'), { family: 'Noto' });
registerFont(path.join(__dirname, '..', '..', 'assets', 'fonts', 'Noto-Emoji.ttf'), { family: 'Noto' });
registerFont(path.join(__dirname, '..', '..', 'assets', 'fonts', 'arialbd.ttf'), { family: 'Arial' });
module.exports = class BeLikeBillCommand extends Command {
constructor(client) {
@@ -29,10 +27,10 @@ module.exports = class BeLikeBillCommand extends Command {
reasonURL: 'https://github.com/gautamkrishnar/Be-Like-Bill'
},
{
name: 'Google',
url: 'https://www.google.com/',
reason: 'Noto Font',
reasonURL: 'https://www.google.com/get/noto/'
name: 'Monotype',
url: 'https://www.monotype.com/',
reason: 'Arial Font',
reasonURL: 'https://catalog.monotype.com/family/monotype/arial'
}
],
args: [
@@ -52,7 +50,7 @@ module.exports = class BeLikeBillCommand extends Command {
const canvas = createCanvas(base.width, base.height);
const ctx = canvas.getContext('2d');
ctx.drawImage(base, 0, 0);
ctx.font = '23px Noto';
ctx.font = '23px Arial Bold';
const text = await wrapText(ctx, texts[Math.floor(Math.random() * texts.length)].replace(/{{name}}/gi, name), 569);
ctx.fillText(stripIndents`
This is ${name}.
@@ -65,4 +63,3 @@ module.exports = class BeLikeBillCommand extends Command {
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'be-like-bill.png' }] });
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "110.1.0",
"version": "110.1.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {