A Python based project combining a RESTful API with a Discord Bot. The API serves to handle user authentication and data management while the Discord Bot provides a conversational interface to the service.
Clone the repository:
git clone https://github.com/NoelisTired
/Restful-Backend
Install the dependencies:
pip install -r setup/requirements.txt
Edit the configuration file conf.json
to reflect your desired setup.
Start the project:
$ python main.py
The configuration file conf.json
is in JSON format and contains settings for the API and Discord Bot.
Api settings:
Enabled
: Enable or disable the APIHost
: The hostname or IP to bind the API toPort
: The port number to listen onDebug
: A description of the APIInfo
: Version and last updated date
Discord settings:
Enabled
: Enable or disable the Discord Bot to run at startupToken
: Your Discord Bot TokenPrefix
: The prefix to use for bot commandsOwnerID
: The Discord User ID of the Bot owner
Database settings:
Host
: The hostname or IP of the MySQL serverPort
: The port number of the MySQL serverLogin
:Username
: The MySQL usernamePassword
: The MySQL passwordDatabase
: The name of the database
- RESTful API for user authentication and data management
- Discord Bot for conversational interaction with the service
- Graceful exit on
CTRL + C
Feel free to contribute to this project by submitting pull requests or by reporting issues.
This project is licensed under the MIT License.