-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into main
- Loading branch information
Showing
1 changed file
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,41 @@ | ||
# Building | ||
# Pensador | ||
|
||
Run `mvn quarkusBuild`, then copy the `build/quarkus-app` contents to the desired folder. | ||
"Just another Discord bot, this one sends random quotes :)" sums it up. | ||
|
||
## Required configuration | ||
|
||
You need to create an `application.yaml` file, with the following fields filled: | ||
``` | ||
discord: | ||
bot-token: | ||
webhook: | ||
id: | ||
token: | ||
channel-id: | ||
app-id: | ||
``` | ||
Then place it inside a `config` folder. | ||
|
||
## Building | ||
|
||
Run `gradle quarkusBuild`, then copy the `build/quarkus-app` contents to the desired folder. | ||
|
||
## Running | ||
|
||
In dev, run `gradle quarkusDev`. | ||
|
||
Otherwise, if it's already built, just run `java -jar quarkus-run.jar`. | ||
|
||
Note: remember to have `config/application.yaml` in the folder you're running. | ||
|
||
## Further configuration | ||
|
||
### Quotes source | ||
|
||
The bot has 2 possible sources it gets the quotes from: [goodreads](https://goodreads.com) (default) and [Pensador](https://www.pensador.com). | ||
|
||
You can choose which one by specifying the `source` in the yaml. (`goodreads` or `pensador`) | ||
|
||
### Period | ||
|
||
To change how often it runs, specify in the yaml as `cron-expr`. (the Quarkus scheduler uses the [quartz format](http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html) by default) |