RAHB-REALTORS-Association / chat2gpt

Chat²GPT is a ChatGPT (and DALL·E 2/3, and ElevenLabs) chat bot for Google Chat. 🤖💬
https://chat2gpt.oncornerstone.app
MIT License
11 stars 1 forks source link

Add /help command to read docs/usage.md #62

Closed justinh-rahb closed 1 year ago

justinh-rahb commented 1 year ago

Summary

Implemented a new /help command in the chatbot that provides users with the content of docs/usage.md.

Description

Added functionality to the chatbot where users can type /help to get assistance. When executed, the chatbot reads from the docs/usage.md file and displays its content. The implementation leverages a new function, get_docs(doc_name), which is designed in a generic manner to allow for future commands that might read other documentation pages.

Related Issue(s)

58

Motivation and Context

The addition of the /help command enhances the user experience by providing immediate assistance directly within the chat interface. The generic design of the get_docs() function lays the groundwork for future expansion, where other docs pages can be easily integrated into the chatbot's command set.

Types of changes

Checklist: