Commit Graph

  • 6267a80fea Small code formatting correction Xevion 2024-01-18 11:36:33 -06:00
  • b9faf991f2 Add example JSON responses Xevion 2024-01-18 11:36:21 -06:00
  • a507e7698f Add analysis section to README Xevion 2024-01-18 11:24:22 -06:00
  • c981e07ed2 Update README Xevion 2024-01-18 03:48:31 -06:00
  • c3359de85b Add proper meeting type handling with place/time stringification fns Xevion 2024-01-18 03:30:02 -06:00
  • ef2364bd20 Fix bad formatting for 12PM (0PM) Xevion 2024-01-18 03:29:40 -06:00
  • a5bec13fe5 Remove unused MeetingTime pretty structs Xevion 2024-01-18 03:11:23 -06:00
  • 0e9bcaf07c Allow for empty values, nillable parsing Xevion 2024-01-18 03:08:09 -06:00
  • 849fa153c8 Setup term cmd handler, use latest MeetingTimeResponse struct fns Xevion 2024-01-18 02:56:11 -06:00
  • 3c70e32332 Use MeetingTimeResponse struct for direct API getter f n Xevion 2024-01-18 02:55:32 -06:00
  • 0bec62ff7a Separate Faculty item into common struct Xevion 2024-01-18 02:55:03 -06:00
  • 3d8d4e7e12 Move response struct into types.go, begin adding struct fns to match pretty Xevion 2024-01-18 02:34:08 -06:00
  • 3464208d9c Get closer to unified MeetingTimeResponse parsing Xevion 2024-01-18 02:20:37 -06:00
  • 26bdad9c94 Expand search response fidelity, footer shortcut fn Xevion 2024-01-18 02:11:43 -06:00
  • 076291de8e Complete full Search response struct Xevion 2024-01-18 02:11:10 -06:00
  • f5da706933 Improve embed, return interaction err properly, improve definition, add keywords to search Xevion 2024-01-18 00:19:32 -06:00
  • dde00824e0 Log selected term on startup Xevion 2024-01-18 00:19:06 -06:00
  • c17046fb83 Lower default result c ount, fix header for title/keyword search params Xevion 2024-01-18 00:18:57 -06:00
  • d03490ad4d Return commands at handler level, work on TermCommand implementation/definition Xevion 2024-01-17 23:57:22 -06:00
  • 2ad241a475 Remove course index from embed, use switch for optional option handling Xevion 2024-01-17 23:52:21 -06:00
  • bbd0fe94e9 Improve command handler main logging & error logs Xevion 2024-01-17 23:51:16 -06:00
  • 5d2cb4f4c8 Provide Query defaults for max/offset Xevion 2024-01-17 23:50:59 -06:00
  • 1baca364b0 Work on SearchCommandHandler & definition Xevion 2024-01-17 23:22:11 -06:00
  • 6d758ed396 Make JSON Content-Type error fatal & use structured logging Xevion 2024-01-17 23:21:49 -06:00
  • f6c087c4f9 Term fetch & POST on startup Xevion 2024-01-17 23:21:16 -06:00
  • 310c06f733 ignore .vscode Xevion 2024-01-17 23:20:30 -06:00
  • ddfdd8cc17 Log dumped filename Xevion 2024-01-17 23:20:06 -06:00
  • 52b069eb12 Improve Content-Type guessing & use in DumpResponse fn Xevion 2024-01-17 23:19:56 -06:00
  • 8da979f62e Include offset/max in Query data, improve range build fn's Xevion 2024-01-17 23:18:58 -06:00
  • 1adb6d0af0 Simplify term funcs, rename/make stringification function a struct fn Xevion 2024-01-17 21:38:43 -06:00
  • aa9f8a441d Add comments to Query functions, add individual keyword func Xevion 2024-01-17 21:38:19 -06:00
  • a2e4f1a456 Return error from Search() Xevion 2024-01-15 15:42:06 -06:00
  • c0f30fc585 Clean up main.go Xevion 2024-01-15 15:41:47 -06:00
  • 7de9813174 AddPointer helper, DumpHtml helper, fix query parameter escaping Xevion 2024-01-15 15:41:38 -06:00
  • 5ff914758e Use bulk overwrite, use test server for command registration in dev Xevion 2024-01-15 15:18:20 -06:00
  • 8425274b65 Continue documenting helpers, improve contentLength log grab Xevion 2024-01-15 13:08:31 -06:00
  • 5ffdbb6139 Add SearchCommandDefinition, use definition names directly in handler map Xevion 2024-01-15 13:07:28 -06:00
  • f9ab4870ba Add builder methods for Query, make all properties private Xevion 2024-01-14 22:28:41 -06:00
  • 41d0bd817c Use FormatInt/Itoa instead of string() for stringification Xevion 2024-01-14 22:24:45 -06:00
  • 6e5931f8ba Add WeekdaysToString edge cases (none/all days) Xevion 2024-01-14 22:24:03 -06:00
  • b331433d8d Continue work on search query, various API calls Xevion 2024-01-07 08:44:42 -06:00
  • 1c5b3a1b6d Remove colorizer hook, simplify logSplitter Xevion 2024-01-07 08:42:00 -06:00
  • 06e5cd26d5 Load environment variables before logger development check/setup Xevion 2024-01-07 08:38:56 -06:00
  • a4c00af1fe Setup search command stub, remove unused term cmd option for term lookup cmd Xevion 2024-01-07 08:38:17 -06:00
  • b4b2930a58 Add class duration to time command output Xevion 2024-01-07 08:37:43 -06:00
  • 49e5a406d7 Setup Query struct, add parameter builder function Xevion 2024-01-07 08:36:38 -06:00
  • 415dabbabb Remove guild command removal code Xevion 2024-01-04 09:38:13 -06:00
  • 42d8338ce2 Update README Xevion 2024-01-04 09:21:49 -06:00
  • 176b73e252 Return rather than panic in command registration step Xevion 2024-01-04 09:21:40 -06:00
  • ee67cc1e2c Manual, temporary guild command unregistration Xevion 2024-01-04 09:21:16 -06:00
  • 44d5e533f3 Fix CentralTime init order (again) Xevion 2023-12-26 08:07:09 -06:00
  • 14295d1264 Use central time for zerolog's timestamp acquisition Xevion 2023-12-26 07:56:13 -06:00
  • 861870f821 Attempt to disable TimeFormat in ConsoleWriter Xevion 2023-12-26 07:52:27 -06:00
  • f0caab9435 Remove timestamp from global logger Xevion 2023-12-26 07:46:29 -06:00
  • f82de64d3e Test JSON colorizing log hooks Xevion 2023-12-26 07:44:02 -06:00
  • e10edcb5f8 Move debug statement Xevion 2023-12-26 07:24:51 -06:00
  • 68cdba4d96 Add debug log on cmd count Xevion 2023-12-26 07:19:26 -06:00
  • 56793d6c28 Remove unused variables Xevion 2023-12-26 07:16:03 -06:00
  • 04fbc67f91 Move command registration away, add simple command un/re-registration Xevion 2023-12-26 07:15:14 -06:00
  • 3020632364 Add debug for current term resolution Xevion 2023-12-26 06:52:29 -06:00
  • 0785d6522f Missing tzdata fix Xevion 2023-12-26 06:50:24 -06:00
  • 0b4c8ad76f Fix location/YearDayRange init order Xevion 2023-12-26 06:46:59 -06:00
  • 544d6689af Add error types, small comment typo Xevion 2023-12-26 06:45:17 -06:00
  • aaf8b8ebcd Improve automatic term selection/identification Xevion 2023-12-26 06:45:00 -06:00
  • 073a36ba06 Use DoRequest, fix response unmarshalling Xevion 2023-12-26 06:42:52 -06:00
  • bc52c672f3 Correct redeclaration of environment variable, improve logging, comments & cmd reg/del skip handling for errors Xevion 2023-12-25 00:07:09 -06:00
  • ab00c786db Use StatusCode instead of Status on DoRequest log Xevion 2023-12-25 00:06:17 -06:00
  • a352c4a6ef Setup command deletion & id storage after registration Xevion 2023-12-24 23:59:04 -06:00
  • 8e0630fbe7 continue cleaning up main, add comments, integrate environment into command hash key, raise private network initialize sleep Xevion 2023-12-24 23:50:21 -06:00
  • 707acc99e2 Catch SIGTERM, only show CTRL+C in development mode Xevion 2023-12-24 23:41:23 -06:00
  • 96efd4bdf2 Use key directly, skip base64 Xevion 2023-12-24 22:39:30 -06:00
  • bebf017ae3 Add private networking retry ability Xevion 2023-12-24 22:27:27 -06:00
  • 7e762ff2aa Fix private URL var name, add helper for retrieving various environment variables Xevion 2023-12-24 22:07:44 -06:00
  • 37604e1eeb Prefer private Redis URL Xevion 2023-12-24 22:03:22 -06:00
  • a545cf2b1c Add structhash, hash command definition with xxhash, store & compare with redis Xevion 2023-12-24 21:59:03 -06:00
  • 5d8130c3a4 Remove session id log, move DiscordGoLogger, add redis Xevion 2023-12-24 20:51:30 -06:00
  • e03b8e2d99 Remove environment dict output Xevion 2023-12-24 20:08:36 -06:00
  • 4542587096 use RAILWAY_ENVIRONMENT var Xevion 2023-12-24 20:03:43 -06:00
  • 09f973c46a Continue improving comments & use of structured logs Xevion 2023-12-24 20:01:56 -06:00
  • 81e60ed4b7 Simplify onRequest/Response into doRequest, print environment, dev-only consolewriter Xevion 2023-12-24 19:24:19 -06:00
  • d9de5900a6 list command names during registration Xevion 2023-12-24 18:00:01 -06:00
  • 2f1f6096ce Continue switching to zerolog, add discord log implementation Xevion 2023-12-24 17:31:31 -06:00
  • e7ef04ac42 Fix global var redeclaration Xevion 2023-12-24 15:50:03 -06:00
  • 4dce1de842 Switch from logrus to zerolog, move types into types.go Xevion 2023-12-24 15:47:11 -06:00
  • 40330c37ce Switch all logging to logrus, lower session ID log level to debug Xevion 2023-12-24 15:02:01 -06:00
  • 50272dddd8 Split stderr/stdout output based on log level, increase time format verbosity Xevion 2023-12-24 14:59:53 -06:00
  • dc75ac302c Lower .env load fail to warn (non-fatal) Xevion 2023-12-24 14:52:10 -06:00
  • 93449aa57c Name field 'Days of Week' instead of 'Weekdays' Xevion 2023-12-12 00:00:50 -06:00
  • 4cb6b10226 Rename NoCache() to Nonce() Xevion 2023-12-12 00:00:38 -06:00
  • ac8a11538b ParseNaiveTime in MeetingTime API call Xevion 2023-12-11 19:30:28 -06:00
  • ef153fd153 Setup command definitions, meetingtime command fields, footer fetch time Xevion 2023-12-11 19:30:13 -06:00
  • 5b1f325280 Use custom struct for MeetingTimeFaculty.timeStart, move comand handlers Xevion 2023-12-11 19:29:42 -06:00
  • 46d53fcac3 Reformat module definition Xevion 2023-12-09 16:55:07 -06:00
  • 1a5e6082d2 Fix main setup, use package main, working bot run Xevion 2023-12-09 16:55:00 -06:00
  • ab45d39bf3 Session setup, pass cookie jar Xevion 2023-12-09 16:54:42 -06:00
  • 8f8c4c3102 NoCache, onRequest/onResponse, pluralizer helpers Xevion 2023-12-09 16:54:24 -06:00
  • 732a7445dc Add separate file for command definitions & handlers, begin meeting time command Xevion 2023-12-09 16:54:09 -06:00
  • 9d263ac2bd Setup response structs, argument inputs & request formatting Xevion 2023-12-09 16:53:50 -06:00
  • 2b949d4a3a Update dependency file, organize Xevion 2023-12-08 16:05:54 -06:00
  • 723c244e80 Upgrade session setup function to BuildRequest Xevion 2023-12-08 16:05:41 -06:00