Skip to content

General purpose Discord bot with changeable global variables to fit your server needs

License

Notifications You must be signed in to change notification settings

esper2142/python_OpenAI_Discord_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python_OpenAI_Discord_Bot v 1.2

By esper2142 on 2/13/23

1) Changing for use with gpt-3.5-turbo

2) Dramatic enhancements to performance

3) Optional personality parameters


python_OpenAI_Discord_Bot v 1.1

By esper2142 on 2/13/23

A general purpose Discord bot for use with an OpenAI API token and a Discord bot token written completely from scratch in Python. Edit commands and events as you see fit.

1) Create a Discord bot and add it to your server with the appropriate permissions. More information here: https://discordpy.readthedocs.io/en/stable/discord.html

2) Create an OpenAI account and create an API key: https://platform.openai.com/account/api-keys . Please note this is NOT free.

3) Copy and paste your created tokens into the appropriate variables inside of botvar.py .

4) Find the channel ID you'd like to post messages in your discord server, and paste over INSERT CHANNEL ID HERE in bot.py . More information on how to find your channel ID here: https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-

5) Upload your images for the script into a folder or the same directory as bot.py . Edit INSERT_FILEPATH_HERE to match your filepath and file names.

6) Host your script somewhere and run it. Suggestions are: your own PC/NAS/Raspberry Pi, or a cloud online service like pythonanywhere or Amazon EC2.

About

General purpose Discord bot with changeable global variables to fit your server needs

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages