Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Last active June 27, 2022 14:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save penguin2716/4587083 to your computer and use it in GitHub Desktop.
Save penguin2716/4587083 to your computer and use it in GitHub Desktop.
ピザの配達を要求するmikutterプラグイン
#-*- coding: utf-8 -*-
Plugin.create :delivery_pizza do
command(:delivery_pizza,
name: 'ピザ配達しに来い',
condition: lambda{ |opt| true },
visible: true,
role: :timeline) do |opt|
opt.messages.each { |m|
Service.primary.post(:message => "@#{m.user.to_s}な〜にが via #{m[:source]} だ早く私の家にピザ配達しに来い〄", :replyto => m)
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment