-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor bot config and add enableConsoleReader option
- Loading branch information
Showing
9 changed files
with
155 additions
and
107 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
Binary file not shown.
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.cadiducho.zincite; | ||
|
||
import lombok.Builder; | ||
|
||
/** | ||
* Zincite configuration class | ||
*/ | ||
@Builder | ||
public class ZinciteConfig { | ||
/** | ||
* The Telegram bot token | ||
*/ | ||
public String token; | ||
|
||
/** | ||
* The owner Telegram ID, if is set. Used to send exceptions to owner | ||
*/ | ||
public Long ownerId; | ||
|
||
/** | ||
* The bot version | ||
*/ | ||
@Builder.Default public String version = "1.0"; | ||
|
||
/** | ||
* The path to the logs folder | ||
*/ | ||
@Builder.Default public String logsPath = "logs"; | ||
|
||
/** | ||
* The path to the modules folder | ||
*/ | ||
@Builder.Default public String modulesPath = "modules"; | ||
|
||
/** | ||
* Enable if you want to use the console reader. Console will capture input from System.in | ||
*/ | ||
@Builder.Default public boolean enableConsoleReader = true; | ||
|
||
/** | ||
* Enable if you want to log to a file | ||
*/ | ||
@Builder.Default public boolean enableFileLog = false; | ||
} |
Oops, something went wrong.