Giter Site home page Giter Site logo

connorhsm / dictator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from twohoursonelife/dictator

0.0 0.0 0.0 610 KB

The Dictator of 2HOL. A Discord bot taking care of displaying user and player information about Two Hours One Life in our Discord guild.

Home Page: https://twohoursonelife.com

License: The Unlicense

Python 99.27% Dockerfile 0.73%

dictator's Introduction

dictator

The Dictator of 2HOL. Taking care of displaying user and player information about Two Hours One Life in our Discord guild

Features

  • Generates a new Discord guild member their game access key when they pass the Discord onboarding (Selecting roles, channels, agreeing to rules)
  • Members can access their game access key
  • Members can view game stats of individual players
  • Generates financial forecast based upon our Open Collective
  • Displays current living population in game
  • Mods can see which member was a specific character in game
  • Mods can ban and unban members from the game
  • Mods can regenerate a members game access key

Commands

Commands must begin with the configured prefix. By default this is - (hyphen)

  • help
  • key
  • ping
  • version
  • rtfm
  • whowas
  • unban
  • ban
  • info
  • regenerate

Setup guide to run the bot

This guide assumes the database and discord are setup as required

Steps

  1. Clone the repository and change into the directory
  • git clone https://github.com/twohoursonelife/dictator.git
  • cd dictator
  1. Copy example.env to .env, set required environment variables and optional variables if necessary
  1. Run the bot
  • docker compose up -d --pull always

or for local development

  • pipenv sync
  • pipenv shell
  • python run dictator/dictator.py

The bot should now be running

Environment variables

See example.env

You can copy and rename this file to .env to easily set environment variables

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.