๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
Sign inDemoInstall
Socket

botato

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botato

A modern and maintainable Discord bot framework for Python.

0.1.1
PyPI
Maintainers
1

Project logo

Botato

Status GitHub Issues GitHub Pull Requests License: GPL v3

A modern, minimal, and well-documented Discord bot framework for Python. Built to fix everything the others got wrong.

๐Ÿ“ Table of Contents

๐Ÿ˜ฎ About

Botato is a Discord bot framework designed for developers who want clarity, simplicity, and reliability. Where other frameworks suffer from outdated docs, bloated abstractions, and lack of transparency, Botato provides a modern, well-typed, extensible alternative.

It includes a dynamic Gateway client, a fast REST API wrapper, JSON-driven intent management, and typed data models powered by Pydantic.

๐Ÿ Getting Started

These instructions will get you a copy of the project up and running locally for development and testing.

Prerequisites

Installing

Clone the repo and install dependencies:

git clone https://github.com/shivkun/botato.git && cd botato
poetry install

Botato is also available on PyPI and is updated with every release. You can install it using pip, pipx, or poetry.

[!NOTE]

  • pipis the standard Python package manager and is suitable for installing packages globally or in virtual environments.
  • pipx is designed for installing and running Python applications in isolated environments, making it idea for CLI tools.
  • poetry is a dependency management and packaging tool that creates virtual environments and manages dependencies for your projects.
pip install botato
pipx install botato
poetry add botato

Activate the environment:

poetry env activate

Run the example bot:

DISCORD_TOKEN=your-token-here poetry run python examples/basic_bot.py

๐Ÿ”ง Running the tests

To run the test suite:

poetry run pytest

๐ŸŽˆ Usage

Register events with decorators:

from botato.models.message import Message

@bot.event
async def on_message_create(message: Message):
    print(f"{message.author.username}: {message.content}")

๐Ÿš€ Deployment

For production usage, you can use a process manager like systemd, supervisord, or pm2 (for cross-platform Python apps).

Make sure to secure your token using environment variables or secret managers.

โ›๏ธ Built Using

โœ๏ธ Authors

๐ŸŽ‰ Acknowledgements

  • Discord API team & community docs
  • discord.py for inspiration (and showing us what not to do)
  • Contributors and early testers

Keywords

discord

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts