primeweb

command module
v0.0.0-...-ee94c16 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 11 Imported by: 0

README

primeweb

A prime number bot, but as a website.

How it Works

This was hacked together somewhat quickly as the Twitter bot looks imminent to shut down. There's a few components:

  • main.go: a small script which repurposes parts of primebot to generate the prime numbers, as well as backfill and import features
  • Hugo: used to build the primes static site
  • bot.yml: a workflow which builds on an hourly cadence to generate the next prime number in sequence
  • gh-pages.yml: a workflow which builds the github pages deployment of the static site on any push to main

State is written to the _current file, and is used to determine the last prime number that was generated.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
bot module

Jump to

Keyboard shortcuts

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