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 that lets you build bots using a simple scripting system.


✨ Features

  • ⚡ Simple command system
  • 🧠 Built-in function engine
  • 🔁 Event-based execution
  • 🔌 Extensible architecture (add your own functions)
  • 📦 Easy to install via pip

🚀 Example

from tflows import FlowBot

bot = FlowBot(prefix="!")

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

bot.run("YOUR_TOKEN")

🧩 Built-in Functions

send → sends a message in chat log → prints to console

Example:

send Hello world
log This ran successfully

📦 Installation

pip install tflows.py

🛠️ How It Works

tflows.py uses a simple scripting engine that:

  • Parses command strings line by line
  • Maps commands to registered Python functions
  • Executes them asynchronously inside Discord events

📁 Project Structure

tflows/ │ ├── tflows/ │ ├── init.py │ ├── bot.py │ ├── engine.py │ ├── functions.py │ ├── builtins.py │ └── utils.py │ ├── examples/ │ └── basic_bot.py │ ├── pyproject.toml ├── README.md └── LICENSE

🧠 Why use tflows.py?

Build bots faster No complex boilerplate Focus on logic, not setup Easily extendable for automation systems

📜 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.3.tar.gz (3.1 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.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tflows-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 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.3.tar.gz
Algorithm Hash digest
SHA256 177a4182cd707a7291ce66a31cb14aba81cacce79d7b146e4868d883e8317aa1
MD5 c8cb507bd9046682323f70084ff303a0
BLAKE2b-256 5cdec3d21f8189bc80edeb7a2ed2d21bdb59de5cd24cce3f46b15fd3d3a7c4b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tflows-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 59321cca0fdfb18c03e071cf5c208bd238e690535eefb1cf727e50813513bc3c
MD5 87b1980431e8127c8d696c376e74f432
BLAKE2b-256 1ec9b1f13a257fda74eb0b904e871dd58cf1374d02f5ffe5386b291759d1573e

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