mirror of
https://github.com/MrSedan/neuro-reply-bot-reworked.git
synced 2026-01-14 21:49:42 +03:00
ADDED: module for work with api
This commit is contained in:
17
neuroapi/__init__.py
Normal file
17
neuroapi/__init__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from .post import Post
|
||||
from .admin import Admin
|
||||
from .user import User
|
||||
from .image import Image
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
from os.path import join, dirname
|
||||
|
||||
|
||||
load_dotenv(join(dirname(__file__), "..", '.env'))
|
||||
|
||||
|
||||
class neuroapi:
|
||||
post = Post(os.environ.get('API_URL'))
|
||||
admin = Admin(os.environ.get('API_URL'))
|
||||
user = User(os.environ.get('API_URL'))
|
||||
image = Image(os.environ.get('API_URL'))
|
||||
Reference in New Issue
Block a user