Matrix bot that generates messages based off of messages of other users using a neural network.
Go to file
array-in-a-matrix af16f42c30 Update 'README.md' 2022-08-15 20:12:25 -04:00
.gitignore ignore aitextgen folder and training files 2022-08-15 19:02:25 -04:00
LICENSE Initial commit 2022-08-15 00:50:58 -04:00
README.md Update 'README.md' 2022-08-15 20:12:25 -04:00
example.config.json created files 2022-08-15 01:10:15 -04:00
index.js fixed counter bug 2022-08-15 20:11:10 -04:00
package.json dependencies 2022-08-15 17:17:45 -04:00
pnpm-lock.yaml dependencies 2022-08-15 17:17:45 -04:00
textgen.py created files 2022-08-15 01:10:15 -04:00

README.md

text-gen-bot

Matrix bot that generates messages based off of messages of other users using a neural network.

Usage

First install the needed libraries. Then copy example.config.json and rename it config.json. Replace the items in angled brackets with their respective values of the bot account (e.g. replace <DOMAIN.TLD> with the homeserver url like https://matrix.org or https://arrayinamatrix.xyz). You can follow the instructions here to obtain the token of an account.

Once the config file has been populated with valid data, execute the index.js file (Warning: executing for the first time will be slow.).

$ node index.js
...
<some warnings show up, ignore them>
...
Client has started!

Setup

The project is split into 2 parts index.js and textgen.py. The index.js file contains the code that interacts with the user on Matrix and grabs text generated by the textgen.py file.

Install JavaSript SDK:

> pnpm add matrix-bot-sdk

Install Python module:

> pip3 install aitextgen