Git Product home page Git Product logo

itzarshia / gpt-discord-bot Goto Github PK

View Code? Open in Web Editor NEW
234.0 234.0 58.0 3.67 MB

๐Ÿง  Example Discord Bot written in JavaScript that uses OpenAIs models such as ,`GPT 4`, `GPT-3.5-Turbo`, `Dall-E`, and `Text-Moderation-Stable` with many features such as ChatGPT-Style Conversation, image-Generator, Auto-Moderator and more!

License: MIT License

JavaScript 100.00%
ai bot chatbot chatgpt dall-e discord discord-js gpt gpt-3-5-turbo gpt-4 image-generator moderation openai openai-chatgpt translator

gpt-discord-bot's Introduction

iTz Arshia

Typing SVG

I'm Arshia, a 20-year-old developer from Iran who goes by "iTz Arshia" in media.

I joined Discord 6 years ago and soon got interested in creating servers, coding bots, managing communities, designing stuff, and even made my community, iTz Club, where I spend most of my time. After iTz Club I created a Discord bot called VOID, a verified, multipurpose bot that's been added to more than 9000 servers with unique commands that'd help you to moderate and manage your server/community in a better way.

I've had over 100 projects! I've also worked with a lot of big servers and content creators, helping them to broaden and manage their communities on Discord.

Need help building your community or custom bot? You can contact me on Discord!

What I'm Doing

Bots

  • Creating high-quality Discord bots at a professional level, with lots of features for all purposes.

Servers

  • I enjoy building, managing, and moderating communities and helping others to do it too.

My Skills and Tools & Software I Use

My Skills

GitHub stats GitHub Streak

Snake

iTz Club Discord iTz Development Discord
Website arshia.pro watching_count

gpt-discord-bot's People

Contributors

itzarshia avatar kav-k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gpt-discord-bot's Issues

Message commands reply twice on chatbot mode

When I turn on chatbot mode on a certain channel, bot will reply to message command twice. Specially the first reply comes from chatbot event and second from its related message command event. My solution is to bypass message commands on the channel which chatbot is on. But to modify chatbot event listener may be a more decent way.

const { chatbot } = require('../../configs/chatbot');

//add to execute 
if (chatbot.State && chatbot.ChatBotChannel === message.channelId && !chatbot.IgnoredUsers.includes(message.author.id)) 
    return

help

Error: Cannot find module './configs/config.json'
Require stack:

  • C:\Users\Revoltz\Desktop\GPT 3.5\register.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object. (C:\Users\Revoltz\Desktop\GPT 3.5\register.js:4:16)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ 'C:\Users\Revoltz\Desktop\GPT 3.5\register.js' ]
    }

TypeError: openAI.Configuration is not a constructor

Hello, i just got this error " TypeError: openAI.Configuration is not a constructor " when i use the command !ask [MY MESSAGE]

I don't know how to fix this problem, someone told me about changing the code but i don't what to change.

Thanks in advance.

Time/Date is Displayed Wrong

When asked for today's date, the bot asked for what timezone (Which is normal) but then posted the exact message:

"In Pacific Daylight Time (PDT), today's date is: {{moment().tz('America/Los_Angeles').format('dddd, MMMM Do YYYY')}}."

Showing the code for the time rather than properly formatting

Database?

Would it be possible to have this set up to accept a pinecone API key so i can expand its memory>?

GPT-4 Turbo

How can I enable the GPT -4 turbo to be used as the response engine?

Setup

Add setup cmd or you can also do in config.js a specific channel ID then bot can answer in this channel

Error: Request failed with status code 400

After I send /ask question

Error: Request failed with status code 400
[antiCrash] :: Unhandled Rejection/Catch
TypeError: Cannot read properties of null (reading 'length')
    at F:\GPT-Discord-Bot-main\commands\interactions\ask.js:80:40
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Object.execute (F:\GPT-Discord-Bot-main\commands\interactions\ask.js:71:28) Promise {
  <rejected> TypeError: Cannot read properties of null (reading 'length')
      at F:\GPT-Discord-Bot-main\commands\interactions\ask.js:80:40
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async Object.execute (F:\GPT-Discord-Bot-main\commands\interactions\ask.js:71:28)
}

Outdated Description

An update released for this repository recently due to openai added GPT 3.5 to their API. The current description is outdated mentioning text-davinci instead of GPT-3.5-Turbo.

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.