Skip to content

Instantly share code, notes, and snippets.

@suna-pan
Last active August 29, 2015 14:00
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 suna-pan/02f77fabe9570d389bce to your computer and use it in GitHub Desktop.
Save suna-pan/02f77fabe9570d389bce to your computer and use it in GitHub Desktop.
θͺ°γ‹γŒπŸ’©γ‚¦γƒ³γ‚³γƒ’γƒ«πŸ’©γ™γ‚‹γ¨γ€γ‚‰γ‚Œγ¦πŸ’©γ‚¦γƒ³γ‚³γƒ’γƒ«πŸ’©γ™γ‚‹mikutterプラグむン
#-*- coding: utf-8 -*-
Plugin.create :unko_moll do
on_appear do |ms|
ms.each do |m|
if !m.retweet? && m.user.to_s != Service.primary.user.to_s && m.message.to_s =~ /πŸ’©γ‚¦γƒ³γ‚³γƒ’γƒ«πŸ’©/
m.favorite
Service.primary.post :message => "πŸ’©γ‚¦γƒ³γ‚³γƒ’γƒ«πŸ’©"
end
end
end
command(:unko_moll,
name: "πŸ’©γ‚¦γƒ³γ‚³γƒ’γƒ«πŸ’©",
condition: ->_{true},
visible: true,
role: :timeline) do |m|
m.messages.map do |msg|
Service.primary.post :message => "πŸ’©γ‚¦γƒ³γ‚³γƒ’γƒ«πŸ’©"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment