Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
リプライとかに自分のscreen_nameが含まれてたら正しく直してくれる感じのプラグイン
# -*- 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