Skip to content

Instantly share code, notes, and snippets.

@shibafu528
Last active August 29, 2015 14:05
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
recotw.tk に黒歴史を投げつけよう
# -*- coding: utf-8 -*-
require 'net/http'
Plugin.create(:mikutter_recotw) do
command(:post_recotw,
name: 'recotwに登録',
condition: Plugin::Command::CanReplyAll,
visible: true,
icon: nil,
role: :timeline) do |opt|
opt.messages.each do |message|
next if message[:system]
http = Net::HTTP.new('api.recotw.black')
p http.post("/1/tweet/record_tweet", "id=#{message[:id]}")
end
activity :system, "黒歴史を送信しちゃったよ♪"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment