Class: Logout
- Inherits:
-
Sponge::Plugin
- Object
- Sponge::Plugin
- Logout
- Defined in:
- lib/proto/plugins/logout.rb
Constant Summary
Constants inherited from Sponge::Plugin
Sponge::Plugin::AUTH, Sponge::Plugin::LIST, Sponge::Plugin::LISTENERS
Instance Method Summary collapse
Methods inherited from Sponge::Plugin
command, has_listener?, #help, inherited, #initialize, listen_to, requires_auth, #requires_auth?, #usage
Constructor Details
This class inherits a constructor from Sponge::Plugin
Instance Method Details
#reply(m, arg) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/proto/plugins/logout.rb', line 3 def reply(m, arg) if @bot.auth.logout(m.nick) m.answer "You're now logged out" else m.answer "Unable to log you out" end end |