/little_bits_of_buddha

Little Bits of Buddha is a Telegram bot that offers daily bits of Buddhist scriptures to its users.

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

Little Bits of Buddha

A robotic monk with a wheel-maze for a head against a blue field

Managed by PDM Built with Devbox

What is Little Bits of Buddha?

Little Bits of Buddha is a Telegram bot that offers daily bits of Buddhist scriptures to its users.

Quickstart

You can access Little Bits of Buddha at https://t.me/LittleBitsOfBuddhaBot.

Developing

Built With

Python 3.11 FastAPI Telegram

Prerequisites

Contact @worldofgeese if you need help getting set up 😊

Setting up Dev

In order to get started developing run the following in your shell from inside the project directory:

⚠️ If you are using 1Password: consider using 1Password CLI to securely authenticate GitLab and to generate your SSH key.

devbox global add glab
eval "$(devbox global shellenv)"
glab auth login -h gitlab.hansen.agency -t $GITLAB_TOKEN
glab config set -h gitlab.hansen.agency git_protocol http
GITLAB_HOST=gitlab.hansen.agency glab repo clone worldofgeese/little_bits_of_buddha
devbox shell
cd little_bits_of_buddha
export TF_VAR_loft_access_key=$LOFT_ACCESS_KEY

Devbox will offer to install Nix if not already installed. devbox shell will install all other requirements into an isolated development environment and launch you into it.

Now run garden deploy when you're ready to deploy your app to your own private user namespace 🚀

Alternatively, open a cloud development environment in your browser with Devbox Cloud, Gitpod, or open in GitHub Codespaces by clicking their buttons below 👇.

Be sure to configure Gitpod and GitHub Codespaces before first start.

Open In Devbox.sh

Open in Gitpod

Open in GitHub Codespaces

Setting up your Editor

VS Code

If you use VS Code as your editor, please run devbox shell before launching VS Code from your shell with code .. This ensures Devbox's shell variables are exported into your editor session. You may alternatively choose to use the Dev Container this project ships with.

Emacs

For Emacs, this project ships with a .envrc file that can be used by the envrc package to auto-load a Devbox shell on navigating to the project. Instructions for use by Doom Emacs users can be found at the docs page. Other Emacs users can visit the envrc GitHub repository.

Gitpod and GitHub Codespaces

Set GITLAB_HOST, GITLAB_WORKFLOW_INSTANCE_URL, GITLAB_TOKEN and GITLAB_WORKFLOW_TOKEN as variables before launching your Gitpod workspace or Codespace to automatically authenticate with the GitLab Workflows and GitLab glab CLI tool on start-up. The first two variables share the same value (https://gitlab.hansen.agency). The remaining two values are the API token you generated in Prerequisites.

  • For Gitpod, set your variables here.
  • For GitHub Codespaces, set your variables here.