Vldc Bot Save

The official VLDC telegram group bot

Project README

VLDC nyan bot ^_^

The official VLDC telegram group bot.

nyan

Build Status 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!
  • ๐Ÿ’ฐ kozula Don't argue with kozula rate!
  • ๐Ÿคซ buktopuha Let's play a game ๐Ÿคก

Modes

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

Usage via VS Code (Easy Way)

Clone repository locally and open it up via VS Code and click Open in Container. Create .env file as described below. Mongo will be available at MONGO_HOST=localhost. And you're done, you can run bot by clicking F5 or Run -> Launch Bot.

Other option is to use Codespaces from GitHub itself.

Usage

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

make up

Build local image

make 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
update               Restart bot after files changing
stop                 Stop all
down                 Down all
test                 Run tests
lint                 Run linters (black, flake8, mypy, pylint)
format               Format code (black)

help                 Show help message

Don't forget run make lint and make test before commit! For code formatting we are use black, so, just run make format to fire it :3

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.

Open Source Agenda is not affiliated with "Vldc Bot" Project. README Source: vldc-hq/vldc-bot
Stars
26
Open Issues
38
Last Commit
1 month ago
Repository
License
MIT
Homepage

Open Source Agenda Badge

Open Source Agenda Rating