A Discord Bot using OpenAI and Gemini APIs
- Node.js
- npm or pnpm
-
Clone the repository:
git clone https://github.com/norowachi/MikaGPT.git cd MikaGPT
-
Install dependencies:
npm install
-
Create a
.env
file and fill in the required values according toexample.env
-
Give access to bot using
/access trust
and remove using/access untrust
note: you have to trust yourself first to use
/imagine
command
To build the project, run:
npm run build
To register the commands with Discord, run:
npm run register
To start the server, run:
npm start
This will start the server on the port specified in the .env
file.
depending on your way of hosting and making the server externally accessible, using means like Cloudflare Tunnels
or any other reverse proxy, you just have to put the public URL in the Interactions Endpoint
section in your bot application: https://<your url>/interactions