GithubHelp home page GithubHelp logo

donotresuscitate / mnemosym Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vaarn/mnemosym

0.0 0.0 0.0 67 KB

A discord bot for Vaults of Vaarn

License: GNU General Public License v3.0

Python 97.04% Dockerfile 1.36% Jinja 1.60%

mnemosym's Introduction

MNEMOSYM

A discord bot for Vaults of Vaarn

Development

Requirements:

  • Python >= 3.9
  • pip
# Create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate

# Install the dependencies
(venv)$ pip install -r requirements-dev.txt

Running the Bot

Setting up a Discord Application

Before we can invite Mnemosym to our discord channel, we will first need to create a discord application, a bot account, and to note down the OAuth token. These steps can be found in the documentation for discord.py.

Creating the Environment Variables

Copy the .example_env file to .env and modify it to include the OAuth token from the previous step. This file is used when running the scripts locally, and is passed into the docker container at runtime.

Running the back end

# Make sure you're using the latest version of the data files.
python scripts/get_tables.py
# Run bot
python -m mnemosym.bot

Docker Container

A Dockerfile has been provided to automate the above build and execution processes.

Build the docker image

docker build -t mnemosym .

Run the container

docker run --env-file .env -d mnemosym

Acknowledgements

Vaults of Vaarn was created by Leo Hunt and licensed under CC BY-SA 4.0

Mnemosym's tables are sourced form OmniCzech's vaarn-generators.

mnemosym's People

Contributors

gulluth avatar asipiere avatar donotresuscitate 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.