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.
- git clone https://github.com/fac31/mohammed-anxhela-discord-bot
- npm install
.env
file in the root directory and enter your API Key and Discord Token:
- TOKEN=ENTER-TOKEN-HERE
- API_KEY=ENTER-API-KEY-HERE
!help
: provides information about the available commands.!hello
: it typically triggers a response from the bot or system, which could be a simple greeting message like "Hello!".!quote
: retrieves a random quote from a collection. It's a fun way to share inspiring, humorous, or thought-provoking quotes within a community.!calculate
: perform calculations or mathematical operations within a chat.!pong
: used to check the responsiveness or latency of a network connection to a server. When you send !ping to the bot, it will respond with a 'pong'.!senddm
: used to send a direct message (DM) to another user privately. Example: !senddm @Angelab!createchannel
: used to create a private channel.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.