https://github.com/cryptaliagy/fsa-bot
Bot version of PyFSA to use in discord
https://github.com/cryptaliagy/fsa-bot
Last synced: 11 months ago
JSON representation
Bot version of PyFSA to use in discord
- Host: GitHub
- URL: https://github.com/cryptaliagy/fsa-bot
- Owner: cryptaliagy
- Created: 2021-01-22T05:02:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-25T20:34:06.000Z (over 5 years ago)
- Last Synced: 2025-02-10T02:14:34.189Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# fsa-bot
Project auto-generated by [krait](http://tlia.ca/krait)
A bot to render state graphs on discord! This bot uses [PyFSA](https://github.com/taliamax/pyfsa) as a backend to render the graphs from the input.
This bot uses space-separated CSV blocks to organize the state machine and properly label the transitions. This means that you can write state machines purely in discord, and have them join the discussion. No more having to install a CLI and figure out dependencies!
Some example usage:
```
$state "a,x,y b,x,z a,y,x b,y,z b,y,z a,z,z b,z,z"
```
You can also pass all options supported by the CLI to the command as well, which will let you set things such as the start node, end node, and even layout engine. This is done with key-value pairs, separated by an equal sign
```
$state "a,x,y b,x,z a,y,x b,y,z b,y,z a,z,z b,z,z" start=x end=z engine=dot
```
Keep in mind, if you need to separate data by spaces, you'll need to wrap the whole term in quotation marks.