update .gitignore a bit

This commit is contained in:
mehbark 2023-09-28 18:42:12 -04:00
parent 7aea375db3
commit f2f1c96ae9

View file

@ -42,6 +42,7 @@ function delete_message(id: string) {
} }
client.on(Events.MessageCreate, (message) => { client.on(Events.MessageCreate, (message) => {
if (message.channel.name != "effector") return;
add_message({ add_message({
author: message.author.username, author: message.author.username,
content: message.content, content: message.content,
@ -74,8 +75,9 @@ function draw_message(x: number, y: number, message: Message) {
ctx.fillStyle = "#FFAB5C"; ctx.fillStyle = "#FFAB5C";
ctx.fillText(message.author, x, y); ctx.fillText(message.author, x, y);
ctx.fillStyle = default_fill; ctx.fillStyle = default_fill;
console.log(message);
ctx.fillText( ctx.fillText(
message.content, message.content == "" ? "[empty message]" : message.content,
x + ctx.measureText(message.author).width + 5, x + ctx.measureText(message.author).width + 5,
y, y,
); );