Skip to main content

A lightweight automation and Discord bot framework that lets you build bots using a simple scripting system.

Project description

⚡ tflows.py

tflows.py is a lightweight automation and Discord bot framework built around a scripting engine that lets you define bot behavior using simple text-based commands instead of large boilerplate code.

It is designed for fast bot development, easy customization, and extensible command logic.


🔗 Links


✨ Features

  • 🧩 Script-based command system (write bot logic as plain text)
  • ⚡ Async Discord integration using discord.py
  • 🔁 Event-driven execution model
  • 🧠 Built-in function registry (extensible commands)
  • 🔌 Modular architecture for custom features
  • 📦 Lightweight design with minimal setup
  • 🛠️ Debug-friendly logging system

🚀 Example

from tflows import FlowBot

bot = FlowBot(prefix="!")

bot.command(
    name="ping",
    code="""
    send pong $ping
    log command executed
    """
)

bot.run("YOUR_TOKEN")

🧩 Built-in Functions

send

Sends a message to the current Discord channel.

Example:

send Hello world

log

Prints a message to the console for debugging.

Example:

log command executed successfully

⚙️ How It Works

tflows.py executes scripts using a lightweight interpreter:

  • Parses command blocks line by line
  • Matches each line to a registered function
  • Resolves variables and context
  • Executes asynchronously inside Discord events

🧠 Why Use tflows.py?

  • Faster development than raw Discord.py
  • No boilerplate-heavy structure
  • Easy to extend with custom functions
  • Ideal for automation scripting systems
  • Keeps logic minimal and readable

📦 Installation

pip install tflows


📜 License

MIT License


⚡ Author

Made with ❤️ by Tonie

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tflows-0.0.9.dev0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tflows-0.0.9.dev0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file tflows-0.0.9.dev0.tar.gz.

File metadata

  • Download URL: tflows-0.0.9.dev0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for tflows-0.0.9.dev0.tar.gz
Algorithm Hash digest
SHA256 b41e6250f1e97896a6af85b563326d3195044c62d2c96633c656e0a0bdc1963a
MD5 a0f8aea0959f4b80f58606b5057b6136
BLAKE2b-256 8b6240ee4a3423001fadfbdbd8ac5c77b11953d72d832d6369a8e2825b7c9e4d

See more details on using hashes here.

File details

Details for the file tflows-0.0.9.dev0-py3-none-any.whl.

File metadata

  • Download URL: tflows-0.0.9.dev0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for tflows-0.0.9.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8e65bb142b299947f910eb5fa6c9db773a9ded016e1ed077a0c0094a925cf84
MD5 8564942b9aff2d4f4d93f89d64450b6e
BLAKE2b-256 86cc3dc73b211a4643ef6298d91de0ca1b4dd691ca19a41024960d505def5d0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page