File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,10 +102,10 @@ to make a pull request.
102102## Configuration
103103
104104You can create your own configuration file to customize emotes and texts. First copy the default configuration
105- from ` default.ini `
105+ from ` config/ default.ini` into a custom configuration file:
106106
107107``` {bash}
108- cp default .ini custom .ini
108+ wget -O custom .ini https://raw.githubusercontent.com/d-stoll/stonkmaster/master/stonkmaster/config/default .ini
109109```
110110
111111Now change all configurations to git your own setup:
Original file line number Diff line number Diff line change 77
88setup (
99 name = 'stonkmaster' ,
10- version = '1.0.1.dev ' ,
10+ version = '1.0.1' ,
1111 author = 'Daniel Stoll' ,
1212 author_email = 'danielsimon.stoll2@gmail.com' ,
1313 description = 'Simple bot to monitor stocks, options and cryptos.' ,
Original file line number Diff line number Diff line change 77def get_config (args : list [str ]) -> configparser .ConfigParser :
88 parser = argparse .ArgumentParser ()
99 parser .add_argument ("--config" , help = "Path of configuration file." ,
10- default = pkg_resources .resource_filename (__name__ , "config/default.ini" ))
10+ default = pkg_resources .resource_filename (__name__ . split ( "." )[ 0 ] , "config/default.ini" ))
1111 args = parser .parse_args (args )
1212
1313 config = configparser .ConfigParser ()
Original file line number Diff line number Diff line change 33
44import discord .ext .test as dpytest
55import pytest
6-
76from discord import Intents
87
98from stonkmaster .core .bot import create_bot
1312
1413@pytest .fixture
1514def config ():
16- conf = get_config (["--config" , "default.ini" ])
15+ conf = get_config ([])
1716 tmp_dir = tempfile .mkdtemp ()
1817 conf ['stonkmaster' ]['TmpFolder' ] = tmp_dir
1918 return conf
You can’t perform that action at this time.
0 commit comments