Randy Marsh raffle Telegram bot
https://t.me/randymbot
- TypeScript 96.8%
- JavaScript 3.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* Run on Node 22 (Node.js Oct 2026 security release) Node 16 is EOL and gets no fixes for the Oct 21 2026 security release. Switch .nvmrc to v22 and pin the Nixpacks nixpkgs archive so the build uses nodejs_22. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Pin nixpkgs 6d514b9bf155 for Node 22.23.4 All Nixpacks apps now generate a byte-identical Nix layer, so Node 22.23.4 is compiled once on the build host and reused from Docker's layer cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Pin nixpkgs to Hydra-built release-26.05 (nodejs 22.23.4 cached) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
| .github | ||
| img | ||
| scripts | ||
| src | ||
| .env.sample | ||
| .gitignore | ||
| .nvmrc | ||
| LICENSE | ||
| nixpacks.toml | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tslint.json | ||
| yarn.lock | ||
@randymbot Telegram bot code
This is the code for the raffle Telegram bot I've built. Enjoy and feel free to reuse!
Installation and local launch
- Clone this repo:
git clone https://github.com/backmeupplz/randymbot - Launch the mongo database locally
- Create
.envwith the environment variables listed below - Run
yarn installin the root folder - Run
yarn distribute
And you should be good to go! Feel free to fork and submit pull requests. Thanks!
Environment variables
TOKEN— Telegram bot tokenUSERNAME— Telegram bot usernameMONGO— URL of the mongo database
Also, please, consider looking at .env.sample.
Continuous integration
Any commit pushed to master gets deployed to @randymbot via CI Ninja.
License
MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!
