package hydrus bot

This commit is contained in:
Daniel Olsen 2021-06-04 16:34:45 +02:00
parent 5d5b6d9402
commit 4a37144a54
5 changed files with 2380 additions and 0 deletions

View File

@ -29,6 +29,7 @@ rec {
synapse-admin = pkgs.callPackage ./pkgs/synapse-admin { };
# matrix-presents = pkgs.callPackage ./pkgs/matrix-presents { };
matrix-wug = pkgs.callPackage ./pkgs/matrix-wug { };
matrix-hydrus-bot = pkgs.callPackage ./pkgs/matrix-hydrus-bot { };
matrix-appservice-minecraft = pkgs.callPackage ./pkgs/matrix-appservice-minecraft { };

View File

@ -0,0 +1,20 @@
{ lib, mkYarnPackage, fetchFromGitHub }:
mkYarnPackage {
name = "matrix-hydrus-bot";
src = fetchFromGitHub {
owner = "dali99";
repo = "matrix-hydrus-bot";
rev = "f85919a96cb6b334f1a68e16609d378dece1e604";
sha256 = "0lliw73446h0mc77n5sbp0vql7as0xvjbmqdgc55ajx76lgasj57";
};
packageJSON = ./package.json;
yarnLock = ./yarn.lock;
yarnNix = ./yarn.nix;
preInstall = ''
sed -i '1i#!/usr/bin/env node' deps/matrix-hydrus-bot/index.mjs
chmod +x deps/matrix-hydrus-bot/index.mjs
'';
}

View File

@ -0,0 +1,18 @@
{
"name": "matrix-hydrus-bot",
"version": "1.0.0",
"description": "Matrix bot that posts images straight from the hydrus api",
"bin": "index.mjs",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^0.21.1",
"matrix-bot-sdk": "^0.5.18"
},
"devDependencies": {
"@types/node": "^15.6.1"
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff