Sha256: a336a0e61886168c4b12ae2aeb991ad46794f17ce0970d365746b25e915043ab

Contents?: true

Size: 451 Bytes

Versions: 8

Compression:

Stored size: 451 Bytes

Contents

hook(type: :ctcp, cmd: 'VERSION') do |dat|
  dat[:plug].nctcp(dat[:nick], %(VERSION ) + 
    %(%B%C%BLUEProtonBot v#{ProtonBot::VERSION}%N ) +
    %(on %B%C%REDRuby v#{RUBY_VERSION}.#{RUBY_PATCHLEVEL}/#{RUBY_PLATFORM}@#{RUBY_ENGINE}#{RUBY_ENGINE_VERSION}%N ) +
    %(and %B%C%YELLOWHeliodor v#{Gem.loaded_specs['heliodor'].version.version}%N))
end

hook(type: :ctcp, cmd: 'PING') do |dat|
  dat[:plug].nctcp(dat[:nick], %(PING #{dat[:split][0]}))
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
protonbot-0.3.7 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.3.6 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.3.5 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.3.4 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.3.3 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.3.2 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.3.1 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.3.0 lib/protonbot/core_plugin/hooks/ctcp.rb