Skip to content

rhettl/taskbot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

Taskbot

Not ready for people to use, still experimenting would love help

Accept text, possibly from a stream, and parse for commands to then execute. For each command found, that command should be run through an array of parsers. Commands should be extracted from the message body. Commands/Parsers should be run sequentially so the message body may be modified in the process -- similar to express/connect style functions.

Install

npm install taskbot

Initial Spec

  • taskbot:
    • accepts:
      • messages as text/plain
      • messages as streams
      • messages as buffers
    • commands
      • # as inline command
      • consider adding parsing via commander (somehow)
      • can accept list (considering similar to yaml list)
      • get sent through different parsers based on command name or regex
        • analogous with express routes
      • are filtered out of text body automatically
        • make toggle for this in initialization object
    • parsers
      • parses commands through array of parsers
      • each parser is triggered on a keyword/command

#Additional Ideas

  • post message receive hook: If I am sending emails at x time, run task y
  • add headers to messages for things like webpages and emails
  • add some email parser from npm, I don't want to split and decode email bodies on my own
  • add html to txt email converter to prevent issues

#Contributing

Yes please. Select an issue/todo and pull request.

About

Perform tasks based on text from a given stream (hope to include email, twitter, and maybe even IM like jabber/irc/slack)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published