Table of Contents
Welcome to the magical tavern! Travelers and adventurers from far and wide gather here to discuss their next adventure or simply just meet over a good ol' pint of beer.
magicaltavern is a Discord Bot written in Python that aims to organise D&D/PnP Discord Servers by providing handy tools.
These tools include:
- Commands to find players for a PnP campaign
- A database integration to store interested members and automatically create a server cateory and roles for them to talk in
- Cool things
Here are some instructions to self-host the bot. The bot currently has no public instances and does not support public instances either.
This is an example of how to list things you need to use the software and how to install them.
-
pip
python -m ensurepip --upgrade
- A running, connectable instance of magicaltavern-api with at least one valid API key present.
-
Clone the repo
git clone https://github.com/bitfl0wer/magicaltavern.git
-
(Optional) Create and activate a venv in the project directory
Linux and macOS:python -m venv venv source ./venv/bin/activate
-
Install pip requirements
pip install -r requirements.txt
-
Modify the files in the
/config
directory to fit your needs. Inconfig/config.json
, set theguilds
attribute to the id(s) of the guilds you want the bot to operate in. Also, do not forget to create a role for dungeon masters on your server. Copy the ID of that role intoconfig/roles.json
as therole-dm
attribute. Do the same thing for the admin role, and finally, put the user ID of the person that is supposed to be the bots' owner underid-owner
. Also, do not forget to create aconfig/apikey.json
file, and put in your magicaltavern-api key as a key: value pair with the name "token". -
Start the bot. From the project source (magicaltavern/) type
TOKEN=YOURBOTTOKENHERE python -m src.bot
Not done yet. WIP!
For more examples, please refer to the Documentation
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the AGPL-3.0 License.
Flori - @starflowerflori - florian@proweber.de
Project Link: https://github.com/bitfl0wer/magicaltavern
- Yama for helping me figure out sqlite stuff! <3