File size: 459 Bytes
bb69f9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const { bot, groqResponse } = require('../lib')

bot(
  {
    pattern: 'groq ?(.*)',
    desc: 'groq ai',
    type: 'AI',
  },
  async (message, match) => {
    if (!match)
      return await message.send(
        '*Example :* groq Hi\n\nYou can set GROQ_API_KEY, GROQ_MODEL, and GROQ_SYSTEM_MSG, which are optional.\nhttps://console.groq.com/keys'
      )
    const res = await groqResponse(match)
    await message.send(res, { quoted: message.data })
  }
)