feat: add kaomoji

This commit is contained in:
sevichecc 2023-04-17 00:52:54 +08:00
parent af7cf9044d
commit 39723f9944
Signed by untrusted user who does not match committer: SevicheCC
GPG key ID: C577000000000000
3 changed files with 5 additions and 5 deletions

View file

@ -4,7 +4,7 @@
- [Akkoma](https://akkoma.social/) - [Akkoma](https://akkoma.social/)
- [Raycast](https://raycast.com) - [Raycast](https://raycast.com)
**Features**: **Features**:
- Write status with markdown support. - Write status with markdown support.

View file

@ -17,10 +17,10 @@ export default function BookmarkCommand() {
const getBookmark = async () => { const getBookmark = async () => {
try { try {
await authorize(); await authorize();
showToast(Toast.Style.Animated, "Loading bookmarks..."); showToast(Toast.Style.Animated, "Loading bookmarks..☆ミ(o*・ω・)ノ.");
const newBookmarks = await apiServer.fetchBookmarks(); const newBookmarks = await apiServer.fetchBookmarks();
setBookmarks((prevBookmarks) => [...prevBookmarks, ...newBookmarks]); setBookmarks((prevBookmarks) => [...prevBookmarks, ...newBookmarks]);
showToast(Toast.Style.Success, "Bookmarked has been loaded"); showToast(Toast.Style.Success, "Bookmarked has been loaded (^o^)");
cache.set("latest_bookmarks", JSON.stringify(newBookmarks)); cache.set("latest_bookmarks", JSON.stringify(newBookmarks));
} catch (error) { } catch (error) {
const requestErr = error as AkkomaError; const requestErr = error as AkkomaError;

View file

@ -17,10 +17,10 @@ export default function ViewStatusCommand() {
const getBookmark = async () => { const getBookmark = async () => {
try { try {
await authorize(); await authorize();
showToast(Toast.Style.Animated, "Loading Status..."); showToast(Toast.Style.Animated, "Loading Status...ε=ε=┌( >_<)┘");
const status = await apiServer.fetchUserStatus(); const status = await apiServer.fetchUserStatus();
setStatus(status); setStatus(status);
showToast(Toast.Style.Success, "Statuses has been loaded"); showToast(Toast.Style.Success, "Statuses has been loaded ٩(•̤̀ᵕ•̤́๑)ᵒᵏᵎᵎᵎᵎ");
cache.set("latest_statuses", JSON.stringify(status)); cache.set("latest_statuses", JSON.stringify(status));
} catch (error) { } catch (error) {
const requestErr = error as AkkomaError; const requestErr = error as AkkomaError;