Skip to content

Commit

Permalink
* added: some help
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodie committed Mar 13, 2011
1 parent e239e1e commit 081dd03
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jabberbot.rb
Expand Up @@ -114,6 +114,9 @@ def cli_status.action
def cli_roster.action
@bot.roster
end
def cli_roster.help
'lists all contacts on the roster'
end

cli_chat= RbCmd.new(:chat, :cli)
def cli_chat.action
Expand All @@ -123,6 +126,9 @@ def cli_chat.action
" > no recipient"
end
end
def cli_chat.help
'Usage: "chat jid" the next line will be sent'
end

cli_send = RbCmd.new(:send, :cli)
def cli_send.action
Expand All @@ -132,6 +138,9 @@ def cli_send.action
" > no recipient"
end
end
def cli_send.help
'Usage: "send jid" the next line will be sent'
end


# Initialize the bot
Expand Down

0 comments on commit 081dd03

Please sign in to comment.