feat: add twitter radar rules

This commit is contained in:
DIYgod 2024-03-14 22:48:27 +08:00
parent 29f20a2658
commit c65475b573
No known key found for this signature in database
3 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,9 @@ export const route: Route = {
name: 'Keyword',
maintainers: ['DIYgod', 'yindaheng98', 'Rongronggg9'],
handler,
radar: {
source: ['twitter.com/search'],
},
};
async function handler(ctx) {

View File

@ -26,6 +26,10 @@ export const route: Route = {
name: 'User media',
maintainers: ['yindaheng98', 'Rongronggg9'],
handler,
radar: {
source: ['twitter.com/:id/media'],
target: '/twitter/media/:id',
},
};
async function handler(ctx) {

View File

@ -30,6 +30,10 @@ export const route: Route = {
name: 'User timeline',
maintainers: ['DIYgod', 'yindaheng98', 'Rongronggg9'],
handler,
radar: {
source: ['twitter.com/:id'],
target: '/twitter/user/:id',
},
};
async function handler(ctx) {