Skip to content

Instantly share code, notes, and snippets.

@arc680
Created August 8, 2012 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arc680/3295308 to your computer and use it in GitHub Desktop.
Save arc680/3295308 to your computer and use it in GitHub Desktop.
そのツイット( '-^ )b クソワロタです fork from そのツイット( '-^ )b クソワロタです
# -*- 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