Class: MoonBot::Plugin::Ping
- Inherits:
-
Object
- Object
- MoonBot::Plugin::Ping
- Defined in:
- lib/MoonBot/plugins/ping.rb
Instance Method Summary collapse
-
#initialize(bot) ⇒ Ping
constructor
A new instance of Ping.
- #on_ping(message) ⇒ Object
Constructor Details
#initialize(bot) ⇒ Ping
Returns a new instance of Ping.
3 4 5 |
# File 'lib/MoonBot/plugins/ping.rb', line 3 def initialize bot @bot = bot end |
Instance Method Details
#on_ping(message) ⇒ Object
7 8 9 10 |
# File 'lib/MoonBot/plugins/ping.rb', line 7 def on_ping pong = "PONG #{[:args]}" @bot.command pong end |