Update README and fix konochan command message sending
- Update plugin list and URLs in README - Change konochan command to send messages using MessageActions
This commit is contained in:
parent
138f11c30a
commit
2419c20844
2 changed files with 16 additions and 10 deletions
11
README.md
11
README.md
|
|
@ -1,15 +1,10 @@
|
||||||
> [!IMPORTANT]
|
# kmmiio99o's [Revenge](https://github.com/revenge-mod/Revenge-bundle)/[Kettu](https://codeberg.org/cocobo1/Kettu) Plugins
|
||||||
> This plugins are no longer actively maintained by me. You may still file issues and open pull requests.
|
|
||||||
|
|
||||||
# amsyarasyiq's [Vendetta](https://github.com/vendetta-mod/Vendetta) Plugins
|
|
||||||
|
|
||||||
Currently available plugins:
|
Currently available plugins:
|
||||||
- HideGiftButton
|
- Commands
|
||||||
- NoIdle
|
|
||||||
- MoreConfirm
|
|
||||||
- Last.fm
|
- Last.fm
|
||||||
|
|
||||||
# How to install?
|
# How to install?
|
||||||
Paste a plugin URL into the Plugins page of Vendetta, following a basic format of:
|
Paste a plugin URL into the Plugins page of Vendetta, following a basic format of:
|
||||||
|
|
||||||
`https://amsyarasyiq.github.io/letup/PLUGIN_NAME`
|
`https://kmmiio99o.github.io/vd-plugins/PLUGIN_NAME`
|
||||||
|
|
|
||||||
|
|
@ -112,10 +112,21 @@ export const konoSendCommand = {
|
||||||
const imageUrl = await fetchImage(isNSFW);
|
const imageUrl = await fetchImage(isNSFW);
|
||||||
|
|
||||||
if (!imageUrl) {
|
if (!imageUrl) {
|
||||||
return { type: 4, data: { content: "No image found. Try again later." } };
|
const fixNonce = Date.now().toString();
|
||||||
|
MessageActions.sendMessage(
|
||||||
|
ctx.channel.id,
|
||||||
|
{ content: "No image found. Try again later." },
|
||||||
|
void 0,
|
||||||
|
{ nonce: fixNonce },
|
||||||
|
);
|
||||||
|
return { type: 4 };
|
||||||
}
|
}
|
||||||
|
|
||||||
return { type: 4, data: { content: imageUrl } };
|
const fixNonce = Date.now().toString();
|
||||||
|
MessageActions.sendMessage(ctx.channel.id, { content: imageUrl }, void 0, {
|
||||||
|
nonce: fixNonce,
|
||||||
|
});
|
||||||
|
return { type: 4 };
|
||||||
},
|
},
|
||||||
applicationId: "-1",
|
applicationId: "-1",
|
||||||
inputType: 1,
|
inputType: 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue