Last active
December 27, 2015 21:29
-
-
Save penguin2716/7392488 to your computer and use it in GitHub Desktop.
リプライとかに自分のscreen_nameが含まれてたら正しく直してくれる感じのプラグイン
This file contains 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 -*- | |
class Message | |
def self.appear(message) # :nodoc: | |
message[:message] = message[:message].gsub(/#{Service.primary.user.to_s}/i, Service.primary.user.to_s) | |
@@appear_queue.push(message) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment