Compare commits

..
3 Commits
Author SHA1 Message Date
KKlochko c12b94633e Add the CHANGELOG.
continuous-integration/drone/push Build is passing
2023-07-18 15:55:23 +03:00
KKlochko 5f8250380a Update the README. 2023-07-18 15:54:26 +03:00
KKlochko 3bb09413b1 Update the config class for the dots bot api. 2023-07-18 15:53:35 +03:00
3 changed files with 57 additions and 1 deletions
+50
View File
@@ -0,0 +1,50 @@
* Change Log
** 0.1.0 <2023-06-16 Fri>
Add ApiFetcher to make requests to the server.
** 0.2.0 <2023-06-16 Fri>
Add CityAPI to get information about city from the server.
** 0.2.1 <2023-06-16 Fri>
Add the city handler to have cities-list in bot's command list.
** 0.2.2 <2023-06-16 Fri>
Update docker-compose file to run src.main as package.
** 0.2.3 <2023-06-16 Fri>
Fix fetcher's send_json to make post a request and get a response.
** 0.3.0 <2023-06-17 Sat>
Add the config file for DotsBotApi.
** 0.4.0 <2023-06-17 Sat>
Add UserAPI for register new user.
** 0.4.1 <2023-06-17 Sat>
Add the CI/CD configuration.
** 0.4.2 <2023-06-17 Sat>
Fixed the CI/CD configuration.
** 0.4.3 <2023-06-17 Sat>
Fixed the CI/CD configuration by adding all deps.
** 0.5.0 <2023-06-20 Tue>
Add methods to select a city and return message.
** 0.5.1 <2023-06-20 Tue>
Add the handler to select a city.
** 0.6.0 <2023-06-20 Tue>
Add company methods to get the list and to select a company.
** 0.6.1 <2023-06-20 Tue>
Add the company handlers.
** 0.7.0 <2023-06-20 Tue>
Add the method to show the items by categories.
** 0.7.1 <2023-06-20 Tue>
Add the handler to show items.
** 0.8.0 <2023-06-20 Tue>
Add the methods to show cart items and to add an item to a cart.
** 0.8.1 <2023-06-20 Tue>
Add the handlers to show cart items and to add an item to a cart.
** 0.9.0 <2023-06-22 Thu>
Add method to send and get the order.
** 0.9.2 <2023-06-22 Thu>
Add the order handler.
** 0.9.5 <2023-07-10 Mon>
Refactor the listeners of the commands.
** 0.9.6 <2023-07-18 Tue>
Update the config class for the dots bot api.
** 0.9.7 <2023-07-18 Tue>
Update the README.
** 0.9.7 <2023-07-18 Tue>
Add the CHANGELOG.
+1
View File
@@ -21,6 +21,7 @@ Setup
USERNAME=@example:example.com
PASSWORD=password
SERVER=https://example.com
BOT_API_BASE_URL=https://domain
- change the ``config.toml``: `more about allowlist and blocklist
formats <https://simple-matrix-bot-lib.readthedocs.io/en/latest/examples.html#id2>`__
+6 -1
View File
@@ -1,5 +1,10 @@
from environs import Env
env = Env()
env.read_env()
class DotsBotApiConfig():
_base_url = "https://domain"
_base_url = env('BOT_API_BASE_URL')
def __str__(self) -> str:
return f"{self._base_url=}"