Cortex

Discord Assistant

Cortex is a conversational AI chatbot designed for Discord, functioning as a versatile virtual assistant. It uses the OpenAI GPT-3.5 API to generate intelligent and context-aware replies, with persistent memory that enables it to maintain in-depth conversations over time. Cortex acts like an AI assistant that can answer general questions, provide real-time information, and engage users in natural dialogue. Beyond conversation, it offers practical features such as playing music, finding songs based on lyrics, checking the weather, retrieving the latest news, setting reminders, and creating polls.

Search for Images

Cortex includes a built-in image search feature, allowing users to request images through a simple message. When triggered, it uses Puppeteer to scrape Google Images based on the user’s prompt. To ensure cleaner and more relevant results, the query is processed to remove all stop words before the search. Cortex then returns a random image from the top 10 results, providing users with fast and contextually appropriate visual responses.

Price Predictor

The price predictor feature in Cortex uses regression analysis and sentiment analysis to forecast prices for both the stock market and Pokémon cards. It predicts price trends for the upcoming week by analyzing quantitative data and qualitative sentiment. Sentiment is derived from news articles scraped using a news API and data from set release websites for Pokémon cards. This dual-source approach allows Cortex to provide relatively accurate, real-time predictions based on market movements and public sentiment.

Card Grader

Cortex also includes a Pokémon card grading tool. Users can upload an image of their Pokémon card, which the system analyzes to assess its condition. Based on visual factors such as centering, edge wear, and surface quality, Cortex assigns a grade to the card. It then queries the Pokémon TCG API to retrieve an estimated market value for that specific card at the given grade. This provides a fast and automated solution for casual collectors looking to estimate the worth of their cards.