discord LLM chatbot - Template

discord LLM chatbot - Template

How to Download and Install

- Download it.

- Extract it.

- Add necessary tokens
1. `OPENAI_API_KEY`: Your OpenAI API key.
2. `SCRAPER_API_KEY`: Your Scraper API key.
3. `BRAVE_SEARCH_API_KEY`: Your Brave Search API key.
4. `DISCORD_TOKEN`: Your Discord bot token.

The bot requires the following Python packages:
- openai
- discord.py
- asyncio
- os
- time
- requests
- re
- json
- logging
Commands

1. To talk to the bot, mention the bot in your Discord message.
2. To set the model's temperature (for randomness in responses), include `::temperature=value::` in your message. For example: `::temperature=0.5::`.
3. To specify a model, include `::model=model_id::` in your message. For example: `::model=gpt-3.5-turbo::`.
4. To scrape and summarize a URL, simply include the URL in your message.
5. To perform a web search, include `::search your_search_query::` in your message. For example: `::search python tutorials::`.

I hope you enjoy and join my discord server to ask any question.

More Bots Templates