Coder Social home page Coder Social logo

mjbraun95 / discord_bots Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 43 KB

A comprehensive Discord bot framework using Python, integrating finance APIs, OpenAI's GPT models for chat completions, and various utilities for enhanced interaction and data analysis within Discord servers. Used to analyze stock market data using OpenAI and Yahoo Finance

Python 100.00%
ai openai python

discord_bots's Introduction

Discord Finance and Chat Bot

This codebase contains two main scripts for creating and running Discord bots with a focus on finance and chat functionalities. bot1.py is a more comprehensive bot that includes features such as stock comparisons, earnings updates, and dynamic chat completions using OpenAI's GPT models. bot2.py provides a simplified version focusing on chat interactions.

Features

Stock Comparisons and Earnings Updates: Utilizes Yahoo Finance and other financial data sources to provide users with up-to-date stock information and earnings dates. Dynamic Chat Completions: Integrates OpenAI's GPT models to generate responses to user inquiries, offering a conversational AI experience within Discord. Multiple Utility Commands: Includes commands for general interaction, such as greeting users and clearing conversation history.

Setup

Install Dependencies: Ensure you have Python 3.6+ installed. Then install the required packages using:

pip install -r requirements.txt

Configuration: Place your OpenAI API key, Discord bot token, and other necessary credentials in config.json.

Running the Bot: Use the following command to run your bot:

python bot1.py # For the comprehensive bot
# or
python bot2.py # For the simplified chat bot

Usage

After setting up your bot and inviting it to your Discord server, you can use the predefined commands to interact with it. For example, you can request stock comparisons, get upcoming earnings dates, or engage in a conversation with the chatbot powered by OpenAI.

discord_bots's People

Contributors

mjbraun95 avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.