This bot is only written in Java (with Docker and MakeFile to deploy) and is a bot in slack where the user can get a daily quote or checkup a GitHub user and then check her/his repositories one at the time.
This project uses api's from https://quotes.rest/qod for quotes, https://api.github.com/users/ for getting github users and repositories, https://www.harmannenfalt.no/api and https://www.hardovrefalt.no/api for getting info about the mountains Mannen and Dovre have fallen or not.
-
Daily quote will be sent every day at 09:15
-
/quote
returns a daily quote
/mannen
responds with a message if the mountain Mannen has fallen or not
/dovre
responds with a message if the mountain Dovre has fallen or not
/github <Username>
returns the user if they exist
Select a repository
and information will be returned about it.
(I used this website to check how the JSON's should look before posting them to slacks api)
See Templates for better understanding of all toJson()
functions.
- TomCat
- Java
- Maven
- Docker
- Spring Boot
- Hibernate
- Docker
- maven
- make
- git
- Open port
8080
- make
sudo apt install make
- mvn
sudo apt install maven
- docker
sudo apt install docker.io -y
- Clone this repository
git clone https://gitlab.com/BredeFK/alfred.git
- Open
Dockerfile
and add all environment variables - Run
make build
- Download and start SonarQube server
- run
mvn clean verify sonar:sonar
- or run
mvn sonar:sonar
if project is unchanged
- make build
- make clean
- make run
- make status
- To check logs on running deployment
screen -r
- To check status and ID on running container
docker container ls
- To stop deployment
docker container stop <CONTAINER ID>
orscreen -r
andctrl + c
- This project has a nice front-end for error page.
- It has an Privacy Policy.
- It will soon track ip address and give location in logs, but not store them!