-
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.
added /info(main) and /start, added support for assets
- add /info (without subcommand) - add about pic - add morny about links - add MornyAssets to manager & use assets - add TelegramImages to manager images that in use - with a AssetsFileImage - with IMG_ABOUT - add MornyAbout - changed MornyHello to MornyAbout - add about links (used in /info) - remove HelloOnStart
- Loading branch information
Showing
13 changed files
with
324 additions
and
91 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
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,31 @@ | ||
package cc.sukazyo.cono.morny; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* Some of the static information of Morny. | ||
*/ | ||
public class MornyAbout { | ||
|
||
/** | ||
* ASCII art of Morny Featured Image. | ||
* <p> | ||
* used for Coeur starting welcome screen. | ||
* <p> | ||
* stored at <i><u>/assets_morny/texts/server-hello.txt</u></i> | ||
*/ | ||
public static final String MORNY_PREVIEW_IMAGE_ASCII; | ||
static { | ||
try { | ||
MORNY_PREVIEW_IMAGE_ASCII = MornyAssets.pack.getResource("texts/server-hello.txt").readAsString(); | ||
} catch (IOException e) { | ||
throw new RuntimeException("Cannot read MORNY_PREVIEW_IMAGE_ASCII from assets pack", e); | ||
} | ||
} | ||
|
||
public static final String MORNY_SOURCECODE_LINK = "https://github.com/Eyre-S/Coeur-Morny-Cono"; | ||
public static final String MORNY_SOURCECODE_SELF_HOSTED_MIRROR_LINK = "https://storage.sukazyo.cc/Eyre_S/Coeur-Morny-Cono"; | ||
public static final String MORNY_ISSUE_TRACKER_LINK = "https://github.com/Eyre-S/Coeur-Morny-Cono/issues"; | ||
public static final String MORNY_USER_GUIDE_LINK = "https://book.sukazyo.cc/morny"; | ||
|
||
} |
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,19 @@ | ||
package cc.sukazyo.cono.morny; | ||
|
||
import cc.sukazyo.restools.ResourcesPackage; | ||
|
||
/** | ||
* Morny assets manager. | ||
* | ||
* @see #pack | ||
* @since 1.0.0-RC4 | ||
*/ | ||
public class MornyAssets { | ||
|
||
/** | ||
* Instance mirror of the Morny assets, the assets root is <i><u>/src/main/resources/assets_morny/</u></i>. | ||
* @since 1.0.0-RC4 | ||
*/ | ||
public static final ResourcesPackage pack = new ResourcesPackage(MornyAssets.class, "assets_morny"); | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.