Giter Club home page Giter Club logo

cybersentinels / discord-typecast-gpt-chatbot Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 146 KB

A Typecasted Chatbot for Discord Powered by ChatGPT and OpenAI API Calls. Can be for customer service or good for quizes. It answers any question you can think of.

Home Page: https://discord.io/cybersentinels

License: MIT License

Python 92.61% Dockerfile 6.55% Shell 0.84%
api chatgpt customer-service-chatbot discord discord-bot education whitelabel

discord-typecast-gpt-chatbot's Introduction

discord-typecast-gpt-chatbot

Docker Image CI DockerHub

This bot is a Discord-based support agent. It provides helpful responses to user queries, assists with server-related questions, and directs users to relevant resources. The bot is friendly, knowledgeable, and maintains a positive environment. It can also share opinions, preferences, and recommendations related to various topics, creating engaging and informative interactions with users.

See the Bot in Action!

Website Discord

How to run the bot

Using docker

docker run -td --name cyberchatbot -e DISCORD_BOT_APP_TOKEN="INSERT YOUR BOT TOKEN HERE" -e OPENAI_API_KEY="INSERT YOUR OPENAI API KEY HERE" simeononsecurity/discord-typecast-gpt-chatbot:latest

How to run the bot manually using python

To get started with running this repository, you need to perform the following steps:

  1. Clone this repository and change into product root
git clone URL
cd repo_name
  1. create an .env file in the project root (it will be .gitignored) and paste your discord bot token and openai token:
DISCORD_BOT_APP_TOKEN=PASTE_DISCORD_TOKEN_HERE
OPENAI_API_KEY=PASTE_OPENAI_API_TOKEN_HERE
  1. Create a new virtual environment using venv:
python3 -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install the dependencies listed in requirements.txt:
pip install -r requirements.txt
  1. If you install new dependencies with pip install, be sure to regenerate requirements.txt with:
pip freeze > requirements.txt

How to fix locales issue

sudo apt-get install locales -y
sudo locale-gen en_US.UTF-8 en_CA.UTF-8
sudo update-locale

Architecture

./
project root

bot/
discord bot's source

bot/main.py:
This is the main entry point for your application

bot/controllers/
This directory contains code that controls the main program and provides inputs into services

bot/services/
This directory contains code that do small, specific tasks

requirements.txt:
This file lists the dependencies required for your application to run

discord-typecast-gpt-chatbot's People

Contributors

1nf053c avatar dependabot[bot] avatar simeononsecurity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.