Lint
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-10-24 23:59:02 +02:00
parent 58a8f87463
commit cf9e21ac56
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 3 additions and 12 deletions

View file

@ -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 <https://pnpm.io/installation> 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`

View file

@ -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";