Skip to content

circularsprojects/foodbot-swift

Repository files navigation

foodbot (swift rewrite)

Made using DDBKit, works on both macOS and Linux.

Important

DDBKit is currently still in-development, which means you won't be able to build this yourself, unless you're a tester.
Follow the org for updates: https://github.com/DDBKit

Running your own instance

Replace the bot token environment variable in docker-compose.yml, run docker compose build, and then run docker compose up -d to start the bot.

Alternatively, you can install swift manually and compile the bot with swift build and swift run.

Analytics

(the bot used to have an analytics webserver, but this has been removed)

The bot has in-built support for analytics using InfluxDB.
You can configure the env variables for InfluxDB in the docker compose file, or however you would normally manage environment variables.
If you set ANALYTICS_ENABLED to true, you must also provide a value for each of the INFLUX environment variables, or it will not work. (except INFLUX_LOCATION, which is optional)

The analytics module is meant to be as modular as possible. It's loaded as a DDBKit extension, and should be able to be dropped into any other DDBKit project with minimal modification.

About

A discord bot that posts food, now in Swift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published