From cf9e21ac560fc6f54fd92780cdaacb06fe492ee4 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Mon, 24 Oct 2022 23:59:02 +0200 Subject: [PATCH] Lint Signed-off-by: Sam Therapy --- README.md | 14 +++----------- src/postImage.ts | 1 - 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index e90ba87..c81b5e1 100644 --- a/README.md +++ b/README.md @@ -34,27 +34,19 @@ Download prebuilt binaries from [here](https://git.froth.zone/sam/fediverse-imag ### Running from Source 1. You need to have `npm` and `nodejs` installed. - -- Node 16 or greater is required. - -2. Install `pnpm` (optional): \ + - Node 16 or greater is required. +2. Install `pnpm`: \ `corepack enable` \ - Check https://yarnpkg.com/getting-started/install for more information. - + Check for more information. 3. Clone the repository: \ `git clone https://git.froth.zone/sam/fediverse-imagebot.git` - 4. Install dependencies: \ `pnpm i` - 5. Build: \ `pnpm build` - 6. Edit the config file: \ `cp config.sample.jsonc config.jsonc` - - If you want to generate a key you can use https://git.froth.zone/sam/js-feditoken - 7. Run the bot: \ `yarn bot` diff --git a/src/postImage.ts b/src/postImage.ts index 4906e74..6ec0496 100644 --- a/src/postImage.ts +++ b/src/postImage.ts @@ -1,7 +1,6 @@ import { ReadStream } from "fs"; import generator, { Entity, Response } from "megalodon"; import { Readable } from "stream"; -import args from "./helpers/args.js"; import crashHandler from "./helpers/crashHandler.js"; import { config } from "./helpers/types.js";