Giter Site home page Giter Site logo

dmitryplyaskin / vldc-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vldc-hq/vldc-bot

0.0 0.0 0.0 11.73 MB

The official VLDC telegram group bot

Home Page: https://vldc.org

License: MIT License

Dockerfile 0.70% Makefile 1.61% Python 97.39% Shell 0.30%

vldc-bot's Introduction

VLDC nyan bot ^_^

The official VLDC telegram group bot.

nyan

Build Status docker_hub Maintainability

Skills

  • ๐Ÿ˜ผ core โ€“ core
  • ๐Ÿ˜ผ version โ€“ show this message
  • ๐Ÿ˜ป still โ€“ do u remember it?
  • ๐Ÿ˜พ uwu โ€“ don't uwu!
  • ๐Ÿคญ mute โ€“ mute user for N minutes
  • ๐Ÿ”ซ roll โ€“ life is so cruel... isn't it?
  • โš”๏ธ banme โ€“ commit sudoku
  • ๐Ÿ”ช ban โ€“ ban! ban! ban!
  • ๐ŸŽ„ tree โ€“ advent of code time!
  • โ›”๐Ÿคฌ coc โ€“ VLDC/GDG VL Code of Conduct
  • ๐Ÿ›  more than 70k? โ€“ try to hire!
  • ๐Ÿ’ป got sk1lzz? โ€“ put them to use!
  • ๐Ÿ‘ smell like PRISM? nononono!

Modes

  • ๐Ÿ˜ผ smile mode โ€“ allow only stickers in the chat
  • ๐Ÿ›  since mode โ€“ under construction
  • ๐Ÿงผ towel mode โ€“ anti bot
  • ๐Ÿ™ƒ fools mode โ€“ what? not again!
  • ๐Ÿฆ  covid mode โ€“ fun and gamez
  • ๐Ÿคซ nastya mode โ€“ stop. just stop

Usage

Setup your env vars in example.env and rename it to .env. Don't push .env to public repos!

docker-compose up -d && docker-compose logs -f --tail=10

Build local image

docker-compose -f docker-compose-dev.yml build

Developing

Create test Telegram bot, and store TOKEN and chat id, you will need it for developing.

User make to up dev services:

Usage: make [task]

task                 help
------               ----
build                Build all
up                   Up All and show logs
stop                 Stop all
down                 Down all
test                 Run tests
lint                 Run linters (flake8, mypy)
                     
help                 Show help message

Setting Up Debugger in VS Code

Create launch.json under your .vscode directory in project, add the following content onto it:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Docker Python",
            "type": "python",
            "request": "attach",
            "port": 5678,
            "host": "localhost",
            "pathMappings": [
                {
                    "localRoot": "${workspaceFolder}",
                    "remoteRoot": "/app"
                }
            ],
        }
    ]
}

Also, put DEBUGGER=True into your .env file. After that you can do debugging with VS Code, by running containerized application and hitting Run -> Start Debugging or F5 button.

Contributing

Bug reports, bug fixes and new features are always welcome. Please open issues and submit pull requests for any new code.

vldc-bot's People

Contributors

egregors avatar c-pro avatar getjump avatar zemlya25 avatar dmitryplyaskin avatar moonbasedelta avatar alexandersutul avatar korenskoy avatar lamak avatar grawl 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.