Last active
August 29, 2015 13:56
-
-
Save gomasy/9019733 to your computer and use it in GitHub Desktop.
作業妨害系プラグイン
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
Plugin.create(:mikutter_sl) do | |
# ※Terminatorを使用してる場合 | |
# その他のターミナルソフトを使用している場合は適宜書き換えてください | |
@cmd_line = "terminator -x sl" | |
on_mention do |s, msg| | |
msg.each do |m| | |
if m.message.to_s =~ /^.*#{Service.primary.user}\s+sl.*$/ | |
system(@cmd_line) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment