p/npm
A package manager for javascript
Chris Messina

Eventline โ€” IFTTT for developers

Featured
18
โ€ข

Micro-framework for routing and handling events for bots and applications.

Replies
Best
Chris Messina
Top Hunter
Hunter
This looks like a great tool for working with and constructing bots and bot-like applications! I'm curious how existing bots could be retrofitted to take advantage of this framework...?
James Campbell
@chrismessina so for Surebot we did exactly this. Most of the existing code for receiving events from facebook was kept. We started off by just having one massive listening function with the millions of if statements we had before. Then we gradually broke it down into smaller components to match the convention of the framework. It was fairly straightforward as we could re-use a lot of the existing APIs as before, Eventline focuses more on the flow of the bot.
Gio Logist
I'm slightly confused as to how you can simplify the process of forming a conditional statement for developers....
James Campbell
@giologist :) the ITTTT refers to simplifying being able to easily express what a bot or applicaiton should do given an event.
James Campbell
@giologist @notaboutdave Its better than if statmens as it also supports promises, rx etc as first class citizens. Meaning you just list the steps you want done and it does it. Not sure which demos you are looking at?
Gio Logist
@notaboutdave @jcampbell_05 I see. I was looking @ the code in the gif + briefly glanced at the site. Maybe you should show a few real-life examples on your site.
James Campbell
@notaboutdave @giologist Sure, I'll upload some :)
Sebastian Krumhausen
Thanks for hunting us @chrismessina ๐Ÿ‘Š Team Sure and Bottr are excited to share our latest creation - A micro chatbot-framework to easily handle the logic of your bot or IoT-app. โ€จโ€จWhile developing Sure bot, we discovered how hard it can become to handle and change the logic of complex chatbots. Eventline uses a simple "If This Then That"-approach providing developers with a clear overview of their logic. Earlier bot frameworks take an all-or-nothing approach where youโ€™re tight to particular clients. With Eventline, you can still use other frameworks or even combine several different libraries. You can read more about Eventline here: https://blog.surebot.io/introduc... We would love to hear all your feedback and will be here answering all your questions today ๐Ÿ’ฌ๐Ÿ’ช
Alec Lazarescu
@krumhausen @jcampbell_05 Nice work. I'm looking forward to trying this and I like the idea of extending Redux state principle.
Ariel Jalali
I got super duper excited thinking this was a protocol for inter-bot handoffs but intra-bot event management is cool too ๐Ÿ‘
James Campbell
@arieljalali Maybe thats our next thing ;)
Eric Kryski
@krumhausen how does this compare to botkit? Looks just like a simplified version.
James Campbell
@krumhausen @ekryski Indeed it is. So this purely focuses on handling events and what to do when handling them i.e the flow. It doesn't care where it get those events or provide the code for what to do. That way you can use this in combination with Botkit, Botpress or any other framework. You can even use it for your custom code or just basic prototpying of a bot.
Natalie Korotaeva
Great stuff guys! How long did it take for your to develop it?
James Campbell
@natalie_korotaeva It took a couple of days to build the core framework in terms of developer hours. But we've been testing and refining it in the bot for the past month :) it's already in production so battle tested too !
Edvins Antonovs
Looks good!
Deven Bhooshan
looks interesting ๐Ÿ™Œ