blob: e5ed495afa5ebacf8ba1e487d888c15a8e9b3ddb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Python Utility Bot
[](https://discord.gg/2B963hn)
[](https://dev.azure.com/python-discord/Python%20Discord/_build/latest?definitionId=1&branchName=master)
[](https://dev.azure.com/python-discord/Python%20Discord/_apis/build/status/Bot?branchName=master)
[](https://dev.azure.com/python-discord/Python%20Discord/_apis/build/status/Bot?branchName=master)
[](LICENSE)
[](https://pythondiscord.com)
This project is a Discord bot specifically for use with the Python Discord server. It provides numerous utilities
and other tools to help keep the server running like a well-oiled machine.
## Requirements
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
- [Docker](https://docs.docker.com/install/)
- [Docker-Compose](https://docs.docker.com/compose/install/)
- `pip install docker-compose`
- [Pipenv](https://pipenv.kennethreitz.org/en/latest/install/#installing-pipenv)
- `pip install pipenv`
## Setup Reference (temporary)
1. Read the [Contributing](CONTRIBUTING.md) guidelines.
2. Clone the repository to a suitable working project directory using [`git clone`](https://git-scm.com/docs/git-clone).
- If you are not a core developer, you will need to [`fork`](https://help.github.com/en/articles/fork-a-repo) [pythondiscord/bot](https://github.com/python-discord/bot).
3. Create a copy of `config-default.yml` named `config.yml` and edit the configuration options.
- This is to be replaced with different instructions in future due to upcoming config updates.
4. Create an empty `.env` in the same top-level project directory and add:
- `BOT_TOKEN=yourdiscordbottoken`
- If you have a development site setup already, get the docker project name and add in `.env`:
- `COMPOSE_PROJECT_NAME=site`, adjusting `site` to match the other project name.
5. Install development dependancies for your IDE/editor/linting:
- `pipenv sync --dev`
5. Run the compose:
- If you're running a full development site setup already, run:
- `docker-compose up bot`
- Otherwise, run:
- `docker-compose up`
|