Skip to content

A discord bot to interact with OpenAI"s ChatGPT and Dall-E engines

License

Notifications You must be signed in to change notification settings

taher968/chatgpt_discord_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Discord Bot

The Discord Bot using OpenAI to processing User Text and Images

The Bot API contain custom moderation system:

Change whatever in inawords.txt what you want filter out
Warning: the inawords.txt contain pre-select inappropriate words

The Bot API contain output logging system:

ㅤEvery request will be in log.txt
ㅤShould look like this:
ㅤRequest: Write a random word
ㅤRespond:
ㅤFrolic
ㅤTime: 2022-12-11 12:27:06.123088
ㅤModel: text-davinci-003
ㅤUser: user#0000
ㅤUser ID: 0
ㅤChannel: geral
ㅤChannel ID: 0
ㅤServer: Discord Best Server
ㅤServer ID: 0

To change bot token go to main.py and change values:

ㅤDCtoken = "Your discord bot token"
ㅤAItoken = "Your openAI Token (https://beta.openai.com/account/api-keys)"
ㅤDCtokenTest = "optional to test BOT (If you want add features)"
ㅤOwnerID = "Your discord id (This is needed for Maintenance commands)"
ㅤprefix = "Your bot prefix (.command)"
ㅤtxtmodels = "list of models what you want use (https://beta.openai.com/docs/api-reference/models)"

Change request setting:

ㅤThe text request is from line 143 to 148
ㅤThe image request is from line 179 to 183
ㅤThe image varriation is from line 213 to 217

Required Libs:

ㅤpip install discord
ㅤpip install OpenAI

Credit

tommarek1

About

A discord bot to interact with OpenAI"s ChatGPT and Dall-E engines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages