Sha256: bff0a08d263d957a51d37280584199907264291684281c620972c3cfe6d04aed

Contents?: true

Size: 252 Bytes

Versions: 8

Compression:

Stored size: 252 Bytes

Contents

core.help_add('basic', 'ping', 'ping', 'Ping!')
cmd(cmd: 'ping') do |dat|
  dat.reply("#{dat[:nick]}: pong!")
end

core.help_add('basic', 'echo', 'echo', 'Sends given message back')
cmd(cmd: 'echo') do |dat|
  dat.reply("#{dat[:split].join(' ')}")
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
protonbot-0.2.3 lib/protonbot/core_plugin/commands/basic.rb
protonbot-0.2.2 lib/protonbot/core_plugin/commands/basic.rb
protonbot-0.2.1 lib/protonbot/core_plugin/commands/basic.rb
protonbot-0.2.0 lib/protonbot/core_plugin/commands/basic.rb
protonbot-0.1.3 lib/protonbot/core_plugin/commands/basic.rb
protonbot-0.1.2 lib/protonbot/core_plugin/commands/basic.rb
protonbot-0.1.1 lib/protonbot/core_plugin/commands/basic.rb
protonbot-0.1.0 lib/protonbot/core_plugin/commands/basic.rb