Commit graph

695 commits

Author SHA1 Message Date
Aaron Weiss
d719cc006b send_privmsg(...) now supports multiline messages. 2014-10-20 03:47:46 -04:00
Aaron Weiss
f43634f58e Removed useless lifetime parameter from Bot trait. 2014-10-20 02:34:58 -04:00
Aaron Weiss
67a087cab3 Simplified connection tests a bit. 2014-10-10 13:20:37 -04:00
Aaron Weiss
6d5144c109 Simplified bot unit tests where possible. 2014-10-09 14:37:59 -04:00
Aaron Weiss
6261449e97 Added tests for the user tracking system. 2014-10-09 14:32:06 -04:00
Aaron Weiss
d6921eae74 Added tests of some of the handle_command(...) functionality. 2014-10-09 03:26:16 -04:00
Aaron Weiss
fb8081cf77 output(...) now returns an Err(...) if it fails to parse a line. 2014-10-08 22:29:41 -04:00
Aaron Weiss
21136c4ec2 Added unit test for identify(). 2014-10-08 22:20:50 -04:00
Aaron Weiss
6fcf3e2fc6 Implemented unit tests for the remainder of the send_* methods. 2014-10-08 22:17:39 -04:00
Aaron Weiss
a7d3a565b8 Added some unit tests for IrcBot, along with required changes to Connection. 2014-10-08 22:09:35 -04:00
Aaron Weiss
31e633763b Added unit tests for Connections and caught an inconsistency from the spec. 2014-10-08 21:33:20 -04:00
Aaron Weiss
8049d52e93 Travis configuration now marks mktestconfig.sh as executable. 2014-10-08 21:08:44 -04:00
Aaron Weiss
89a75b846a Fixed travis config. 2014-10-08 21:05:43 -04:00
Aaron Weiss
f9f172ec1f Added script to create test configuration for travis-ci. 2014-10-08 21:04:51 -04:00
Aaron Weiss
f6915e2e53 Connections now support non-cloneable Readers (read: all of them). Thanks, @retep998. 2014-10-08 20:57:23 -04:00
Aaron Weiss
7efe3f3fdf Added some basic data tests. 2014-10-08 18:08:29 -04:00
Aaron Weiss
afa1fccff7 Modularized tests. 2014-10-08 16:11:20 -04:00
Aaron Weiss
57df922054 Moved IrcBot implementation to bot.rs. 2014-10-08 16:08:15 -04:00
Aaron Weiss
bb58dac93c Added from_connection(...) to make an IrcBot from any arbitrary connection. 2014-10-08 14:08:27 -04:00
Aaron Weiss
af1f8ecf14 config(...) returns a reference instead of a copy of the value. 2014-10-08 13:50:54 -04:00
Aaron Weiss
95a3a8d6b6 Specified the implementation of IrcBot to go with the new function. 2014-10-08 13:44:36 -04:00
Aaron Weiss
bf31646bdd Added method to get config from bots. 2014-10-08 13:40:19 -04:00
Aaron Weiss
54e781e6e7 Refactored Bot into IrcBot based on Bot trait. 2014-10-08 13:32:37 -04:00
Aaron Weiss
b0226099d7 Added newtypes for the specific kinds of Reader and Writer used in the library 2014-10-08 13:10:55 -04:00
Aaron Weiss
567074a599 Made changes to allow library to operate on any type of stream. 2014-10-08 12:57:36 -04:00
Aaron Weiss
dc8003c8e3 Converted Connection into an enumeration for extensibility. 2014-10-07 14:30:38 -04:00
Aaron Weiss
394ca6bb8f Removed usage of deprecated append(...) method. 2014-10-06 16:37:29 -04:00
Aaron Weiss
352a692c9b Added concept of bot ownership, improved failure propagation. 2014-10-06 16:33:37 -04:00
Aaron Weiss
3475437fdb Replaced build status image. 2014-09-28 00:22:28 -04:00
Aaron Weiss
8692829d9f Added build status image to README.md. 2014-09-28 00:21:41 -04:00
Aaron Weiss
e0c2c1174b Added method to set channel modes. 2014-09-27 15:08:38 -04:00
Aaron Weiss
0ad2411c14 Added method to set topic of a channel. 2014-09-27 14:51:16 -04:00
Aaron Weiss
b473a29dc0 Added method to invite users to a channel. 2014-09-27 14:23:03 -04:00
Aaron Weiss
c9060dc89a Added tests for process(...) and parse_args(...). 2014-09-25 15:58:50 -04:00
Aaron Weiss
6f7673e53e Bots now track users in each channel. 2014-09-24 19:20:59 -04:00
Aaron Weiss
9dea4586eb Added send_privmsg(...) to Bot implementation. 2014-09-24 17:13:42 -04:00
Aaron Weiss
8672c257cb Exposed method to add user functionality to bots at construction. 2014-09-24 16:53:42 -04:00
Aaron Weiss
642622752f Refactored for modularization, incorporated config usage. 2014-09-23 20:11:13 -04:00
Aaron Weiss
68b9fbe9dc Added a simple README.md. 2014-09-17 11:30:27 -04:00
Aaron Weiss
54b37770ed Added configuration for travis-ci. 2014-09-11 11:26:31 -04:00
Aaron Weiss
ddd06733d6 Bot now joins if MOTD is missing, not just at the end of the MOTD. 2014-09-11 01:31:33 -04:00
Aaron Weiss
1833a0199c Simplified some matches to let statements. 2014-09-11 01:14:44 -04:00
Aaron Weiss
9b6919d0bc Refactored basic library significantly, but sending isn't working properly. 2014-09-11 01:09:28 -04:00
Aaron Weiss
49055e39d3 Implemented an extremely basic core library. 2014-09-10 19:47:12 -04:00
Aaron Weiss
bc4041981e Initiated with cargo new irc. 2014-09-10 16:23:09 -04:00