{"repo":"DavideGalilei/markinim","free":true,"listed":false,"github":"https://github.com/DavideGalilei/markinim","clone":"git clone https://github.com/DavideGalilei/markinim.git","description":"Markinim Telegram bot source code","language":"Nim","stars":107,"topics":["bot","markov-chain","nim","telegram"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Markinim This is the @MarkinimBot Telegram bot's source code. It's a bit messy (it was never meant to be open source at the beginning) so it needs a cleanup, but it works. Memory usage and performance are pretty good. It uses sqlite. Deploy For docker instructions, skip here Install required dependencies: Then create a secret.ini file which looks like this, where admin is your Telegram user id, and token is the bot token obtainable from @BotFather. You can also add a keeplast = 1500 parameter to the configuration, to avoid ram overloads by processing a maximum of keeplast messages per session (default: 1500 ) Deploy (with docker) - Copy .env.sample to .env - Edit BOT TOKEN and ADMIN ID - If needed, edit KEEP LAST (default: 1500 . Read above) - Build and run the image with docker compose up -d --build - Run the bot with docker compose up -d Old instructions ⚠️ WARNING : deprecated. Use the docker compose instructions above instead. - Build the image with docker build -t markinim . - Run the bot using docker run -itd -v=\"${pwd}/data\":/code/data:z --env-file=.env --restart=unless-stopped --name=markinimbot markinim Backups ⚠️ WARNING : This is an experimental backup script. It's not well-tested yet. Use it at your own risk. I am not responsible for any data loss. I don't know if it works. - Setup syncthing if you want to sync the backups to another device - Copy tools/backup script.example.sh to tools/backup script.sh and edit it to set the correct values for root dir , backup d","default_branch":null,"files":null,"tree":[],"storefront":"/r/DavideGalilei","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DavideGalilei/markinim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}