1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 01:43:50 +02:00
Commit Graph

53 Commits

Author SHA1 Message Date
802fd9823d Client
- Fixed bug whereby the leaving of multiple channels broke after the first channel in `leaveChannel(string[])`

Unit tests

- Test leaving multiple channels, a single channel (singular) and a single channel (multi)
2023-03-09 11:11:44 +02:00
7a9bc642ea Unit tests
- Corrected comment
2023-03-09 08:46:28 +02:00
35ce86478d Unit tests
- Test `directMessage(string, string)` (so singular) to send to myself
- Adding such a test will test the direct message receive handler which helps us a lot in increasing code coverage
2023-03-09 08:44:09 +02:00
5155912bdd Unit tests
- Added a unit test for the (single) `channelMessage(string, string)`
2023-03-09 08:40:42 +02:00
fe91adde0a Client
- Fixed bug in `channelMessage(string, string[])` in the case where multiple channels were specified then the message would fail to send to the channels after the first one specified

Unit tests

- Disabled using `command(string, string, string)` to join a  channel, rather use `joinChannel(string)`
- Added tests for singular `channelMessage(string, string[])` and multiple `channelMessage(string, string[])`
2023-03-09 08:37:38 +02:00
6f0a9e32ca Client
- Fixed bug within `channelMessage(string,string[])` which would leave the channel provided instead of sending the message provided to the the channel provided as it called `leaveChannel(channel[0])` instead of `channelMessage(string, string)`
2023-03-08 20:17:40 +02:00
8812e247cb - Fixed unittest testing server address 2023-01-07 22:33:26 +02:00
3d9724565d Upgraded to latest dlog version 2023-01-07 22:33:09 +02:00
b9b666ef6c Upgraded to new Eventy engine v0.4.0 2022-11-28 13:48:38 +02:00
6a394ad4e8 Upgraded event engine to 0.3.2 2022-11-26 18:23:06 +02:00
565d6b10d8 Added dependencies to the README 2022-11-26 18:12:05 +02:00
f5b0fe5118 Added isValidText(string) method to return whether a given string is valid as in not containing any invalid illegal characters 2022-11-07 09:23:18 +02:00
3e01ef17d6 Added missing documentation header
Implemented `channelMessage(string, string[])` and `channelMessage(string, string)`
2022-11-06 11:38:02 +02:00
d7375b85a5 - Implemented directMessage(string, string[]) and removed the @disable annotation
- Implemented `directMessage(string,s tring)`
2022-11-06 11:08:47 +02:00
83e900834f Export messages.d 2022-11-05 23:26:21 +02:00
8e9e2daa3f This was NOT meant to be final! 2022-11-05 21:55:02 +02:00
035af34a31 - Implemented leaveChannel(string[]) and leaveChannel(string) 2022-11-05 20:42:31 +02:00
4efb1d5860 Added notice on supported standards 2022-11-05 17:01:12 +02:00
6731364402 Removed notice 2022-11-05 16:46:42 +02:00
295562c7b4 Enabled unit tests to exit 2022-11-05 16:44:30 +02:00
1ad1c63d85 - Updated onGenericCommand() and onResponse() handlers to include the from field
- Implemented PRIVMSG handling for both channel and direct messages
2022-11-05 16:41:26 +02:00
b974da8151 Fixed bug which would have caused a possible crash? Well somewhere, I am not sure if thread spanwed is default in evwenty, in anyu case, fixed it 2022-11-05 16:31:19 +02:00
f70e521d36 Added notice of alpha-quality software 2022-11-05 16:25:03 +02:00
2fe16cab67 Cleaned up messages.d
Moved ReplyType to new module constants.d
2022-11-05 16:21:07 +02:00
4ebde0a0f7 - Added DNS resolution on hostnames 2022-11-05 13:07:13 +02:00
28d18e3761 Always point to latest version of API documentation 2022-11-05 12:57:20 +02:00
d61957f8ce Added documentation link, removed old TODOs 2022-11-05 12:55:43 +02:00
3f95a48186 - Disabled unimplemented methods with @disable
- Added ddoc headers to methods
2022-11-05 12:53:31 +02:00
919a0d09e9 - Added some documentation headers
- Removed uneeded TODO and FIXME
2022-11-05 12:41:52 +02:00
924ccbaacc - Calling quit() will now shutdown the whole client 2022-11-05 12:37:27 +02:00
fbf9ef9eb8 Fixed compilation error 2022-11-05 12:14:03 +02:00
729d3bc1c6 Implemented quit() command 2022-11-05 12:13:23 +02:00
6bdf6b4401 - Removed unused method ask()
- Removed unused public fields
- Quit message field been added to ConnectionInfo struct
2022-11-05 12:11:41 +02:00
441fd20302 - Removed testing code from processMessage(ubyte[])
- Implemented encode()
2022-11-05 12:10:51 +02:00
15d2fa2deb - Fixed a bug whereby an unsupported response code would cause a crash in the event handler
- Added a default response type (in case an unspported one comes in)
2022-11-03 17:05:27 +02:00
e2ba0bdb27 Client
- Moved the processing of command replies out or client.d and placed inside of messages.d
2022-11-02 18:55:30 +02:00
5f1d1b01fa Added following functionality:
- command(Message) - Let the user isssue a generic command
- joinChannel(string) - join the given channel
- When a numeric reply is received a Reply struct is now created containing a boolean indicating if there is an error, the ReplyType (as per the RFC) and the "params" (as a string), this is done via overriding the `onCommandReply(Reply)` method
- Added onGenericCommand(Message) - for when it doesn't have a special handler and is not a numeric reply (command response)
- Added special handler for private messages and channel messages (not used yet)
- WIP: PrivMesg handling

New types:

- Reply - response struct type
- ReplyType - the numeric response number
- Renamed Message fields
- Moved encode() and decode() into Message as static methods
2022-11-02 15:54:46 +02:00
a4b2862e81 New test shows the server name here could be anything so we have a working basic prototype (v0.0.1 onwards) 2022-11-01 14:08:04 +02:00
9a2f3b17ba README
- Added todos for now
2022-11-01 14:03:10 +02:00
95366e941a Cleaned up 2022-11-01 13:58:42 +02:00
a9ac3540b9 Merge branch 'master' of github.com:deavmi/birchwood 2022-11-01 13:42:29 +02:00
cbe41bff80 Eventy integration
- Fully integrated eventy
- PongEvent and IRCEvent along with respective GenericSignal and PingSignal handlers added
- Moved parsing of messages into Message class

Debugging

- Added dlog which always logs (for now, we should add a debug clause that enables it)
2022-11-01 13:41:39 +02:00
ce8dbd7f5e - Implemented Message type to hold messages
- Create IRCEvent type
- Print out information for handling of IRCEvent in the signal handler registered with Eventy
- Finished initial message parser (splits into `from`, `command` and `params`)
2022-10-31 19:24:10 +02:00
c3aa14e2ce
Fixed centering for GitHub markdown rendering 2022-10-30 17:54:45 +02:00
e4bb38c766 Implemented proof-of-concept eventy integration with a default event handler 2022-10-30 17:29:40 +02:00
c3ec3b7fe7 Updated tagline for dub package 2022-10-30 17:05:43 +02:00
e5f1c21dbc Set license to LGPL 3.0 2022-10-30 17:05:19 +02:00
afccee8ad9 Updated .gitignore 2022-10-30 17:01:53 +02:00
6f20ef09fa Added initial working code 2022-10-30 16:59:50 +02:00
0985017f49 Added igitignore 2022-10-30 16:59:40 +02:00