Commit Graph

118 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire d15f6ad3b8
Merge pull request #1 from bonobonet/rany2-patch-1
Implement rot13
2023-06-17 22:30:59 +02:00
rany2 3326a4f297
Implement rot13 2023-06-17 23:29:47 +03:00
Tristan B. Velloza Kildaire 4f7cec3660 Config
- Join `#bot` rather than `#general`
2023-06-17 21:42:31 +02:00
Tristan B. Velloza Kildaire 96e8c3c1f2 Bot
- Enabled `rot13` module
2023-06-17 21:38:32 +02:00
Tristan B. Velloza Kildaire 162e874676 Rot13
- Created stub
2023-06-17 21:38:20 +02:00
Tristan B. Velloza Kildaire fb118448e4 DeavmiComedy
- Refactored the `accepts()` method
- Make use of `commandStr`
2023-06-17 18:15:56 +02:00
Tristan B. Velloza Kildaire cf856f353d DeavmiComedy
- Marked class as `final`
2023-06-17 18:14:42 +02:00
Tristan B. Velloza Kildaire cb1aad368f EskomCalendar API
- Marked class as `final`
2023-06-17 18:14:40 +02:00
Tristan B. Velloza Kildaire a09573b85a Ping
- Marked class as `final`
2023-06-17 18:13:59 +02:00
Tristan B. Velloza Kildaire eed8e578e1 Ping
- Removed irrelevant TODO
2023-06-17 18:11:43 +02:00
Tristan B. Velloza Kildaire 42af42e167 Ping
- Wait for the process to exit, then determine exit status
- If there is a clean exit (exit code 0) then we read stdout (fd 0)
- If there is a non-zero exit code then we read stderr (fd 2)
2023-06-17 18:09:58 +02:00
Tristan B. Velloza Kildaire b67784e20d Ping
- Ping module implemented
2023-06-17 18:02:56 +02:00
Tristan B. Velloza Kildaire 5cba42f0a6 Ping
- Moved TODO
2023-06-17 16:17:45 +02:00
Tristan B. Velloza Kildaire 7cfeb5ebef Ping
- If there is more than one argument or no argument then send an error message to the channel of origin
2023-06-17 16:17:15 +02:00
Tristan B. Velloza Kildaire 054c39753e Ping
- Extract the domain to be pinged
2023-06-17 16:15:51 +02:00
Tristan B. Velloza Kildaire 7b7dd31689 Bot
- Disabled `reactCommand()` call in `onChannelReceived()`
- Enabled `Ping` module
2023-06-17 16:15:31 +02:00
Tristan B. Velloza Kildaire bd8c7bed52 Ping
- Removed incorrect module declaration
2023-06-17 16:10:54 +02:00
Tristan B. Velloza Kildaire 2ce8d58246 Ping
- Added stub class
- Implemented working `accepts()` method
- Added stub  `react()` method
2023-06-17 16:10:29 +02:00
Tristan B. Velloza Kildaire 52dc368b97 Ping
- Added new module stub
2023-06-17 16:08:59 +02:00
Tristan B. Velloza Kildaire d37797c627 DeavmiComedy
- Added some debug prints
2023-06-17 16:08:20 +02:00
Tristan B. Velloza Kildaire 935bb072b3 EskomCalendarAPI
- Documented the branches
2023-06-17 16:08:03 +02:00
Tristan B. Velloza Kildaire ed61805b1a EskomCalendar API
- Added range support
- Fixed range elements length requirement bug
2023-06-17 16:00:24 +02:00
Tristan B. Velloza Kildaire ee900a7053 EskomCalendarAPI
- Added some range parsing for the `.eskom areas [n-m]` command
2023-06-17 15:47:40 +02:00
Tristan B. Velloza Kildaire edaca4849a DeavmiComedy
- Fixed funny text generation
2023-06-17 15:40:17 +02:00
Tristan B. Velloza Kildaire a6589c7174 Dub
- Updated `targetType` to that of `executable`
2023-06-17 14:46:35 +02:00
Tristan B. Velloza Kildaire a6e38e3184 EskomCalendar API
- Added ability to get the areas available
- Added instance of `EskomCalendar` which is used to fetch schedules and areas
2023-06-17 14:44:11 +02:00
Tristan B. Velloza Kildaire c351c1dd53 EskomCalendar
- If an empty command is provided then send an error message back to the channel of origin
2023-06-17 14:37:06 +02:00
Tristan B. Velloza Kildaire 990c8757de Bot
- Enabled `EskomCalendarAPI` module
2023-06-17 14:33:40 +02:00
Tristan B. Velloza Kildaire e93364f4de EskomCalendar API
- Work-in-progress for new module for getting load shedding schedules
2023-06-17 14:33:13 +02:00
Tristan B. Velloza Kildaire f5a440e244 Mod
- Documented module
2023-06-17 14:28:42 +02:00
Tristan B. Velloza Kildaire 8fb7475a8c DeavmiComedy
- Try this?
2023-06-17 14:23:29 +02:00
Tristan B. Velloza Kildaire 9b188bd598 DeavmiComedy
- Extract the part of the message to funny
- Added broken regex replacement code
2023-06-17 14:19:48 +02:00
Tristan B. Velloza Kildaire 40e4ca980b Bot
- On construction add some testing modules via a call to `addTestModules()`
- Implemented `addTestModules()` which will create instances of the modules being tested and add them such that they are then activated for runtime
- Whenever a message is received on any channel we now will loop through all the `Mod`ules and see which on es to call their `react()` routines on (after a check with their respective `accepts()`)
2023-06-17 14:02:46 +02:00
Tristan B. Velloza Kildaire 5bfbf446f9 DeavmiComedy
- Added implementation of the `accepts()` method to this module
- `react()` is still work-in-progress
2023-06-17 14:01:14 +02:00
Tristan B. Velloza Kildaire 98f3cb0e32 Mod
- Defined the structure of a module for the botty
- This includes an `accepts()` method which determine if the routine should be called
- it also includes the routine itself in the form of a `react()` method
- There is a stored `Bot` instance accessible from the super class that can be used in order to send messages to a channel and general bot-related tasks (birchwood tasks too)
2023-06-17 14:00:39 +02:00
Tristan B. Velloza Kildaire 81b560e02e Moved configuration code to `botty.config` module 2023-06-17 13:01:51 +02:00
Tristan B. Velloza Kildaire 7e20210a49 App
- Extract the channels to join from the `Config` struct by splitting them via `,`
2023-06-17 12:42:48 +02:00
Tristan B. Velloza Kildaire fcecf87784 Bot
- Constructor now accepts a `string[]` containing channels of which it should join
2023-06-17 12:42:26 +02:00
Tristan B. Velloza Kildaire b7ca140f6b Config
- Now parses for a `nickname` field
- Now parses for a `channels` field which must contain comma-separated channel names
2023-06-17 12:35:33 +02:00
Tristan B. Velloza Kildaire 785295f039 git pushMerge branch 'master' of github.com:bonobonet/botty 2023-06-17 12:32:13 +02:00
Tristan B. Velloza Kildaire 920b7fd511 App
- Take in command-line arguments
2023-06-17 12:31:48 +02:00
Tristan B. Velloza Kildaire 4e3cf9a61e
Update README.md 2023-06-17 12:31:32 +02:00
Tristan B. Velloza Kildaire 349408bd64 Merge branch 'master' of github.com:bonobonet/botty 2023-06-17 12:30:52 +02:00
Tristan B. Velloza Kildaire 6bbec7484d Config
- Added example configuration file
2023-06-17 12:29:27 +02:00
Tristan B. Velloza Kildaire ae4a21326b App
- Added configuration file parsing
2023-06-17 12:28:43 +02:00
Tristan B. Velloza Kildaire 34964ca4eb
Create d.yml 2023-06-17 12:27:03 +02:00
Tristan B. Velloza Kildaire 7094e6ce3e Dub
- Updated
2023-06-14 16:11:37 +02:00
Tristan B. Velloza Kildaire a24c8e7f5e Dub
- Require MINIMUM version of birchwood
2023-06-13 20:30:54 +02:00
Tristan B. Velloza Kildaire 018d61e987 Bot
- Added TODO regarding wanting `getAreas()` implemented
2023-06-13 17:17:46 +02:00
Tristan B. Velloza Kildaire 67233e7378 - Added LICENSE 2023-06-13 15:09:55 +02:00