mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 14:58:09 +09:00
Resolve #3274
This commit is contained in:
parent
5a1441357d
commit
af84f87c5e
@ -124,6 +124,17 @@ handler.on('issue_comment', event => {
|
||||
post(text);
|
||||
});
|
||||
|
||||
handler.on('release', event => {
|
||||
const action = event.action;
|
||||
const release = event.release;
|
||||
let text: string;
|
||||
switch (action) {
|
||||
case 'published': text = `🎁 **NEW RELEASE**: [${release.tag_name}](${release.html_url})`; break;
|
||||
default: return;
|
||||
}
|
||||
post(text);
|
||||
});
|
||||
|
||||
handler.on('watch', event => {
|
||||
const sender = event.sender;
|
||||
post(`(((⭐️))) Starred by **${sender.login}** (((⭐️)))`, false);
|
||||
|
Loading…
Reference in New Issue
Block a user