quotesky

module
v0.0.0-...-d270eb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: MIT

README

QuoteSky

Drawing
drawing of bot

Protocol

  • QUOTE:POST – Posts a random quote.
  • QUOTE:GET – Gets a random quote.
  • QUOTE:LIST – Lists all quotes.
  • QUOTE:ADD <quote> – Adds a new quote.
  • QUOTE:REMOVE <quote> – Removes a quote.
  • QUOTE:UPDATE <quote> – Updates a quote.

Setup

  1. Clone the repository
  2. Create a .env file in the root directory and add the following:
touch .env
echo "BLUESKY_HANDLE=<your_handle>" >> .env
echo "BLUESKY_PASSWORD=<your_password>" >> .env

Running the project

  1. Install the dependencies
go mod download

Build the project

mkdir -p tmp
go build -o ./tmp/quotesky ./...

Run the CLI

./tmp/quotesky --help

Directories

Path Synopsis
cmd
lib
api
Request types and handlers
Request types and handlers
db
Database connection
Database connection

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL