The official Repository for dagbot, the self proclaimed n1 meme bot. https://dagbot.daggy.tech
Dagbot needs 3 Tables in an SQL databse to function. You can use get the SQL from the migration.sql file and run em
Do note this is postgresql database
This is a file which stores all of dagbots data. You can view a sample in the repository
ONLY FOR DOCKER/k8s
Customise the dagbot.env
If you do not want to use yaml you can set env vars and dagbot will autp generate the yml. This will only work whn using the container system.
There is a task in a file named statupload.py this file just periodically uploads statistics to the dagbot-app api to display o the website.
You should remove this file.
To Get Dagbot up and Running its as simple as runnig the script below. Please note poetry is required. Configuration.yml is required
poetry install
poetry run python -m dagbotPlease note these docker configs are special to dagbot. For general purpose discord.py Dockerfiles please use these ones instead.
https://github.com/Gorialis/discord.py-docker/tree/master/dockerfiles
Build Image
docker build -t dagbot .Run with configuration.yml
docker run -v ${PWD}/configuration.yml:/configuration.yml dagbot Run with .env
docker run --env-file dagbot.env dagbot Run with configuration.yml
docker run -v ${PWD}/configuration.yml:/configuration.yml daggy1234/dagbot:latest Run with .env
docker run --env-file dagbot.env daggy1234/dagbot:latestThis assumes you have a working kubernetes cluster with kubectl
Create a configmap named config with your env file
kubectl create configmap config --from-env-file=dagbot.envCreate a pod using the deployment.yaml file.
kubectl apply -f deployment.yamlThats it you now have a dagbot kubernetes pod deployed!
Join the discord for help.
I recommend usingmy hosted version, but feel free to self host. Drop a star and read the license!