master
1function (context, args) { // ch:"", msg:""
2 // we want to color our text, using soron.color_utils. Run that script on command line to set up your chat color
3 var text = #s.soron.color_utils({colorize: args.msg});
4
5 // Now we send a chats.send, using our slightly-modified arguments
6 var result = #s.chats.send({ channel:args.ch, msg:text });
7
8 // and, we return the result. It will probably be an object that looks like { ok: true }
9 return result;
10}