Skip to content

tommarekCZE/OpenAI-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 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

If you have any problems with bot contact me on discrd "tommarek#1245"
Please credict me in your discord bot if you using my Model

About

The Discord Bot using OpenAI to processing User Text and Images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages