Giter Club home page Giter Club logo

dagbot's Introduction

dagbot

The official Repository for dagbot, the self proclaimed n1 meme bot. https://dagbot.daggy.tech

SQL Data

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

configuration

configuration.yml

This is a file which stores all of dagbots data. You can view a sample in the repository

.env

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.

Dagbot Website

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.

Running Normally

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 dagbot

Docker Build

Please 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

Cloningf Repo and Building Image locally

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   

Using the dockerhub image

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:latest

kubernetes

This 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.env

Create a pod using the deployment.yaml file.

kubectl apply -f deployment.yaml

Thats it you now have a dagbot kubernetes pod deployed!

Server

Join the discord for help.

I recommend usingmy hosted version, but feel free to self host. Drop a star and read the license!

dagbot's People

Contributors

abnormal0666 avatar cyrus01337 avatar daggy1234 avatar dazhpro avatar dependabot-preview[bot] avatar linkhehe avatar mileshua avatar schmelto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dagbot's Issues

Dependabot can't resolve your Python dependency files

Dependabot can't resolve your Python dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Creating virtualenv dagbot-Y9SQ1czV-py3.9 in /home/dependabot/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies...

  PackageNotFound

  Package goslate (1.5.1) not found.

  at /usr/local/.pyenv/versions/3.9.1/lib/python3.9/site-packages/poetry/repositories/pool.py:144 in package
      140│                     self._packages.append(package)
      141│ 
      142│                     return package
      143│ 
    → 144│         raise PackageNotFound("Package {} ({}) not found.".format(name, version))
      145│ 
      146│     def find_packages(
      147│         self, dependency,
      148│     ):

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.