Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ version = "0.2.3"
authors = ["Joe Wilm <[email protected]>"]
license = "MIT"
description = "An extensible chatbot"
documentation = "https://chatbot.rs/chatbot/"
documentation = "https://docs.rs/chatbot"
repository = "https://github.com/jwilm/chatbot"
keywords = ["chat", "bot", "extensible"]
readme = "README.md"

[package.metadata.docs.rs]
all-features = true

[dependencies]
regex = "0.1"
rustc-serialize = "0.3"
Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ test:
docs:
@cargo doc --no-deps

upload-docs: docs
@./upload-docs.sh

.PHONY: test docs upload-docs
.PHONY: test docs
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ and clone it locally. You should be able to just do `cargo run` and get a
working ping and github handler on the command line. If you want to run the test
program using the Slack adapter, do `cargo run -- --adapter slack`.

[service adapters]: http://chatbot.rs/chatbot/adapter/trait.ChatAdapter.html#implementors
[message handlers]: http://chatbot.rs/chatbot/handler/trait.MessageHandler.html#implementors
[documentation]: http://chatbot.rs/chatbot/
[service adapters]: https://docs.rs/chatbot/*/chatbot/adapter/trait.ChatAdapter.html#implementors
[message handlers]: https://docs.rs/chatbot/*/chatbot/handler/trait.MessageHandler.html#implementors
[documentation]: https://docs.rs/chatbot
[issue tracker]: https://github.com/jwilm/chatbot/issues
[mio]: https://github.com/carllerche/mio
8 changes: 4 additions & 4 deletions src/handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ pub type HandlerResult = Result<(), HandlerError>;

/// Implementing a MessageHandler enables responding to IncomingMessages. There
/// are currently very few requirements to creating a handler. The
/// [`handle`](#method.handle) function receives
/// [`IncomingMessage`](message/struct.IncomingMessage.html)s. The implementer
/// [`handle`](#tymethod.handle) function receives
/// [`IncomingMessage`](../message/struct.IncomingMessage.html)s. The implementer
/// is responsible for testing whether it's interested in replying. Optionally
/// call [`reply`](message/struct.IncomingMessage.html#method.reply) on the
/// [`IncomingMessage`](message/struct.IncomingMessage.html) to send a response.
/// call [`reply`](../message/struct.IncomingMessage.html#method.reply) on the
/// [`IncomingMessage`](../message/struct.IncomingMessage.html) to send a response.
///
/// # Example
///
Expand Down
6 changes: 3 additions & 3 deletions src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl OutgoingMessage {
}

/// Return a reference to the
/// [`IncomingMessage`](message/struct.IncomingMessage.html) that this
/// [`IncomingMessage`](struct.IncomingMessage.html) that this
/// message is in response to.
pub fn get_incoming<'a>(&'a self) -> &'a IncomingMessage {
&self.incoming
Expand All @@ -60,9 +60,9 @@ impl OutgoingMessage {
/// properties on this struct exist to help adapters route any `OutgoingMessage`
/// back to where the IncomingMessage originated.
///
/// Types implementing the [`MessageHandler`](handler/trait.MessageHandler.html)
/// Types implementing the [`MessageHandler`](../handler/trait.MessageHandler.html)
/// trait should use IncomingMessage.reply to respond. It is up to the
/// [`ChatAdapter`](adapter/trait.ChatAdapter.html) to decide what
/// [`ChatAdapter`](../adapter/trait.ChatAdapter.html) to decide what
/// [`reply`](#method.reply) means in the context of the service it provides.
#[derive(Clone)]
pub struct IncomingMessage {
Expand Down
28 changes: 0 additions & 28 deletions upload-docs.sh

This file was deleted.