Commit graph

370 commits

Author SHA1 Message Date
Aaron Weiss
4ace08da3c Took non-existant script out of travis build configuration. 2014-11-02 18:45:29 -05:00
Aaron Weiss
2e2d411907 Added Server trait and implemented basic Server functionality for IrcServer. 2014-11-02 18:39:00 -05:00
Aaron Weiss
4df7be1662 Added Config implementation. 2014-11-02 18:16:49 -05:00
Aaron Weiss
d97035cca9 Implemented ServerIterator and message parsing. 2014-11-02 18:08:56 -05:00
Aaron Weiss
6da40f2ad3 Implemented thread-safe Connection. 2014-11-02 17:25:45 -05:00
Aaron Weiss
b2006d044d Laid out basic structure of rewritten library. 2014-11-02 16:25:57 -05:00
Aaron Weiss
91aa5bcc6f Refactored for iterators. 2014-11-02 16:16:58 -05:00
Aaron Weiss
0ad276fdae Added load_utf8 to Config and load takes a Path. 2014-11-02 13:47:22 -05:00
Aaron Weiss
f8a6987fcf Config::load(...) now takes the path to the configuration file. 2014-11-02 13:32:02 -05:00
Aaron Weiss
aa6ff176f2 Added a bot constructor that takes an already-made configuration file. 2014-11-02 13:01:02 -05:00
Aaron Weiss
16d8fc15ea Updated README.md with a link to an example. 2014-11-02 12:41:24 -05:00
Aaron Weiss
f174d17e4b handle_command(...) now calls the user's hook for all messages. 2014-10-29 17:02:06 -04:00
Aaron Weiss
3ee6ec76f1 Made colon before last argument optional depending on message type. 2014-10-29 03:43:15 -04:00
Aaron Weiss
445cfb1405 Added SAMODE with associated unit test. 2014-10-29 01:36:34 -04:00
Aaron Weiss
56ca5379e1 Added send_kill(...) and associated unit test. 2014-10-29 00:52:52 -04:00
Aaron Weiss
aad1d52b59 Added unit test for send_sanick(...). 2014-10-29 00:48:56 -04:00
Aaron Weiss
8924e4e578 Added send_sanick(...). 2014-10-29 00:47:39 -04:00
Aaron Weiss
803e1e8ff4 Added send_oper(...) to allow bots to oper up. 2014-10-29 00:17:49 -04:00
Aaron Weiss
7f67bd2905 Added options hashmap to config for custom bot configuration. 2014-10-29 00:13:18 -04:00
Aaron Weiss
f185106e08 Fixed a bug causing failure when user strings are empty. 2014-10-27 12:53:20 -04:00
Aaron Weiss
e48aca279d Simplified code with new syntax. 2014-10-27 00:44:17 -04:00
Aaron Weiss
35af08ef7c Removed unnecessary swearing. 2014-10-27 00:34:56 -04:00
Aaron Weiss
c669d44f15 User tracking keeps proper track of user rank now. 2014-10-27 00:33:17 -04:00
Aaron Weiss
729ff3874c Updated tests to make them more debuggable. 2014-10-26 23:47:00 -04:00
Aaron Weiss
f0bd2b99f1 Added kick command. 2014-10-26 23:29:31 -04:00
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