---
title: "Python Development: Discord Bots and Scripts | VulCode"
description: "Discord bots, ops scripts, monitoring and data sync in Python. Projects from our repositories, screens and changes merged into Python libraries."
url: "https://vulcode.com/en/technologies/python"
lang: "en"
---

[Home](https://vulcode.com/en) [Work](https://vulcode.com/en/work) [Technologies](https://vulcode.com/en/technologies)

# 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.

[Free quote](https://vulcode.com/en/quote) [Full pricing](https://vulcode.com/en/services/pricing)

## 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.

- [**VulCode Discord bot** discord.py, aiohttp and Playwright.See the project](https://vulcode.com/en/portfolio/integrations/discord-bots)

- [**Ops scripts** Infrastructure diagnostics and housekeeping.See the project](https://vulcode.com/en/portfolio/integrations/ops-scripts)

- [**pixel-platformer** A 2D platformer.See the project](https://vulcode.com/en/portfolio/other/pixel-platformer)

- [**Monitoring** FastAPI, service checks and Discord alerts.See the project](https://vulcode.com/en/portfolio/panels/monitoring)

- [**webhook-proxy** One address instead of fourteen webhooks, a queue per webhook.See the project](https://vulcode.com/en/portfolio/integrations/webhook-proxy)

- [**DualFroz: notes sync** Entries from Discord to the site.See the project](https://vulcode.com/en/work/case-studies/dualfroz)

- **mailcheck** A Discord bot for account handling, with a blocklist and stats.

## When we choose it, and when we do not

Where we use it

- ### 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.

- ### 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.

- ### 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.

- ### 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.

- ### 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.

- ### 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

- ### 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.

- ### 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.

- ### 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.

- ### 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.

- ### 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.

- ### 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](https://vulcode.com/en/opensource). With each, one sentence on what we use it for.

- `discord.py` Discord bots

- `aiohttp` HTTP requests in bots

- `FastAPI and uvicorn` the monitoring API

- `Playwright` page screenshots and checks from a bot

## 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.

- [**more-itertools/more-itertools** 4,106 stars1 change](https://vulcode.com/en/opensource/contributions/more-itertools)

- [**Suor/funcy** 3,507 stars1 change](https://vulcode.com/en/opensource/contributions/funcy)

- [**fabiocaccamo/python-benedict** 1,606 stars1 change](https://vulcode.com/en/opensource/contributions/python-benedict)

- [**dgilland/pydash** 1,449 stars1 change](https://vulcode.com/en/opensource/contributions/pydash)

- [**pydantic/pydantic-extra-types** 345 stars2 changes](https://vulcode.com/en/opensource/contributions/pydantic-extra-types)

- [**wroberts/pytimeparse** 296 stars1 change](https://vulcode.com/en/opensource/contributions/pytimeparse)

## Services we build in Python

Each has a starting price and a free quote.

- ### [Discord bots](https://vulcode.com/en/services/discord-bots)
  Custom Discord bots, from PLN 99.

- ### [Integrations and automation](https://vulcode.com/en/services/api-integrations)
  Automation and integrations, from PLN 999.

## 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.

## Other technologies we write in

Each has its own page with projects and a comparison with the alternatives.

- ### [Rust](https://vulcode.com/en/technologies/rust)
  We write Rust where a bug costs the most: a hosting platform's core, a messenger's cryptography, a licence server and tools that run for years on other people's machines.

- ### [Go](https://vulcode.com/en/technologies/go)
  We pick Go for services that run on many machines and should need as little attention as possible: node agents, telemetry, messenger servers and networked games.

- ### [TypeScript, React and Node](https://vulcode.com/en/technologies/typescript-react-and-node)
  TypeScript is our default for everything you see in a browser: websites, client panels, stores and web apps, with Node and Next.js for their back ends.

- ### [C# and .NET](https://vulcode.com/en/technologies/csharp-and-dotnet)
  C# with Avalonia is our pick for native desktop apps on Windows, macOS and Linux, and .NET for libraries, emulators and plugins for Unity-based games.

- ### [Kotlin](https://vulcode.com/en/technologies/kotlin)
  We write native Android apps in Kotlin with Jetpack Compose, and use Kotlin away from phones too: in a database engine and a language interpreter.

- ### [Swift](https://vulcode.com/en/technologies/swift)
  We write native iPhone apps in Swift: the interface in SwiftUI, widgets in WidgetKit and notifications through APNs that arrive even when the app is closed.

- ### [Elixir](https://vulcode.com/en/technologies/elixir)
  We pick Elixir on the Erlang virtual machine for processes that must survive a neighbour's failure: request routers, streaming connections and caches.

- ### [PHP](https://vulcode.com/en/technologies/php)
  We write PHP where hosting runs: WHMCS modules, Pterodactyl themes, WordPress and WooCommerce plugins, small sites without a framework and APIs that must run on any server.

- ### [Java](https://vulcode.com/en/technologies/java)
  We write Java mainly for Minecraft plugins on Paper, Purpur and Folia.

## 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.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
