Skip to content

Commit

Permalink
Add start and help command
Browse files Browse the repository at this point in the history
  • Loading branch information
leafduo committed Mar 4, 2023
1 parent f817cff commit 399938e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ func main() {

// Extract the command from the Message.
switch update.Message.Command() {
case "start":
msg.Text = "Welcome to ChatGPT bot! Write something to start a conversation. Use /new to clear context and start a new conversation."
case "help":
msg.Text = "I understand /sayhi and /status."
msg.Text = "Write something to start a conversation. Use /new to clear context and start a new conversation."
case "new":
resetUser(update.Message.From.ID)
msg.Text = "OK, let's start a new conversation."
Expand Down

0 comments on commit 399938e

Please sign in to comment.