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.8.tar.gz (8.2 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.8-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file tflows-0.0.8.tar.gz.

File metadata

  • Download URL: tflows-0.0.8.tar.gz
  • Upload date:
  • Size: 8.2 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.8.tar.gz
Algorithm Hash digest
SHA256 e6ed8c194827f744403149ea4047d2bc4210f1f6d728cce6e3a1809f4656a67c
MD5 09f160dc888427e3eb997a83418a2473
BLAKE2b-256 bbb10996bdd20270d726aee4466e78cd149591df16d5f37c44c2ee407cc5ed0f

See more details on using hashes here.

File details

Details for the file tflows-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: tflows-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 272d19a03a00598b9ad2a5cca74e57d9bea5250b4ff3795638e821eaed344cdb
MD5 8aee1aa2bf892e212b9eedbbd8ab960f
BLAKE2b-256 6e44f0260cfd3ccab95cd62f4da1de7eceaaa6d237445782cde5ab19b2a36332

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