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.

Check Releases


✨ 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

🧠 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.6.tar.gz (6.5 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.6-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tflows-0.0.6.tar.gz
  • Upload date:
  • Size: 6.5 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.6.tar.gz
Algorithm Hash digest
SHA256 2796b4ffe2a50164ae663cbd44afe3b3cf9a850e3e8612a5afbbe546026f5580
MD5 655177d645e507234add003e989c34cd
BLAKE2b-256 6dc53a16b18ec83d20299c2f8faa2baf82797fe241e6377f7c7e11bf81df0ff7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tflows-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 71c1d36ce074ca99cd56dbb1cfcfe231eef1e4bdb436752b972325dc64688e81
MD5 57c16b7b5f854d2c3333646f2d372a89
BLAKE2b-256 9cbfa8d5f40c2f14c39eadb06243a5b90568b0a16e38850bcc069367762f0316

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