"Roughly 20 years ago, it was artificially created, utilizing the latest technology of the time."
Porygon is a reimagining of Discordopole for Golbat, written in go with massive amounts of input from GPT-4 to help make my spaghetti code even more spaghetti!
Note: Comparitively to Discordopole the features are amazingly lackluster. This will create a simple board like so featuring daily stats, utilising both the database and API and update based on the interval you define within the config file, that's it (for now).
A wise Jabes once said
I tried to heed this warning as best I could, providing min/max lon/lat config options, a configurable refresh interval and the ability to disable active counts so you can tax your system as much or as little as you want.
git clone https://github.com/roundaboutluke/porygon.git
cp default.toml config.toml
& adjust config.toml accordinglygo build .
pm2 start ./porygon --name porygon
Thanks to @lenisko you can now customise Porygon's localisation and layout. Simply cp templates/current.json templates/current.override.json
and edit accordingly, using the examples in current.json. Note that some of the more generic emojis are contained within this.
git pull
go build .
pm2 restart porygon
Porygon requires your bot have the server permissions Send Messages, Read Message History and Embed Links to function.
I don't really know what I'm doing which is probably evident to anyone that does looking at my spaghetti, but it works for me so hopefully it does for you too. People that have more of a clue have made some great improvements to the codebase.
Many things, I've started tracking them in Issues, please feel free to add more!