aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator/echo-tweet.tw
blob: ff85e79eef7213c23c4393d1ba23733c413c58bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Please write the below line into .vimperatorrc.
 * let g:twittperator_plugin_echo_tweet = 1
 */

(function () {
  plugins.twittperator.ChirpUserStream.addListener(
    function onMsg (msg, raw) {
      if (msg.text)
        liberator.echo(msg.user.screen_name + ": " + msg.text, commandline.FORCE_SINGLELINE);
    }
  );
})();

// vim: sw=2 ts=2 et fdm=marker ft=javascript: