teknologi-umum / captcha Goto Github PK
View Code? Open in Web Editor NEWSelf-hostable powerful yet lightweight Telegram captcha bot
License: GNU General Public License v3.0
Self-hostable powerful yet lightweight Telegram captcha bot
License: GNU General Public License v3.0
lets make this as just a captcha bot with a few functions that are also available on the C# and JS version.
Rather than just leaving the godotenv to read the .env file, we should verify it.
On the main.go file, we could put an init() function and that would call a function to verify the config. If there's a missing config, the app would throw an error.
we write often than read in redis. there's no need. use bigcache instead.
cmd
directorycmd
mod
from teknologi-umum-bot
to github.com/teknologi-umum/captcha
Since we're in the path for deprecating captcha-lite, and making it possible for others to self host their own captcha bot, we need to disable some stuff and make everything configurable using feature flag system.
Implement this:
log.Println("Bot started!")
go func() {
bot.Start()
}()
signalChan := make(chan os.Signal, 1)
signal.Notify(signalChan, syscall.SIGINT, syscall.SIGTERM)
<-signalChan
log.Println("Shutdown signal received, exiting...")
cc @artileda
Here is described that the bot can be deployed through Docker:
Yet, the reality of deploying with Docker is not that simple, we have to put the correct environment variables, preferably providing a limiter for RAM and CPU consumption. Some users that are using Docker as their main driving deployment pipeline might need that.
We also have our own container package that can be accessed here: https://github.com/orgs/teknologi-umum/packages?repo_name=captcha-lite - It might be useful to just pull the image from that registry, rather than building the image from cloning the source code.
Deploying on a format of Docker Compose might also be useful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.