First, grab your Google AI Studio API Key and your Discord Bot Token, you will need these for later!
You can put channel ID(s) in which Techiee will always check for the messages and respond to them in config.py. Otherwise, pinging Techiee, DMing Techiee or using /createthread
will also work.
Warning
Techiee.py's config is currently set to an experimental version of Gemini 1.5 Pro! If you don't want an experimental version, you can use the regular one or the other models instead! (Gemini 1.5 Flash recommended)
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, by opening a Terminal/Command Prompt and doing:
git clone https://github.com/MerBudd/Techiee.py.git cd Techiee.py
- Rename ".env.example" to
.env
- Open
.env
and put your Google AI Studio API Key, along with your bot's token in there, then save - To install dependencies, do:
pip install -U -r requirements.txt
- To run the bot, do:
python Techiee.py
- 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
pip install -U -r requirements.txt
and in the "Start command" section, putpython Techiee.py
- Choose the free plan (it's more than enough to run Techiee)
- In the Enivronment secrets section, create 2 new secrets called
GEMINI_API_KEY
andDISCORD_BOT_TOKEN
, and set their values to your Google AI Studio API Key and your Bot's token respectively - Click "Create Web Service"
- Go to your newly created Web Service
- 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"