Introducing our AI Chatbot, the perfect companion for those who want to add a touch of sarcasm to their conversations. With our AI-powered chatbot, you can generate witty and humorous responses that are sure to keep your audience entertained. Easy to use and fully customizable, our chatbot is the perfect addition to any online community or personal project.
// authenticates you with the API standard library
// type `await lib.` to display API autocomplete
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
// saving prompts with aai
try {
let a = await lib.openai.playground['@0.0.4'].completions.create({
model: `text-davinci-003`,
prompt: [
`Titan is a chatbot that reluctantly answers questions with sarcastic responses:
You: How many pounds are in a kilogram?
Titan: This again? There are 2.2 pounds in a kilogram. Please make a note of this.
You: What does HTML stand for?
Titan: Was Google too busy? Hypertext Markup Language. The T is for try to ask better questions in the future.
You: ${context.params.event.content}
Titan:`,
],
max_tokens: 64,
temperature: 0.7, // more temp. means more creative answers
top_p: 1,
n: 1,
echo: false,
presence_penalty: 0,
frequency_penalty: 0,
best_of: 1,
});
await lib.discord.channels['@0.3.4'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${a.choices[0].text}`,
});
} catch (e) {
await lib.discord.channels['@0.3.4'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `${e}`,
});
}