- TypeScript 84.3%
- JavaScript 13.9%
- Dockerfile 1.8%
| src | i don’t know why the ITC is so slow in pinging their APs... | |
| .env.example | add basic bot | |
| .gitignore | add basic bot | |
| Dockerfile | fix dockerfile | |
| eslint.config.js | update dependencies & use eslint-prettier | |
| LICENSE | Initial commit | |
| package-lock.json | i don’t know why the ITC is so slow in pinging their APs... | |
| package.json | i don’t know why the ITC is so slow in pinging their APs... | |
| README.md | clarify readme | |
| rooms.json | shorten some room names | |
| tsconfig.json | update dependencies & use eslint-prettier | |
UnibibBot-2.0
Note that you need to be connected to the RWTH network or the RWTH VPN for the bot to work.
Installation
Deploy the bot with docker. Should’nt be too hard.
Otherwise (manual, nodejs required):
- Rename
.env.exampleto.envand replace the dummy token with your bot token. - Then:
$ npm i && npx tsc
$ node ./out/bot.js
Rooms
There are some default rooms in rooms.json. You can add more by following the schema. Note that collection names have to be in lower case.
On mobile phones with standard zoom, I found out that a maximum of 30 characters can be displayed in monospace formatting in a Telegram message in a group chat without producing line breaks. 36 characters for private direct messages. Depending on how many devices are connected, the available space for the room name decreases starting from 23 or 29 characters downwards for the case that both numbers have only one digit respectively.