Skip to content

Commit ffc119c

Browse files
+ Added Configuration setup
1 parent 804e544 commit ffc119c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/config.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import os
2+
from dotenv import load_dotenv
3+
from typing import NoReturn, Optional
4+
5+
load_dotenv()
6+
7+
class Config:
8+
"""Configurations"""
9+
10+
BOT_TOKEN: Optional[str] = os.getenv('BOT_TOKEN')
11+
COMMAND_PREFIX: str = '$'
12+
13+
def __init__(self, *args, **kwargs) -> NoReturn:
14+
raise NotImplementedError('Not instantiable')

0 commit comments

Comments
 (0)