← 输入框|vulcode.com|刷新

Python Development: Discord Bots and Scripts

Python is our language for Discord bots, ops scripts, monitoring and data sync: wherever writing quickly and fixing easily matter most.

The projects we write in Python

Projects from the portfolio and the case studies, each with a short note on what this language does in it.

When we choose it, and when we do not

Where we use it

  1. 01

    Discord bots

    The VulCode bot runs on discord.py and aiohttp, and takes page screenshots and checks through Playwright. A new command is added and deployed with no build.

  2. 02

    Ops scripts

    Infrastructure diagnostics and housekeeping are Python scripts. The interpreter is on every Linux box, so a script runs as soon as it is copied to a server.

  3. 03

    Monitoring with alerts

    The FastAPI monitoring checks services and sends alerts to Discord. FastAPI describes the API with types, and the documentation comes straight from them.

  4. 04

    Services with no dependencies

    webhook-proxy gathers Discord webhooks under one address and keeps a separate queue for each, so a clogged alerts channel does not block payment notices. It runs on the standard library alone, with no pip.

  5. 05

    Sync between services

    Entries from Discord reach the DualFroz site through a short sync script. Code that joins two APIs is quickest to write and fix in Python.

  6. 06

    Tasks handled on Discord

    mailcheck handles accounts from inside Discord, with a blocklist and stats. The team deals with small matters in the chat, with no separate panel.

When we choose something else

  1. 01

    A browser interface

    We write panels and sites in TypeScript and React. Python can serve the API for such a panel, but we do not build its screens in Python.

  2. 02

    A service with very heavy traffic

    By default Python runs code on one CPU core at a time because of the GIL, its global interpreter lock. We write a service that must handle heavy traffic on a small machine in Go.

  3. 03

    A program installed at the client's

    A program on someone else's machine should not need the right Python version and packages. Go and Rust give one binary that simply runs.

  4. 04

    A core with money

    Python type hints are not checked at run time, so a wrong type slips through until the code runs. We keep billing code in Rust, where such a mistake does not compile.

  5. 05

    A bot for a JavaScript team

    The Aphrodi bots are in JavaScript and TypeScript with discord.js, because the team developing them knows that ecosystem. We choose a bot's language for the people who will change it.

  6. 06

    A phone or desktop app

    For phones we write in Kotlin and Swift, for desktops in C# with Avalonia or Rust with Tauri. Python offers neither a native interface nor simple distribution there.

Python or something else

A technology has to fit the place the code will run and the team that will take it over. The final choice is made in the quote, together with you.

Task Python Another language
Discord bot discord.py, quick to start TypeScript with discord.js is good too
A server script present on every Linux Go, when it should be one file
A browser panel no TypeScript and React
A monitoring API FastAPI with docs from the types TypeScript, when the API shares types with a panel
Syncing two APIs a short script, ready quickly more code in a compiled language
A service for heavy traffic held back by the GIL Go on every core
A program installed at the client's needs Python and packages Go or Rust, one binary

The libraries these projects stand on

From the dependency files of our repositories. With each, one sentence on what we use it for.

Our changes to other people's Python projects

7 changes in 6 projects. The maintainers of these projects reviewed our code and merged it into theirs.

  1. more-itertools/more-itertools 4,106 stars1 change
  2. Suor/funcy 3,507 stars1 change
  3. fabiocaccamo/python-benedict 1,606 stars1 change
  4. dgilland/pydash 1,449 stars1 change
  5. pydantic/pydantic-extra-types 345 stars2 changes
  6. wroberts/pytimeparse 296 stars1 change

Frequently asked questions

Answers about Python and our projects.

How much does a custom Discord bot cost?
A Discord bot starts at PLN 99 (about EUR 22) and an automation or integration in Python at PLN 999 (about EUR 220). A simple bot or integration usually takes 2-3 days.
What do you write Discord bots in: Python or JavaScript?
Both. Our VulCode bot is in Python, the Aphrodi bots in JavaScript and TypeScript. We choose the language for whoever will develop the bot.
Do you fix Python libraries?
Yes, we have changes merged into funcy, python-benedict, pydash and pydantic-extra-types among others.

Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.