Created
August 8, 2012 14:07
-
-
Save arc680/3295308 to your computer and use it in GitHub Desktop.
そのツイット( '-^ )b クソワロタです fork from そのツイット( '-^ )b クソワロタです
This file contains hidden or 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 -*- | |
# そのツイット( '-^ )b クソワロタです | |
# 元→https://github.com/catback/KusoWaro | |
Module.new do | |
Plugin.create(:TwitKusoWaro).add_event_filter(:command){ |menu| | |
menu[:twit] = { | |
:slug => :TwitKusoWaro, | |
:name => 'そのツイット', | |
:condition => lambda{ |m| m.message.repliable? }, | |
:exec => lambda{ |m| | |
Post.primary_service.update(:message=> "そのツイット( '-^ )b クソワロタ\ | |
です RT @#{m.message.user.idname}: #{m.message} ", | |
:replyto => m.message) | |
}, | |
:visible => true, | |
:role => :message } | |
[menu] | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment