cord is chat bot framework, currently supporting IRC and Discord as well as the name of our personal bot residing thhe #obsidian community IRC channel and Discord server. One of cord's strengths is its modularity:
- Sockets provide a common interface for dealing with different services.
- Plugs is just our obviously brilliant way of saying "plugins". I know you like it too.
The common interface makes it easy to write a plug that works for all sockets. As an example, the Bridge plug provides bridging functionality, meaning you can link multiple channels together, regardless of the socket they belong to, and have messages relayed between those channels. This includes messages sent by cord itself, so any other plug can simply reply to incoming messages, and the reply will also be relayed to the other bridged channels.
Something else also noteworthy to point out is cord's message structure: Other than containing vital information such as time, sender and target, messages are just made of parts.
git clone https://github.com/copygirl/cord.git
cd cord
npm install
When cord starts up, it will look for auth.json
and config.json
in the main
directory. As you can probably tell these two files are not included in the
repository, since it'd be too difficult to provide informative sample configs.
Instead, information on all the things can be found on the wiki.
npm start