Git Product home page Git Product logo

unseenservant's Introduction

InvisibleServant

A D&D game organisation tool for discord

Development install

  • Clone repository

    • git clone https://github.com/OperationXen/InvisibleServant.git
  • Create and activate python virtual environment (optional)

    • python -m pip install virtualenv
    • python -m virtualenv venv
    • ./venv/script/activate
    • Install dependencies
    • python -m pip install -r requirements.txt
  • Create sqllite database

    • python CoreServer/manage.py makemigrations
    • python CoreServer/manage.py migrate
  • Create Web interface user (optional)

    • python CoreServer/manage.py createsuperuser
  • Create discord token

    • This is a slightly involved process, but it is relatively well documented here: https://www.writebots.com/discord-bot-token/
    • This token should be added to the CoreServer/config/settings.py file as DISCORD_TOKEN variable
  • Add testing guild identity to config

    • Right click in Discord app on the server you're using for testing, click "Copy ID" in pop up menu
    • Add this ID to the file CoreServer/config/settings.py under the DISCORD_GUILDS variable, eg: DISCORD_GUILDS = [123123123123123123]
  • Run API/Admin server in debug mode

    • python CoreServer/manage.py runserver
  • Start the discord bot

    • python CoreServer/manage.py startbot

    • You should see text to the effect of bot has connected to discord

If so, congratulations, your bot is up and running. You can access the Django admin page at http://127.0.0.1:8000/admin using the credentials you created. The bot can be commanded inside the linked discord server while your Django server runs. Try creating a test game in the web interface and running /games

unseenservant's People

Contributors

operationxen avatar gludington avatar

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.