Skip to content

atinst/shieldy

This branch is 1 commit behind 1inch/shieldy:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ba53615 · Apr 20, 2022
Nov 3, 2019
Nov 4, 2020
Sep 16, 2021
May 17, 2020
Apr 20, 2022
Sep 22, 2019
Sep 16, 2021
Oct 19, 2020
May 31, 2021
Nov 7, 2018
Sep 16, 2021
Dec 21, 2020
Nov 4, 2020
Nov 4, 2020
Sep 16, 2021
Oct 18, 2020
Sep 16, 2021

Repository files navigation

@shieldy_bot

@shieldy_bot Telegram bot code

This is the code for the anti-spam Telegram bot I've built. Enjoy and feel free to reuse!

Installation

Local launch

  1. Clone this repo: git clone https://github.com/backmeupplz/shieldy
  2. Launch the mongo database locally
  3. Create .env with the environment variables listed below
  4. Run yarn install in the root folder
  5. Run yarn distribute

And you should be good to go! Feel free to fork and submit pull requests. Thanks!

Docker

  1. Clone this repo: git clone https://github.com/backmeupplz/shieldy
  2. Replace the dummy environment variables in docker-compose.yml with the ones listed below
  3. Run docker-compose up -d

Environment variables

  • TOKEN — Telegram bot token
  • MONGO— URL of the mongo database
  • ADMIN — Telegram user ID of the bot administrator
  • REPORT_CHAT_ID — Telegram chat ID of the channel where the bot should report errors
  • PREMIUM — Whether the bot should be premium or not
  • STRIPE_SECRET_KEY — Stripe secret key
  • STRIPE_SIGNING_SECRET — Stripe signing secret
  • MONTHLY_PRICE — Monthly Stripe price id of the premium
  • YEARLY_PRICE — Yearly Stripe price id of the premium
  • LIFETIME_PRICE — Lifetime Stripe price id of the premium

Also, please, consider looking at .env.sample.

Continuous integration

Any commit pushed to master gets deployed to @shieldy_bot via CI Ninja.

License

MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!

About

@shieldy_bot Telegram bot repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.9%
  • Other 1.1%