From 577b7ce1311899c27006d3241082f75bfb6eb30e Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sun, 27 Nov 2022 12:04:17 +0300 Subject: [PATCH] Move config to bot root dir --- README.md | 2 +- minearchy_bot/__main__.py | 2 +- config.example.json => minearchy_bot/config.example.json | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename config.example.json => minearchy_bot/config.example.json (100%) diff --git a/README.md b/README.md index 1251367..e105f5e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This is a simple bot made for the [Minearchy Discord](https://discord.gg/2n6T78J ## Installing 1: Clone this repo and `cd` into it. -2: Edit the `config.example.json` to your liking and rename it to `config.json`. +2: Edit the `./minearchy_bot/config.example.json` to your liking and rename it to `config.json`. 3: Install dependencies using `./install`. diff --git a/minearchy_bot/__main__.py b/minearchy_bot/__main__.py index 17671a9..e5e13d3 100644 --- a/minearchy_bot/__main__.py +++ b/minearchy_bot/__main__.py @@ -12,7 +12,7 @@ from . import MinearchyBot def main() -> None: install_uvloop() - with (Path(__file__).parent.parent / "config.json").open() as f: + with (Path(__file__).parent / "config.json").open() as f: config = parse_json(f) for key in ("HIDE", "NO_UNDERSCORE"): diff --git a/config.example.json b/minearchy_bot/config.example.json similarity index 100% rename from config.example.json rename to minearchy_bot/config.example.json