No description
This repository has been archived on 2026-11-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Go 93.3%
  • Dockerfile 6.7%
Find a file
2022-03-23 14:41:13 +01:00
.gitignore add cache.json to gitignore 2022-02-16 14:02:17 +01:00
.gitlab-ci.yml add arm images 2022-03-23 14:41:13 +01:00
commands.go add option to use local commands list 2022-02-16 15:05:18 +01:00
commands.json use https instead of http for api requests 2022-02-15 10:21:12 +01:00
config.go update some logging messages 2022-02-16 14:38:09 +01:00
config.json.example add example configuration 2022-02-16 13:46:18 +01:00
Dockerfile name last stage production 2022-03-23 14:40:28 +01:00
go.mod init go module 2022-02-14 17:59:41 +01:00
go.sum init go module 2022-02-14 17:59:41 +01:00
helper.go add function to check if a file exists on the system 2022-02-16 14:02:36 +01:00
main.go add !info command 2022-03-23 14:36:59 +01:00
readCache.go update some logging messages 2022-02-16 14:38:09 +01:00
Readme.md add option to use local commands list 2022-02-16 15:05:18 +01:00
sendMeme.go move cache in seperate file 2022-02-16 14:02:46 +01:00
vars.go add option to use local commands list 2022-02-16 15:05:18 +01:00

Matrix Uff Bot written in go

This is another version of the famous uff bot for Matrix. The Bot has only one function, there is a list with commands (commands.json) and a API URL for this command. When the user sends a message in the chat beginning with the command or only the command the Bot should send the Image, given by the API in the chat. As a side feature it's also possible to directly send images from jensmemes with the !sendmeme command. To reduce the answer time the bot will cache the matrix mxc URLs in the cache.json file and will reuse the image every time. This also saves space on the Matrix server. For deployment you can use the Docker container and mount a volume to /app which contains the configuration file. A example configuration is available at config.json.example. If you want a custom commands list you can add the commandsUrl option to the config with a link to a json file containing the commands. Local command configs can be loaded with the commandsFile parameter in the config file. If you use the provided docker container and the volume at /app, please add a ./ in front of your filename, e.g. ./commands.json.