Commit Graph

44 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire 6a394ad4e8 Upgraded event engine to 0.3.2 2022-11-26 18:23:06 +02:00
Tristan B. Velloza Kildaire 565d6b10d8 Added dependencies to the README 2022-11-26 18:12:05 +02:00
Tristan B. Velloza Kildaire 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
Tristan B. Velloza Kildaire 3e01ef17d6 Added missing documentation header
Implemented `channelMessage(string, string[])` and `channelMessage(string, string)`
2022-11-06 11:38:02 +02:00
Tristan B. Velloza Kildaire d7375b85a5 - Implemented `directMessage(string, string[])` and removed the @disable annotation
- Implemented `directMessage(string,s tring)`
2022-11-06 11:08:47 +02:00
Tristan B. Velloza Kildaire 83e900834f Export messages.d 2022-11-05 23:26:21 +02:00
Tristan B. Velloza Kildaire 8e9e2daa3f This was NOT meant to be final! 2022-11-05 21:55:02 +02:00
Tristan B. Velloza Kildaire 035af34a31 - Implemented `leaveChannel(string[])` and `leaveChannel(string)` 2022-11-05 20:42:31 +02:00
Tristan B. Velloza Kildaire 4efb1d5860 Added notice on supported standards 2022-11-05 17:01:12 +02:00
Tristan B. Velloza Kildaire 6731364402 Removed notice 2022-11-05 16:46:42 +02:00
Tristan B. Velloza Kildaire 295562c7b4 Enabled unit tests to exit 2022-11-05 16:44:30 +02:00
Tristan B. Velloza Kildaire 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
Tristan B. Velloza Kildaire 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
Tristan B. Velloza Kildaire f70e521d36 Added notice of alpha-quality software 2022-11-05 16:25:03 +02:00
Tristan B. Velloza Kildaire 2fe16cab67 Cleaned up messages.d
Moved ReplyType to new module constants.d
2022-11-05 16:21:07 +02:00
Tristan B. Velloza Kildaire 4ebde0a0f7 - Added DNS resolution on hostnames 2022-11-05 13:07:13 +02:00
Tristan B. Velloza Kildaire 28d18e3761 Always point to latest version of API documentation 2022-11-05 12:57:20 +02:00
Tristan B. Velloza Kildaire d61957f8ce Added documentation link, removed old TODOs 2022-11-05 12:55:43 +02:00
Tristan B. Velloza Kildaire 3f95a48186 - Disabled unimplemented methods with @disable
- Added ddoc headers to methods
2022-11-05 12:53:31 +02:00
Tristan B. Velloza Kildaire 919a0d09e9 - Added some documentation headers
- Removed uneeded TODO and FIXME
2022-11-05 12:41:52 +02:00
Tristan B. Velloza Kildaire 924ccbaacc - Calling `quit()` will now shutdown the whole client 2022-11-05 12:37:27 +02:00
Tristan B. Velloza Kildaire fbf9ef9eb8 Fixed compilation error 2022-11-05 12:14:03 +02:00
Tristan B. Velloza Kildaire 729d3bc1c6 Implemented quit() command 2022-11-05 12:13:23 +02:00
Tristan B. Velloza Kildaire 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
Tristan B. Velloza Kildaire 441fd20302 - Removed testing code from `processMessage(ubyte[])`
- Implemented encode()
2022-11-05 12:10:51 +02:00
Tristan B. Velloza Kildaire 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
Tristan B. Velloza Kildaire 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
Tristan B. Velloza Kildaire 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
Tristan B. Velloza Kildaire 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
Tristan B. Velloza Kildaire 9a2f3b17ba README
- Added todos for now
2022-11-01 14:03:10 +02:00
Tristan B. Velloza Kildaire 95366e941a Cleaned up 2022-11-01 13:58:42 +02:00
Tristan B. Velloza Kildaire a9ac3540b9 Merge branch 'master' of github.com:deavmi/birchwood 2022-11-01 13:42:29 +02:00
Tristan B. Velloza Kildaire 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
Tristan B. Velloza Kildaire 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
Tristan B. Velloza Kildaire c3aa14e2ce
Fixed centering for GitHub markdown rendering 2022-10-30 17:54:45 +02:00
Tristan B. Velloza Kildaire e4bb38c766 Implemented proof-of-concept eventy integration with a default event handler 2022-10-30 17:29:40 +02:00
Tristan B. Velloza Kildaire c3ec3b7fe7 Updated tagline for dub package 2022-10-30 17:05:43 +02:00
Tristan B. Velloza Kildaire e5f1c21dbc Set license to LGPL 3.0 2022-10-30 17:05:19 +02:00
Tristan B. Velloza Kildaire afccee8ad9 Updated .gitignore 2022-10-30 17:01:53 +02:00
Tristan B. Velloza Kildaire 6f20ef09fa Added initial working code 2022-10-30 16:59:50 +02:00
Tristan B. Velloza Kildaire 0985017f49 Added igitignore 2022-10-30 16:59:40 +02:00
Tristan B. Velloza Kildaire 230fa98cd0 Updated package manifest 2022-10-30 16:59:31 +02:00
Tristan B. Velloza Kildaire 775d869811 Added README along with branding 2022-10-30 16:59:23 +02:00
Tristan B. Velloza Kildaire 6c98959492 Initial commit 2022-10-29 18:04:00 +02:00