Matrix bot that generates messages based off of messages of other users using a neural network.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
array-in-a-matrix c40df8e1e9 ignore AI related files 8 months ago
.gitignore ignore AI related files 8 months ago
LICENSE Initial commit 8 months ago
README.md Update 'README.md' 8 months ago
example.config.json renamed var 8 months ago
index.js added new line char 8 months ago
package.json dependencies 8 months ago
pnpm-lock.yaml dependencies 8 months ago
textgen.py created files 8 months ago

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://matrix.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 sends text generated by the textgen.py file.

Install JavaSript SDK:

> pnpm add matrix-bot-sdk

Install Python module:

> pip3 install aitextgen