Skip to content

A job interview preparation bot for junior web developers. The bot asks and answers common job interview questions as well as provides code challenges and tasks that are commonly found in real-world job interviews. This simple vanilla javascript Discord bot functions by interacting with the new language model GPT-3.5-Turbo by OpenAI.

License

Notifications You must be signed in to change notification settings

Lane-G-Smith/Discord-Bot-Job-Interview-Code-Buddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord-Bot-Job-Interview-Code-Buddy


Discord.js

This Discord bot is designed to help junior web developers prepare for job interviews. This bot offers practice questions and coding challenges that are commonly found in real-world interviews. You can request questions or tasks with prompts such as "React" or "Javascript." Optionally, you can also specify the difficulty level between 1 and 10 with a number (example: javascript 7/10). To get the answer to the previous question along with an explanation and links to documentation, simply type "answer". This bot functions by using the GPT-3.5-Turbo-0613 API.

Installation and deployment Instructions

!!This bot does NOT respond to DMs, it must be in a server with you!!

Get the bot 'shell' from Discord. It's free, and it takes 5 minutes

https://discord.com/developers/applications

Go to OpenAI and open an account

https://platform.openai.com/signup

Install node.js

https://nodejs.org/en/

Install git

https://git-scm.com/downloads

Create a new folder and open it in the terminal to set up git

git init

Navigate to the new git folder in the terminal and clone this repository

git clone https://github.com/Lane-G-Smith/Discord-Bot-Job-Interview-Code-Buddy.git

Navigate to the Dev-Job-Interview-Discord-Bot-GPT3.5-Turbo folder and install dependencies

npm install

Rename example_.env to .env

Place your secret Discord bot token from the first step into the .env file

TOKEN=your_unique_token_here

Place your secret OpenAI API key from the second step into the .env file

OPENAI_API_KEY=your_unique_API_key_here

To host the bot locally, open the project in the terminal and run node

node code.js

To host the bot locally and keep it running in the background indefinitely, install PM2

npm install pm2 -g

Run your bot locally using pm2 https://pm2.keymetrics.io/

pm2 start code.js

Congratulations, your bot should now be live & confirmation should be logged in the terminal. Use your personal link from the Discord developer portal to invite your bot to a Discord server

https://discord.com/developers/applications

About

A job interview preparation bot for junior web developers. The bot asks and answers common job interview questions as well as provides code challenges and tasks that are commonly found in real-world job interviews. This simple vanilla javascript Discord bot functions by interacting with the new language model GPT-3.5-Turbo by OpenAI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published