PR #24
Loading…
Reference in New Issue
No description provided.
Delete Branch "nameless/eris:pr-main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
a bunch of stuff
8ced57c175
)@ -23,0 +26,4 @@
for await (
const generation of generationStore.listBy("fromId", {
before: new Date(new Date(year, month - 1, day).getTime() + 24 * 60 * 60 * 1000),
You need to use
Date.UTC
orUTCDateMini
here. Otherwise it will return midnight but in local timezone.For example:
@ -161,3 +161,3 @@
bot.use(img2imgQuestion.middleware());
bot.command("pnginfo", pnginfoCommand);
bot.command("getprompt", pnginfoCommand);
Can we change it to
imginfo
? Also change all the function names if we do. Or leave the name as isleaving it as it is, will rename everything in future PR
@ -7,3 +3,1 @@
.map((chunk) => decode(chunk.data))
.find((textChunk) => textChunk.keyword === "parameters")
?.text;
export function getPngInfo(pngData: ArrayBuffer): string | undefined {
I don't like
as
here. How about:@ -23,3 +23,3 @@
if (document?.mime_type !== "image/png") {
if (document?.mime_type !== "image/png" && document?.mime_type !== "image/jpeg") {
await ctx.reply(
"Please send me a PNG file." +
"Please send me a PNG or JPEG file."
@ -38,3 +38,3 @@
const file = await ctx.api.getFile(document.file_id);
const buffer = await fetch(file.getUrl()).then((resp) => resp.arrayBuffer());
const params = parsePngInfo(getPngInfo(new Uint8Array(buffer)) ?? "");
const params = parsePngInfo(getPngInfo(buffer) ?? "Nothing found.", undefined, true);
Maybe split it in 3 lines:
@ -57,2 +57,3 @@
: getAdmins.data?.length === 0
? <p>No admins</p>
? (
<li className="flex flex-col gap-2 rounded-md bg-zinc-100 dark:bg-zinc-800 p-2">
li
outside oful
?@ -40,2 +40,3 @@
: getWorkers.data?.length === 0
? <p>No workers</p>
? (
<li className="flex flex-col gap-2 rounded-md bg-zinc-100 dark:bg-zinc-800 p-2">
li
withoutul