Base Irc module
This is a module that will contain all the irc communication functions. This will contain a class that handles session data and message parsing. To get started we will need a function to handle connecting to, and maintaining connection to, irc servers. From there the module will need a function to handle the bot's irc side output. To finish this off, a solid source for parsing messages will be needed; this function shouldn't parse the text, it should simply separate it into useful parts (sender, destination, message).
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- BrandonTomlinson
- Direction:
- Needs approval
- Assignee:
- R2Tx2 Devs
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- BrandonTomlinson
- Completed by
- BrandonTomlinson
Whiteboard
Looks like the "main loop" function will be a bit more clunky than I thought.
My thought is to add "listeners". This will be a dictionary of strings assigned to functions. I think this can work like that.
The main loop will keep the basic ping listener, then do an else if which will check the data against the listeners dictionary.