mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
✌️
This commit is contained in:
parent
0c6b1e7350
commit
7f5c5bcc13
@ -11,7 +11,7 @@ const handler = new EventEmitter();
|
|||||||
|
|
||||||
let bot: IUser;
|
let bot: IUser;
|
||||||
|
|
||||||
const post = async (text: string) => {
|
const post = async (text: string, home = true) => {
|
||||||
if (bot == null) {
|
if (bot == null) {
|
||||||
const account = await User.findOne({
|
const account = await User.findOne({
|
||||||
usernameLower: config.github_bot.username.toLowerCase()
|
usernameLower: config.github_bot.username.toLowerCase()
|
||||||
@ -25,7 +25,7 @@ const post = async (text: string) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
createNote(bot, { text, visibility: 'home' });
|
createNote(bot, { text, visibility: home ? 'home' : 'public' });
|
||||||
};
|
};
|
||||||
|
|
||||||
// Init router
|
// Init router
|
||||||
@ -130,7 +130,7 @@ handler.on('issue_comment', event => {
|
|||||||
|
|
||||||
handler.on('watch', event => {
|
handler.on('watch', event => {
|
||||||
const sender = event.sender;
|
const sender = event.sender;
|
||||||
post(`⭐️ Starred by **${sender.login}** ⭐️`);
|
post(`(((⭐️))) Starred by **${sender.login}** (((⭐️)))`, false);
|
||||||
});
|
});
|
||||||
|
|
||||||
handler.on('fork', event => {
|
handler.on('fork', event => {
|
||||||
|
Loading…
Reference in New Issue
Block a user