HexyeDEV / Telegram-Chatbot-Gpt4Free

This is a Python-based Telegram bot using the telethon library. The bot responds to messages using the evagpt4 reverse engeneered api from OpenGPT repo
MIT License
140 stars 42 forks source link

Implement Role class and update main.py to use Role instances #10

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR implements a Role class to represent a role and updates the main.py file to use instances of the Role class instead of the roles JSON object. This improves the code structure and makes it more object-oriented.

Summary of Changes

This PR improves the code structure and makes it easier to manage and extend the roles functionality in the future.

Fixes #8.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/role-class

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.