Sha256: 1d1ff9db959019d22c22dc319029c70196b72044c5e098acbe0447452e76b6b1

Contents?: true

Size: 369 Bytes

Versions: 12

Compression:

Stored size: 369 Bytes

Contents

hook(type: :ctcp, cmd: 'VERSION') do |dat|
  dat[:plug].nctcp(dat[:nick], %(VERSION ProtonBot v#{ProtonBot::VERSION} on Ruby ) +
    %(v#{RUBY_VERSION}.#{RUBY_PATCHLEVEL}/#{RUBY_PLATFORM} and Heliodor ) +
    %(v#{Gem.loaded_specs['heliodor'].version.version}))
end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
protonbot-0.2.7 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.2.6 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.2.5 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.2.4 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.2.3 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.2.2 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.2.1 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.2.0 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.1.3 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.1.2 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.1.1 lib/protonbot/core_plugin/hooks/ctcp.rb
protonbot-0.1.0 lib/protonbot/core_plugin/hooks/ctcp.rb