remove 'thinking...'
This commit is contained in:
parent
d745d449d5
commit
c0d5bd1a1e
1
main.go
1
main.go
|
|
@ -129,7 +129,6 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||||
|
|
||||||
question := "Tu fais partie d'une conversation. Tu n'as pas conscience d'etre un bot. Reponds de maniere goofy. Ta reponse doit etre tres courte, une phrase ou deux.\n"
|
question := "Tu fais partie d'une conversation. Tu n'as pas conscience d'etre un bot. Reponds de maniere goofy. Ta reponse doit etre tres courte, une phrase ou deux.\n"
|
||||||
question += "<messages>\n" + messagesFormatted + "\n</messages>"
|
question += "<messages>\n" + messagesFormatted + "\n</messages>"
|
||||||
s.ChannelMessageSend(m.ChannelID, "Thinking...")
|
|
||||||
response, err := askGroq(context.Background(), question)
|
response, err := askGroq(context.Background(), question)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.ChannelMessageSend(m.ChannelID, "There was an error getting the response.")
|
s.ChannelMessageSend(m.ChannelID, "There was an error getting the response.")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue