From 8fa2d24431726ea6a65cacf49098e8f15df363bd Mon Sep 17 00:00:00 2001 From: Storm <31986015+washedupdeveloper@users.noreply.github.com> Date: Sat, 29 Mar 2025 21:30:07 +0100 Subject: [PATCH] nixified the README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index ca7fa59..3f1ef2d 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,12 @@ You can view the [.env-sample](./.env-sample) as an example. ## Notes - The bot gracefully shuts down on CTRL+C. + +### If using nix + +*and if you are NOT using direnv* +At the project root directory, run: +`nix develop` and you'll have a development shell with the `go.mod` specified version of Golang (1.23.4 as of writing) +And if you're a chad, using direnv, you'll automatically load the environment when you `cd` into the project. + +The flake also comes with **pre commit hooks** that will be run automatically when running `nix flake check`, it can also be extended to run arbitrary tests.