Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Last active December 12, 2015 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penguin2716/4738650 to your computer and use it in GitHub Desktop.
Save penguin2716/4738650 to your computer and use it in GitHub Desktop.
mikutterでpokeするプラグイン
#-*- coding: utf-8 -*-
Plugin.create(:poke) do
command(:poke,
name: 'このユーザにpokeする',
condition: lambda{ |opt| true },
visible: true,
role: :timeline) do |opt|
opt.messages.each { |m|
Service.primary.post(:message => "@#{m.user.idname} poke#{" " * rand(10)}", :replyto => m)
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment