Skip to content

magello-group/joel-bot

Repository files navigation

joel-bot

Här ska vi skriva funktionalitet så småningom, men det är dag tre kl 17:43 så vi avbryter nu.

Building

Simply build with cargo:

cargo build
...
   Compiling joel-bot v1.0.1 (/home/kazie/src/github/joel-bot)
    Finished dev [unoptimized + debuginfo] target(s) in 5.35s

Debug using Dev Containers

NOTE: This environment was set up using GitHub Copilot.

This Rust project supports developing using Dev Containers so you don't need Rust locally.

Requirements

  • In Windows you will need WSL2 as Dev Containers works best with UN*X based environment
    • Linux and MacOS environments does not need this requirement.
  • A Docker environment
    • Any Docker-compatible environment like e.g., Docker for Desktop (Windows/Linux), Rancher Desktop (all environments) or native Docker (Linux) works.
  • Visual Studio Code with the Remote Development extension
    • Or a IDE that supports devcontainers like e.g. GitHub Codespaces

Open the dev container environment

  • Clone this repo to your local development environment.
  • Open the folder in Visual Studio Code.
  • Open the Visual Studio Code command palette (F1/SHIFT+CTRL+P/SHIFT+⌘+P) and then select Dev containers: Reopen in Container.
  • Create a .env file in the root folder containing the value for JOEL_BOT_SLACK_TOKEN
    • DO NOT COMMIT THIS (The .env file is excluded in .gitignore so it should not be an issue.)

And that's it, you can now rebuild/debug joel-bot.

Troubleshooting

In the event you change dependencies or environment variables, run the Rebuild Container command in the command palette to update the Dev Container.

About

The Joel bot for Magello

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5