Giter Site home page Giter Site logo

vbolshakov / shieldy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 1inch/shieldy

0.0 1.0 0.0 1.07 MB

@shieldy_bot Telegram bot repository

Home Page: https://t.me/shieldy_bot

License: MIT License

Shell 0.27% JavaScript 0.72% TypeScript 98.87% Dockerfile 0.14%

shieldy's Introduction

@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!

shieldy's People

Contributors

backmeupplz avatar krboktv avatar fiveboroughs avatar dependabot[bot] avatar k06a avatar peterdavehello avatar vshashkov avatar 7rst1 avatar ali-demirtas avatar masaruhoshi avatar maxuo avatar kworr avatar tpnonthealps avatar wroadd avatar kaul1k avatar claudio4 avatar 0312birdzhang avatar upacyxou avatar trafim-uakraine avatar sams27 avatar redpenguin-validator avatar laubonghaudoi avatar freesofia avatar anon97945 avatar suburbanno avatar valerio-vaccaro avatar tomerghelber avatar tomthedragon avatar salvatorecordiano avatar paklebah avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.