aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator/urusai-namakubi.tw
diff options
context:
space:
mode:
Diffstat (limited to 'twittperator/urusai-namakubi.tw')
-rwxr-xr-xtwittperator/urusai-namakubi.tw20
1 files changed, 20 insertions, 0 deletions
diff --git a/twittperator/urusai-namakubi.tw b/twittperator/urusai-namakubi.tw
new file mode 100755
index 0000000..9e876f4
--- /dev/null
+++ b/twittperator/urusai-namakubi.tw
@@ -0,0 +1,20 @@
+/*
+ * Please write the below line into .vimperatorrc.
+ * let g:twittperator_plugin_urusai_namakubi = 1
+ */
+
+
+(function () {
+ if (!plugins.namakubi)
+ return;
+
+ plugins.twittperator.ChirpUserStream.addListener(
+ function onMsg (msg, raw) {
+ liberator.log(msg.text);
+ if (msg.text)
+ plugins.namakubi.talk(msg.user.screen_name + ": " + msg.text);
+ }
+ );
+})();
+
+// vim: sw=2 ts=2 et fdm=marker ft=javascript: