Joscha
2fd045d59b
Fix STM blocking on connecting
...
When attempting to connect to an address that doesn't exist,
startEuphConnection now doesn't result in a thread blocked by an STM
transaction any more. It now throws a simple ConnectionFailed exception.
2018-03-03 09:59:33 +00:00
Joscha
d818aba337
Add EuphApi.Utils.DetailedHelp module
2018-02-26 16:05:13 +00:00
Joscha
883c905797
Fix update sometimes tracking the bot itself
2018-02-25 21:54:52 +00:00
Joscha
01454fe6d1
Fix WhoReply aeson parsing
2018-02-25 21:52:41 +00:00
Joscha
ca3abbd93d
Add replyTo for easier replying
...
The old way:
\msg -> E.reply (E.msgID msg) "some message"
The new way:
\msg -> E.replyTo msg "some message"
2018-02-25 21:44:06 +00:00
Joscha
f7b012259c
Use bot nick in help commands
2018-02-25 21:09:47 +00:00
Joscha
f6f4bfac35
Update resolver to lts-10.7
2018-02-25 20:21:26 +00:00
Joscha
7e0c5f82da
Add EuphApi.Utils.Listing module
2018-02-25 20:20:20 +00:00
Joscha
b72d662566
Update test bot imports
2018-02-23 21:09:36 +00:00
Joscha
9adbc9e812
Improve module documentation
2018-02-23 21:04:08 +00:00
Joscha
94df5fb8f2
Restructure modules
...
This should hopefully make it easier to create bots.
2018-02-23 20:23:14 +00:00
Joscha
db69f168de
Add OutOfRetries exception
...
... and clean up documentation.
2018-02-22 07:33:00 +00:00
Joscha
f187790136
Add restart command to bots
2018-02-21 22:46:25 +00:00
Joscha
c9e80b2df4
Add documentation for Utils and Botrulez
2018-02-20 15:10:24 +00:00
Joscha
02487f0d60
Make ping command customizable
2018-02-20 06:43:52 +00:00
Joscha
c12d278ee1
Clean up bot example
2018-02-19 23:14:50 +00:00
Joscha
1282cf4a62
Run commands in new threads
2018-02-19 23:10:21 +00:00
Joscha
b2aee83b67
Add proper !uptime printing
2018-02-19 22:38:26 +00:00
Joscha
8024285e2e
Add botrulez support
...
This commit includes:
- Some cleaned up debug messages
- New and updated examples (they're all fixed again :D)
2018-02-19 21:31:37 +00:00
Joscha
ab14ee9fa6
Add command parsers
2018-02-19 19:30:44 +00:00
Joscha
fbf1402e24
Track bot's current SessionView in the Bot monad
2018-02-18 20:11:51 +00:00
Joscha
2fc6bf98a3
Add some utils
2018-02-17 18:09:36 +00:00
Joscha
fa33ef92d0
Add bot commands
2018-02-17 18:09:02 +00:00
Joscha
6b80c0970e
Add documentation for EuphApi.Bot
...
Also automatically respond to pings
2018-02-16 17:31:16 +00:00
Joscha
09944406ef
Reorganoze examples in test/
2018-02-16 13:07:13 +00:00
Joscha
3733b2217c
Remove EuphApi.hs
2018-02-16 12:48:33 +00:00
Joscha
5a75d9b205
Add logging
...
Also fix reconnecting logic
2018-02-16 12:48:20 +00:00
Joscha
6ba2ddfaea
Add Bot module
2018-02-16 00:19:19 +00:00
Joscha
a4e49a57ba
Simplify how Connection works
2018-02-12 12:26:02 +00:00
Joscha
6aafaac2d9
Update resolver
2018-02-10 00:32:44 +00:00
Joscha
a24c922837
Add basic test bot
2018-02-09 22:09:08 +00:00
Joscha
1d53c7a1d8
Properly parse command replies
2018-02-09 22:08:55 +00:00
Joscha
0986095850
Document API functions
2018-02-09 20:49:44 +00:00
Joscha
946d31e42d
Add almost all session and chat room commands
2018-02-09 20:17:03 +00:00
Joscha
e427e8df90
Add EventType type
...
Also improve documentation
2018-02-09 18:03:06 +00:00
Joscha
9d25ad5fba
Add test script for connecting to euphoria
...
I know this is not how tests are meant to work, but hey :)
2018-02-08 20:47:08 +00:00
Joscha
ab842462cf
Close Connection on exception while connecting
2018-02-07 21:34:40 +00:00
Joscha
c5a91968d6
Rename Threads to Connection
2018-02-07 16:53:57 +00:00
Joscha
e5fbc09f7b
Make it work
2018-02-07 16:12:28 +00:00
Joscha
615e74583e
Add disconnect function
...
Also fix parsing for ping-events.
2018-02-07 13:39:40 +00:00
Joscha
3203ecb591
Clean up Threads.hs
2018-02-06 15:30:17 +00:00
Joscha
8ab76d2240
Remove unnecessary test file
2018-02-05 19:48:31 +00:00
Joscha
81fa92db85
Clean up documentation
2018-02-05 19:47:38 +00:00
Joscha
102010f442
Rewrite Connection to not depend on CloseableChan
2018-02-05 19:31:00 +00:00
Joscha
26d08b7312
Implement EuphConnection
2018-02-05 15:43:48 +00:00
Joscha
1868cbfc00
Add temporary test for CloseableChan
2018-02-04 22:05:09 +00:00
Joscha
43cbb74abf
Comtinue implementing euphClient
2018-02-04 22:02:33 +00:00
Joscha
c06102fc47
Beautify imports
2018-02-04 22:02:05 +00:00
Joscha
dfe3445ff3
Structure api functions
2018-01-28 19:13:18 +00:00
Joscha
5b251d23b8
Update resolver
2018-01-28 16:53:22 +00:00