34 lines
639 B
Markdown
34 lines
639 B
Markdown
## Credits
|
|
https://github.com/brainboxdotcc/templatebot
|
|
## Compilation
|
|
```bash
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
make -j
|
|
```
|
|
If DPP is installed in a different location you can specify the root directory to look in while running CMake :
|
|
```bash
|
|
cmake .. -DDPP_ROOT_DIR=<your-path>
|
|
```
|
|
## Running the bot
|
|
Create a config.json in the directory above the `build` directory :
|
|
```json
|
|
{
|
|
"token": "your bot token here",
|
|
"gemini": "your gemini api key here"
|
|
}
|
|
```
|
|
Start the bot :
|
|
```bash
|
|
cd build
|
|
./airi
|
|
```
|
|
```bash
|
|
docker build -t airi .
|
|
docker run -d \
|
|
--name airi-container \
|
|
-v $(pwd)/config.json:/usr/src/airi/config.json \
|
|
airi
|
|
```
|