aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtwittperator/echo-tweet.tw15
-rwxr-xr-xtwittperator/urusai-namakubi.tw20
2 files changed, 35 insertions, 0 deletions
diff --git a/twittperator/echo-tweet.tw b/twittperator/echo-tweet.tw
new file mode 100755
index 0000000..ff85e79
--- /dev/null
+++ b/twittperator/echo-tweet.tw
@@ -0,0 +1,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:
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: