-
-
Save tobynet/852f1d6392b31da1231a to your computer and use it in GitHub Desktop.
Mikutter のプラグインJavaビームプラグインをearthquake.gem Pluginに移植したもの
This file contains 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 -*- | |
# Java beam plugin for earthquake.gem | |
# | |
# Usage: | |
# :javabeam | |
# update 'Javaビームビビビビビビビwwwwwwwwww' | |
# | |
# :javabeam 猫 | |
# update '猫ビームビビビビビビビwwwwwwwwww' | |
# | |
# # For replying | |
# :javabeam $aq | |
# reply '@plus7 Javaビームビビビビビビビwwwwwwwwww' | |
# | |
Earthquake.init do | |
command %r|^:javabeam\s*(\d+)*\s*(.*)$|, :as => :javabeam do |m| | |
cmd = m[1] ? ":reply #{m[1]}" : ":update" | |
content = if m[2] && !m[2].empty? | |
m[2] | |
else | |
'Java' | |
end | |
input("#{cmd} #{content}ビームビビビビビビビwwwwwwwwww") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment