🐱 a small & simple & easy to hack on kitty robot for matrix 🐱
Go to file
j3s c36be24ada Merge pull request 'add wishlist script' (#2) from jes/wishlist into main
Reviewed-on: #2
2022-12-08 23:17:32 +00:00
etc added "say" script 2022-09-17 12:20:13 -05:00
scripts add wishlist script 2022-12-08 17:13:05 -06:00
.gitignore add wishlist script 2022-12-08 17:13:05 -06:00
README.md change exit code to 42 instead of the hacky 666 2022-09-18 21:11:58 -05:00
go.mod in the beginning there was neko 2022-09-09 16:03:21 -05:00
go.sum in the beginning there was neko 2022-09-09 16:03:21 -05:00
main.go change exit code to 42 instead of the hacky 666 2022-09-18 21:11:58 -05:00

README.md

🐱 nekobot

a humble kitty roboto

how to develop

# this starts nekobot in local dev mode
go run main.go

writing scripts

write a program in bash, python, perl, etc. with a proper #! header and save it in the scripts/ directory. it will be made executable automatically when nekobot starts.

to format the output inside a monospaced text block in matrix (for ascii art, perhaps), exit your script with exit code 42. nekobot will see this and will kindly format the text for you!

connect it to matrix

first, set up proper variables for nekobot:

# use whatever user you want! can even be from different homeserver
# token can be found in element at settings -> help -> advanced -> token
# room IDs can be found under settings -> advanced -> internal room id
export NEKO_MATRIX_URL="https://matrix.cyberia.club"
export NEKO_MATRIX_USER="@yourbot:cyberia.club"
export NEKO_MATRIX_TOKEN="yourbots-token"
export NEKO_MATRIX_ROOM="!WAoLCYOOyceAxMaFYU:cyberia.club"

then, start the bot:

go run main.go