Skip to main content

Simple automation and bot framework inspired by aoi.js style syntax

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.2.tar.gz (2.9 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.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tflows-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 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.2.tar.gz
Algorithm Hash digest
SHA256 9682604f4f8d1e6c6dd86d18dfb697873e36976deecd7f308864b64cd7e926ad
MD5 0f8e9baa367359103aa2a19415711cb6
BLAKE2b-256 568d12b8253220287bf69a00d67279894b2fc363d3db0892a52728f72a065ba1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tflows-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca6f87e2993ca007ded2888284a17beb502822ee7a1d4dc37a940bfe7bbeb54f
MD5 5dfedf7d32ebae8afe4b78846f507550
BLAKE2b-256 f2eb0a37eb228e2f69cf3489a5d5f2b0467526e7baf1b5949e825bc16aa9e22b

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