Skip to content

Commit

Permalink
0.1.4 Update (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
reinacchi authored Feb 19, 2022
2 parents 1b2fb06 + ea08d6b commit 6d6a3da
Show file tree
Hide file tree
Showing 17 changed files with 740 additions and 334 deletions.
59 changes: 54 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,56 @@
# 0.1.3
## Fixes
# 0.1.4 (Community)

- Update license year
- Change `createMessage({ embeds: [embed] })` -> `createMessage({ embed: embed })`
Added new setting configuration which allows user to whether read in a new embed or current. See `n;config` for more options!

---
## Additions

- `Read` button behaviour is now depend on the current settings applied. The options are `new` and `current`; default is `current`.
- Added a new button called `Show Cover` and `Hide Cover`. I noticed the thumbnail is too small for mobile platform.

## Breaking Changes

- `n;config --settings <option> --value <value>` has been replaced with `n;config --option <option> --value <value>`. I noticed the old sounds a bit off so I fix that.

## Patches

- `n;bookmark` should now load properly. It may be slow to load as it require lots of time to process your data.
- Fixed case sensitivity for `n;config`. Incase you allow cap locks on, there should be no problem adjusting the bot with HUGE letters.
- Favorites count now represent in locale string.

---

# 0.1.4 (Dev)

News update regarding to `0.1.4` dev code edition.

## Additions

- Improve `ButtonNavigator` class and the rest to handle reading states and handle for cover/hide book cover.
- Added JSDoc for some methods to ease developers (especially me) to memorize its own function.
- Added new `reading-state` option for `n;config`. This allow users to read in a new page or overriding their search query/bookmark.
- Added an improved guild database creation. This will runs when the bot is invited into a guild for the first time (or when guild data hasn't been created yet)
- Added new 2 interactionCreate events (`show_book_cover_{messageID}` and `hide_book_cover_{messageID}`) to support the handling of show/hide book cover.
- 6 new strings have been added in this update. The new strings have also been added to Crowdin and ready for translation.

## Breaking Changes

- `flag.settings` has been replaced with `flag.option`.

## Patches

- Favorites count now represent in locale string. Fixed using `.toLocaleString()`.
- Fixed alias command.
- Warning log message will shows `N/A` instead of `undefined` incase it happens frequently.
- Shard ping will log as `N/A` if it logged as `Infinity`.
- On ready session, the console will log both username and discriminator instead of username.

### Upcoming Possible Fixes

- Attempting to fix (or at least prevent) the cause of [#1](https://github.com/reinhello/Reader/issues/1).
- Used all strings from `Languages/LANG.json` file instead of separate to fully support multilingual.

# Contributors

- [@reinhello](https://github.com/reinhello) (**Project Lead**, **Contributor**)

---
280 changes: 143 additions & 137 deletions Languages/LANG.json
Original file line number Diff line number Diff line change
@@ -1,142 +1,148 @@
{
"ENGLISH": {
"ADMIN": {
"CONFIG": {
"META": {
"DESC": "Configure the Bot with your own customization settings",
"CATEGORY": "Admin"
},
"PREFIX_TOO_LONG": "Prefix must be at least 64 characters or below!",
"NO_PERMS": "You don't have the required permissions to run this command!",
"NO_OPT": "Please choose one of these following valid options: `{options}`",
"NO_PREFIX": "Please specify a new prefix!",
"PREFIX_SUCCESS": "Successfully changed the prefix to `{prefix}`",
"NO_LANG": "Please specify a language to be used! \n\n The only supported languages are: **{language}**",
"INVALID_LANG": "The only supported languages are: **{language}**",
"LANG_SUCCESS": "Successfully changed the language to **{language}**"
}
"ENGLISH": {
"ADMIN": {
"CONFIG": {
"META": {
"DESC": "Configure the Bot with your own customization settings",
"CATEGORY": "Admin"
},
"GENERAL": {
"HELP": {
"META": {
"DESC": "Display all available commands",
"CATEGORY": "General"
},
"CATEGORIES": {
"ADMIN": "Admin",
"GENERAL": "General",
"MAIN": "Main"
},
"TITLE": "{bot}'s Commands",
"DESC": "Use {command} for a command detail",
"TRUE": "True",
"FALSE": "False",
"ALIASES": "Aliases",
"CATEGORY": "Category",
"USAGE": "Usage",
"ADMIN_ONLY": "Admin Only",
"NSFW_ONLY": "NSFW Only"
},
"PING": {
"META": {
"DESC": "Ping the Bot",
"CATEGORY": "General"
},
"TEXT": "Pong! | {latency}ms"
},
"STATS": {
"META": {
"DESC": "Shows the bot's stats",
"CATEGORY": "General"
},
"TITLE": "{bot}'s Stats",
"DESC": "This is the current stats for **{bot}**. \n She's currently in shard ID: **{shard}** \n\n **Fun Fact**: **{bot}** is now Open-Source! You can find her [Here]({gh_url}).",
"FIELDS": {
"MEMORY_USAGE": {
"NAME": "Memory Usage",
"VALUE": "{total_mem} \n ({percentage}%)"
},
"CPU_USAGE": {
"NAME": "CPU Usage",
"VALUE": "{percentage}%"
},
"DATABASE_SIZE": {
"NAME": "Database Size",
"VALUE": "{size}"
},
"NODEJS": {
"NAME": "NodeJS",
"VALUE": "{version}"
},
"ERIS": {
"NAME": "Eris",
"VALUE": "{version}"
},
"PLATFORM": {
"NAME": "Platform",
"VALUE": "{platform}"
}
},
"FOOTER": "Made by {dev}"
}
"PREFIX_TOO_LONG": "Prefix must be at least 64 characters or below!",
"NO_PERMS": "You don't have the required permissions to run this command!",
"NO_OPT": "Please choose one of these following valid options: `{options}`",
"NO_PREFIX": "Please specify a new prefix!",
"PREFIX_SUCCESS": "Successfully changed the prefix to `{prefix}`",
"NO_LANG": "Please specify a language to be used! \n\n The only supported languages are: **{language}**",
"INVALID_LANG": "The only supported languages are: **{language}**",
"LANG_SUCCESS": "Successfully changed the language to **{language}**",
"NO_READSTATE": "Please choose one of these following valid options: `{options}`",
"INVALID_READSTATE": "Invalid option! The valid options are: {options}",
"READSTATE_SUCCESS_NEW": "Successfully changed the reading state to `new`. I'll now send you a new page instead of overriding your current search query/bookmark.",
"READSTATE_SUCCESS_CURRENT": "Successfully changed the reading state to `current`. I'll now override your search query/bookmark with the requested page"
}
},
"GENERAL": {
"HELP": {
"META": {
"DESC": "Display all available commands",
"CATEGORY": "General"
},
"MAIN": {
"BOOKMARK": {
"META": {
"DESC": "A library of your bookmarked Doujins",
"CATEGORY": "Main"
},
"MEMBER": {
"DESC": "This is {user}'s bookmarks, don't expect too much.",
"LOADING_STATE": "Fetching their data, please wait..."
},
"TITLE": "{user}'s Bookmarks",
"DESC": "Welcome, **{user}** to your library! Please have a look. \n\n **Wanna remove your bookmarked Doujin?** \n Visit the page (`{prefix}read <doujin>`) and click the **Bookmark** button to remove.",
"BOOKMARKED": "⭐ Bookmarked Doujin [{count}]",
"NONE": "None",
"LOADING_STATE": "Fetching your data, please wait..."
},
"READ": {
"META": {
"DESC": "Read a Doujin",
"CATEGORY": "Main"
},
"TITLE": "Title",
"PAGES": "Pages",
"DATE": "Date Released",
"LANGUAGE": "Language",
"LANGUAGES": "Languages",
"ARTIST": "Artist",
"ARTISTS": "Artists",
"CHARACTER": "Character",
"CHARACTERS": "Characters",
"PARODY": "Parody",
"TAG": "Tag",
"TAGS": "Tags",
"NONE": "None",
"NOT_PROVIDED": "Not Provided",
"READ": "Read",
"DISMISS": "Dismiss",
"BOOKMARK": "Bookmark"
},
"SEARCH": {
"META": {
"DESC": "Search for Doujins",
"CATEGORY": "Main"
},
"NOT_FOUND": "No Results Found!",
"NO_QUERY": "Please specify a search query otherwise, what'd you want to search? \n\n `{command_example}`",
"INVALID_PAGE": "Page should be in number!",
"PAGE": "Page {page}",
"TITLES": "**Titles** \n {titles}",
"DETAIL": "See More Detail"
},
"SEARCHLIKE": {
"META": {
"DESC": "Search for similar Doujins",
"CATEGORY": "Main"
}
}
"CATEGORIES": {
"ADMIN": "Admin",
"GENERAL": "General",
"MAIN": "Main"
},
"TITLE": "{bot}'s Commands",
"DESC": "Use {command} for a command detail",
"TRUE": "True",
"FALSE": "False",
"ALIASES": "Aliases",
"CATEGORY": "Category",
"USAGE": "Usage",
"ADMIN_ONLY": "Admin Only",
"NSFW_ONLY": "NSFW Only"
},
"PING": {
"META": {
"DESC": "Ping the Bot",
"CATEGORY": "General"
},
"TEXT": "Pong! | {latency}ms"
},
"STATS": {
"META": {
"DESC": "Shows the bot's stats",
"CATEGORY": "General"
},
"TITLE": "{bot}'s Stats",
"DESC": "This is the current stats for **{bot}**. \n She's currently in shard ID: **{shard}** \n\n **Fun Fact**: **{bot}** is now Open-Source! You can find her [Here]({gh_url}).",
"FIELDS": {
"MEMORY_USAGE": {
"NAME": "Memory Usage",
"VALUE": "{total_mem} \n ({percentage}%)"
},
"CPU_USAGE": {
"NAME": "CPU Usage",
"VALUE": "{percentage}%"
},
"DATABASE_SIZE": {
"NAME": "Database Size",
"VALUE": "{size}"
},
"NODEJS": {
"NAME": "NodeJS",
"VALUE": "{version}"
},
"ERIS": {
"NAME": "Eris",
"VALUE": "{version}"
},
"PLATFORM": {
"NAME": "Platform",
"VALUE": "{platform}"
}
},
"FOOTER": "Made by {dev}"
}
},
"MAIN": {
"BOOKMARK": {
"META": {
"DESC": "A library of your bookmarked Doujins",
"CATEGORY": "Main"
},
"MEMBER": {
"DESC": "This is {user}'s bookmarks, don't expect too much.",
"LOADING_STATE": "Fetching their data, please wait..."
},
"TITLE": "{user}'s Bookmarks",
"DESC": "Welcome, **{user}** to your library! Please have a look. \n\n **Wanna remove your bookmarked Doujin?** \n Visit the page (`{prefix}read <doujin>`) and click the **Bookmark** button to remove.",
"BOOKMARKED": "⭐ Bookmarked Doujin [{count}]",
"NONE": "None",
"LOADING_STATE": "Fetching your data, please wait..."
},
"READ": {
"META": {
"DESC": "Read a Doujin",
"CATEGORY": "Main"
},
"TITLE": "Title",
"PAGES": "Pages",
"DATE": "Date Released",
"LANGUAGE": "Language",
"LANGUAGES": "Languages",
"ARTIST": "Artist",
"ARTISTS": "Artists",
"CHARACTER": "Character",
"CHARACTERS": "Characters",
"PARODY": "Parody",
"TAG": "Tag",
"TAGS": "Tags",
"NONE": "None",
"NOT_PROVIDED": "Not Provided",
"READ": "Read",
"DISMISS": "Dismiss",
"BOOKMARK": "Bookmark",
"SHOW_COVER": "Show Cover",
"HIDE_COVER": "Hide Cover"
},
"SEARCH": {
"META": {
"DESC": "Search for Doujins",
"CATEGORY": "Main"
},
"NOT_FOUND": "No Results Found!",
"NO_QUERY": "Please specify a search query otherwise, what'd you want to search? \n\n `{command_example}`",
"INVALID_PAGE": "Page should be in number!",
"PAGE": "Page {page}",
"TITLES": "**Titles** \n {titles}",
"DETAIL": "See More Detail"
},
"SEARCHLIKE": {
"META": {
"DESC": "Search for similar Doujins",
"CATEGORY": "Main"
}
}
}
}
}
}
Loading

0 comments on commit 6d6a3da

Please sign in to comment.