fac31 / mohammed-anxhela-discord-bot

0 stars 0 forks source link

Discord AI Chatbot 🤖💻📱

What is this project about?

Mohamed and Anxhela's chatbot utilizing ChatGPT, deployed within Discord servers. The aim of this project is to create a chatbot for Discord servers and by deploying ChatGPT in Discord, we aim to enrich communication and engagement among users. Further information on the project brief can be found here.

What tools do you need in order to set it up locally?

  1. Obtain API Key: Sign up for a free API Key at OpenAI.
  2. Create Discord Bot: Create a bot on Discord Developers. Assign necessary permissions (ensure you select bot and applications.commands) and generate a URL.
  3. Invite Bot to Server: Invite your bot to a server you manage by pasting the generated link.
  4. Get Bot Token: Obtain your bot's token.
  5. Clone Repository:
    - git clone https://github.com/fac31/mohammed-anxhela-discord-bot
  6. Install Dependencies:
    - npm install
  7. Set Environment Variables: Create a .env file in the root directory and enter your API Key and Discord Token:
    - TOKEN=ENTER-TOKEN-HERE
    - API_KEY=ENTER-API-KEY-HERE
  8. Launch Bot: Start your bot in the terminal to bring it online: node index.js

What are the available commands that I can use?

Any additional features?

What are some development practices that we followed?

We used ESLint and Prettier that help with maintaining consistent code formatting and style, identifying errors, enforcing coding standards, and improving overall code quality. They can catch syntax errors, enforce coding conventions, and automatically format code according to predefined rules, making codebases more manageable and readable, especially in collaborative settings.