Commit Graph

18 Commits (main)

Author SHA1 Message Date
Joey Hines 333329c631
Added local api server + geoffrey_cli
ci/woodpecker/push/woodpecker Pipeline failed Details
+ Local api server is designed to allow local access to Geoffrey without a token
+ Uses a unix domain socket, allowing permissions to be handled by the OS
+ Started work on a tool to exploit this, geoffrey-cli
2022-02-06 15:32:33 -07:00
Joey Hines c3c3814d77
Misc cleanup
ci/woodpecker/push/woodpecker Pipeline was successful Details
+ info now trys to find the "best match"
+ report_out_of_stock no longer matches all items with the same sub string
+ Added type to loc strings in the bot
+ clippy + fmt
2022-01-08 16:05:56 -07:00
Joey Hines 51d6ffb7be
Added report_out_of_stock command to bot
ci/woodpecker/push/woodpecker Pipeline was successful Details
+ Added params to the build_response function
+ Updated some commands with more helpful responses
+ Fixed issue with v4 migration
+ clippy + fmt
2022-01-06 18:49:49 -07:00
Joey Hines 928e59a700
Added restock command
continuous-integration/woodpecker the build was successful Details
+ Discord command has not been tested
+ Clippy + Fmt
2021-12-26 21:36:32 -06:00
Joey Hines 18a4373313
Added 'edit' commands
continuous-integration/woodpecker the build was successful Details
+ Allows a location's name or position to be updated
+ Added a bots commands for it, two for now as subcommands are not working right
+ Logging fix
+ Updated return messages for some bot commands
2021-12-19 14:06:56 -07:00
Joey Hines 48be50dd67
Added link command
continuous-integration/woodpecker the build was successful Details
+ Link provides a link code that a user can use to link other accounts
+ This places the main auth source into MC and the plugin
+ Refactored register to accept a link code
+ Clippy + fmt
2021-12-18 11:13:18 -07:00
Joey Hines c45bb592db
Added logging to bot
+ Cleaned up error handling to make it easier to handle multiple error levels
2021-12-12 11:55:09 -07:00
Joey Hines 199516f3cc
Added set_portal to the API
+ Bumped DB version to 3
+ Renamed "tunnel" to "portal" on the location models
+ Added a new migration
+ Cargo + Clippy
2021-12-07 20:33:25 -07:00
Joey Hines 3b8c7fc60f
Various Fixes
+ Fixed output of find command
+ Fixed order of add_location params
+ Minor typo fixes
2021-12-05 18:08:35 -07:00
Joey Hines 12218d0b62
Updated models + migration infra
+ Model migration is handled in the DB modules
+ It involves writing an up and a down case
  + Both load and interact with the JSON directly
  + Done so it can be decoupled from models
2021-12-05 16:51:13 -07:00
Joey Hines 7fb4054cdb
Rough first pass of a bot
+ Uses application commands from discord
+ Tried to follow a similar structure to how the API handles commands
+ Implements add_location, add_item, selling, and find
+ Needs a lot of work lol
+ clippy + fmt
2021-11-30 21:13:56 -07:00
Joey Hines 04d9c29458
Improved tests and added CI config
+ Fixed long-standing issues with database tests. The DB is now guarded by a mutex to prevent tests running in parallel
+ Added .drone.yml to run tests on a PR and on a push
2021-11-14 17:04:03 -07:00
Joey Hines 22ffe75422
Added API token handling
+ Tokens can be added by the add_token command or via the CLI
+ Tokens are checked for authorization before a command is run
+ Added an error message field to the GeoffreyApiResponse
+ Made tokens strings instead of u64s
  + Tokens are randomly generated 64 char long alphanumeric strings
+ Clippy + Fmt
2021-10-31 11:00:07 -06:00
Joey Hines f6b797b6c1
Added logging infrastructure
+ Using log and simple_logger libs
+ Added a command line argument to set the log level
2021-10-17 13:09:50 -06:00
Joey Hines b7ad034cc6
Database fixes
+ Fixed issue where IDs of different models were colliding
+ Used built in methods to convert u64 to bytes
+ Added tests for database speed
+ Converted return time of filter to an iterator
+ Added better error handling for non-unique values
2021-05-31 18:53:27 -06:00
Joey Hines 9d104db0d6
Refactor ahead of API addition
+ This commit started as an experiment in a GraphQL api. It didn't turn out well...
2021-05-08 15:42:47 -05:00
Joey Hines 0bcb28bc47
Initial database implementation
+ Using sled as a database
+ Added functions for inserting and fetching models from the database
2021-03-10 18:31:50 -06:00
Joey Hines a3f25f214c
Initial commit
+ Basic models
+ Project Layout
+ ARCHITECTURE.md and README.md
2021-03-06 13:19:13 -06:00