Skip to content

Instantly share code, notes, and snippets.

@utgwkk
Forked from penguin2716/jis_empty_reply.rb
Last active December 26, 2015 16:29
Show Gist options
  • Save utgwkk/7180945 to your computer and use it in GitHub Desktop.
Save utgwkk/7180945 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
Plugin.create :wiin_eject do
on_appear do |ms|
ms.each do |m|
if m.message.to_s =~ /ウ(イ|ィ)ーン|[Ee]ject/
system("eject")
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment