Stream: show and tell

Topic: rocco


view this post on Zulip jan kili (Sep 19 2022 at 11:08):

I'd like to introduce rocco, a chat bot written in Roc! :smiley:

view this post on Zulip jan kili (Sep 19 2022 at 11:08):

@rocco help

view this post on Zulip rocco (Sep 19 2022 at 11:08):

Hi, I'm @rocco, a Roc chat bot!
Subcommands: echo, help, issue, pr
See https://github.com/JanCVanB/rocco :smile:

view this post on Zulip jan kili (Sep 19 2022 at 11:09):

Currently, rocco reads the second word of any message mentioning them, and if it's one of those 4 words above it responds accordingly. If not, it returns some kind of error message instead.

view this post on Zulip jan kili (Sep 19 2022 at 11:09):

Theoretically it could do almost anything, and I welcome your contributions to make it do whatever you want!

view this post on Zulip jan kili (Sep 19 2022 at 11:11):

@Anton suggested we could add some way to create a new issue from the last (few) message(s), which would definitely be useful

view this post on Zulip jan kili (Sep 19 2022 at 11:11):

You can also private message it, though, so text-based games could maybe also work, haha

view this post on Zulip jan kili (Sep 19 2022 at 11:13):

More broadly, it could be an easy way for us to run text I/O prototypes of our apps in the cloud without having to set up fresh cloud deployments for each (since there's no limit to how many subcommands it could have)

view this post on Zulip jan kili (Sep 19 2022 at 11:14):

Future aside, I really enjoyed containerizing a Roc app & deploying it - very fun to feel it interoperate with a different category of useful tech

view this post on Zulip jan kili (Sep 19 2022 at 11:16):

@rocco issue 4064 was one of the surprises I ran into, but @Anton helped me figure out a lot of CI/CD stuff - thank you, @Anton !!

view this post on Zulip rocco (Sep 19 2022 at 11:16):

https://github.com/roc-lang/roc/issues/4064

view this post on Zulip jan kili (Sep 19 2022 at 11:17):

(very minor issue, though, and looking to make that irrelevant by using the Json library soon)

view this post on Zulip jan kili (Sep 19 2022 at 11:17):

@rocco echo that's all! :tada:

view this post on Zulip rocco (Sep 19 2022 at 11:17):

that's all! :tada:

view this post on Zulip Zeljko Nesic (Sep 19 2022 at 12:50):

Awesome!

view this post on Zulip Zeljko Nesic (Sep 19 2022 at 12:50):

@rocco echo @rocco echo @rocco echo

view this post on Zulip Zeljko Nesic (Sep 19 2022 at 12:51):

@rocco echo @rocco echo @rocco echo @rocco echo

view this post on Zulip rocco (Sep 19 2022 at 12:51):

@rocco echo @rocco echo @rocco echo

view this post on Zulip Zeljko Nesic (Sep 19 2022 at 12:51):

@rocco echo Cmon' do the recursion

view this post on Zulip rocco (Sep 19 2022 at 12:51):

Cmon' do the recursion

view this post on Zulip Bryce Miller (Sep 19 2022 at 13:26):

(deleted)

view this post on Zulip Bryce Miller (Sep 19 2022 at 13:26):

(deleted)

view this post on Zulip Bryce Miller (Sep 19 2022 at 13:28):

@rocco echo @Zeljko Nesic What, do you just expect me to bark like a dog at your command?

view this post on Zulip rocco (Sep 19 2022 at 13:28):

@Zeljko Nesic What, do you just expect me to bark like a dog at your command?

view this post on Zulip Bryce Miller (Sep 19 2022 at 13:28):

@rocco echo oh wait…

view this post on Zulip rocco (Sep 19 2022 at 13:28):

oh wait…

view this post on Zulip Zeljko Nesic (Sep 19 2022 at 21:58):

@rocco echo Woof

view this post on Zulip Georges Boris (Sep 20 2022 at 08:28):

haha did rocco put Zeljko in a block list?

view this post on Zulip Georges Boris (Sep 20 2022 at 08:28):

(deleted)

view this post on Zulip rocco (Sep 20 2022 at 08:28):

naughty boy

view this post on Zulip Georges Boris (Sep 20 2022 at 08:28):

I love this idea so much! Congrats @JanCVanB !

view this post on Zulip Jared (Sep 23 2022 at 18:57):

How hard would it be to replace the go webserver with a custom "chatbot" platform (written in rust)? Then it would be "all roc"

view this post on Zulip Brendan Hansknecht (Sep 23 2022 at 19:16):

Given how simple the go web server is, shouldn't be hard. If you do a synchronous rust web server platform, you don't have to do anything too complex around the ffi.

Async is still messy on the other hand.

view this post on Zulip Brendan Hansknecht (Sep 23 2022 at 19:17):

Also, roc glue should help with any type conversions if you want to pass around more structured request information.

view this post on Zulip Brendan Hansknecht (Sep 23 2022 at 19:18):

*simple for having to deal with a platform and ffi and such. Obviously, still requires working on a platform and potentially dubious bugs.

view this post on Zulip Brendan Hansknecht (Sep 23 2022 at 19:34):

@Jared is this something you want to try and do? If not, might make a good example for a beginner session on platform development. I am thinking of leading one of those at some point

view this post on Zulip Jared (Sep 28 2022 at 18:28):

I probably won't be tackling it in the immediate term, but I'd love to see a recording of that session!


Last updated: Jul 06 2025 at 12:14 UTC