udoprog / OxidizeBot

High performance Twitch bot in Rust
https://setbac.tv
Apache License 2.0
157 stars 23 forks source link

Rune scripts? #114

Open Abendstolz opened 2 years ago

Abendstolz commented 2 years ago

Hey there!

~ Are there any plans for incorporating rune into OxidizeBot?

Afaik it once was a motivator for the creation of rune.

I imagine things like e.g. a death counter and many small "one off" scripts could be written in rune. ~

In any case: Thanks for all your hard work, OxidizeBot as well as Rune are awesome!

EDIT: I am very embarrassed now... I could swear I had checked the cargo.toml before, and I had seen the old PR from 2020 and assumed it was removed in the meantime. Also a rn file in the scripts folder... facepalm

The only thing that could be improved upon is documentation, building with the scripting feature, how to activate the scripts and maybe a little more involved script as an example?

I feel like easily adding scripts to OxidizeBot could really improve it and be a testing ground for rune as well.

udoprog commented 2 years ago

Was a while since I poked scripting in Rune, but it's not entirely ready (yet!). For now it's just a scripts directory which automatically reloads the scripts in it. And it's using a somewhat outdated version of Rune (I'm bumping it now).

One important missing piece is a page in the UI which shows the scripts that are loaded and the ability to disable / enable them.