-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59d976d
commit 7ca9090
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Build | ||
## Instructions | ||
1. Add a file named `auth.json` inside the `config` folder. This file will | ||
contain your discord application's oauth token and optionally channel IDs for | ||
logging errors and feedback: | ||
```json | ||
{ | ||
"token": "bottoken", | ||
"error_log": "00000000000000000", | ||
"feedback_log": "000000000000000000" | ||
} | ||
``` | ||
|
||
2. Use pip to install the project's dependencies: | ||
``` | ||
pip install -r requirements.txt | ||
``` | ||
3. Run an instance of | ||
[MongoDB Server](https://www.mongodb.com/download-center?jmp=homepage#community). | ||
I'd recommend using the default port for configuration purposes. | ||
4. Run the application: | ||
``` | ||
python main.py | ||
``` | ||
Please note that the database of cards will be empty when you first run the app. | ||
Card information is retreived from the School Idol Tomoachi API in batches of | ||
10 cards every 2 minutes. It will take a few update cycles for all of the | ||
features to function as designed. | ||