diff --git a/README.md b/README.md index 1c2b9d8..68ec266 100644 --- a/README.md +++ b/README.md @@ -102,10 +102,10 @@ to make a pull request. ## Configuration You can create your own configuration file to customize emotes and texts. First copy the default configuration -from `default.ini` +from `config/default.ini` into a custom configuration file: ```{bash} -cp default.ini custom.ini +wget -O custom.ini https://raw.githubusercontent.com/d-stoll/stonkmaster/master/stonkmaster/config/default.ini ``` Now change all configurations to git your own setup: diff --git a/setup.py b/setup.py index 2800f4b..f46fe69 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name='stonkmaster', - version='1.0.1.dev', + version='1.0.1', author='Daniel Stoll', author_email='danielsimon.stoll2@gmail.com', description='Simple bot to monitor stocks, options and cryptos.', diff --git a/stonkmaster/core/config.py b/stonkmaster/core/config.py index 43907e6..dd3b9c4 100644 --- a/stonkmaster/core/config.py +++ b/stonkmaster/core/config.py @@ -7,7 +7,7 @@ def get_config(args: list[str]) -> configparser.ConfigParser: parser = argparse.ArgumentParser() parser.add_argument("--config", help="Path of configuration file.", - default=pkg_resources.resource_filename(__name__, "config/default.ini")) + default=pkg_resources.resource_filename(__name__.split(".")[0], "config/default.ini")) args = parser.parse_args(args) config = configparser.ConfigParser() diff --git a/tests/conftest.py b/tests/conftest.py index ed1f121..2dc402c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,7 +3,6 @@ import discord.ext.test as dpytest import pytest - from discord import Intents from stonkmaster.core.bot import create_bot @@ -13,7 +12,7 @@ @pytest.fixture def config(): - conf = get_config(["--config", "default.ini"]) + conf = get_config([]) tmp_dir = tempfile.mkdtemp() conf['stonkmaster']['TmpFolder'] = tmp_dir return conf