Giter Site home page Giter Site logo

dynamicbio's Introduction

DynamicBio - Update your twitter bio frequently!

CI badge Docker Hub Docker image build and push

This project uses ktor and kord. View this project in action here.

To run it yourself, use the docker-compose-example.yml:

version: '3'
services:
  dynamicbio:
    env_file:
      - .env # your .env file
    image: warriorzz/dynamicbio # use warriorzz/dynamicbio:arm64-latest for arm64
    restart: unless-stopped
    container_name: dynamicbio
    depends_on:
      - mongo
    environment:
      - DATABASE_CONNECTION_STRING=mongodb://root:root@mongo
      - DATABASE_NAME=database
      - OAUTH_ACCESS_TOKEN= # Your twitter OAuth token (credentials for user access)
      - OAUTH_ACCESS_SECRET= # Your twitter OAuth secret (credentials for user access)
      - CONSUMER_ACCESS_TOKEN= # Your twitter app token (credentials for app access)
      - CONSUMER_ACCESS_SECRET= # Your twitter app secret (credentials for app access)
      - DISCORD_API_URL=http://dynamicbiobackend/api/v1 # The API url for the discord module
      - ENABLE_DISCORD=true # To disable the discord module, replace 'true' with 'false'
      - DISCORD_GUILD_ID= # The ID of the guild (your discord account and your bot must be joined)
      - DISCORD_USER_ID= # Your discord ID
      - DISCORD_SECRET= # The discord module secret (see discord module section)
    networks:
      - app

  backend:
    container_name: dynamicbiobackend
    build:
      context: .
      dockerfile: backend.Dockerfile
    networks:
      - app
    environment:
      - DISCORD_TOKEN= # Discord token for your bot
      - DATABASE_NAME=database
      - DATABASE_CONNECTION_STRING=mongodb://root:root@mongo
    depends_on:
      - mongo
    ports:
      - 80:80
  mongo:
    image: mongo
    container_name: dynamicbio_database
    environment:
      - MONGO_INITDB_DATABASE=database
      - MONGO_INITDB_ROOT_USERNAME=root
      - MONGO_INITDB_ROOT_PASSWORD=root
    volumes:
      - dynamic_bio:/data/db
    networks:
      - app

volumes:
  dynamic_bio:

networks:
  app:

Modules

Discord Module

To enable the discord module, you need to provide a "DISCORD_SECRET" which the bot will send you by using the generate command (!update/!generate/!secret).

Update command

dynamicbio's People

Contributors

nycodeghg avatar warriorzz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nycodeghg

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.