First, grab your Google AI Studio API Key, your Discord Bot Token and the Discord Channel ID (where Techiee will reply to messages in), you will need these for later!
You can use a hosting service like Render (which is free and works just fine). You can also host locally on your computer. If you host with Render, you can host 24/7.
- Clone this repo, either via downloading it or via a Terminal/Command Prompt by doing:
git clone https://github.com/MerBudd/Techiee.js.git cd Techiee.js
- Rename .env.example to
.env
- Open
.env
and put your Google AI Studio API Key, your bot's token, and channel ID in.env
, then save. - To install dependencies, do:
npm install
- To run the bot, do:
node Techiee.js
- Fork this repo
- Go to Render
- Sign up or log in
- In the dashboard, click "New", then "Web service". Then click "Next".
- If your forked repo is private, connect your GitHub account to Render and click "Connect" on the repo. If it's public, you can simply search for it.
- Set the name to anything you want.
- In the "Build command" section, put
npm install
and in the "Start command" section, putnode Techiee.js
- Choose the free plan (it's more than enough to run Techiee)
- In the Enivronment secrets section, create 3 new secrets called
GEMINI_API_KEY
,DISCORD_BOT_TOKEN
andDISCORD_CHANNEL_ID
and set their values to your Google AI Studio API Key, your Bot's token and the channel which Techiee will respond in respectively - Click "Create Web Service"
- Go to your newly created Web Service in Render
- At the top, click the copy icon next to the blue URL to copy it (it should look something like
https://webservicename.onrender.com
) - Go to UptimeRobot and sign up or log in
- In the dashboard, click "New monitor"
- Paste the URL you copied into the "URL to monitor" field (you can set the "friendly name" to anything you want)
- Click "Create monitor"
After you've done everything, you can configure the bot