-
Notifications
You must be signed in to change notification settings - Fork 3
/
GameNewsFeed.js
37 lines (24 loc) · 1.05 KB
/
GameNewsFeed.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Module imports
import { Feed } from '@trezystudios/bsky-common'
// Constants
const gameStudiosListURI = 'at://did:plc:pwsrgzcv426k7viyjl3ljdvb/app.bsky.graph.list/3jzcr5wp4fv26'
const gameJournalistsListURI = 'at://did:plc:pwsrgzcv426k7viyjl3ljdvb/app.bsky.graph.list/3jzcr5mdoxp2y'
const gamePublicationsListURI = 'at://did:plc:pwsrgzcv426k7viyjl3ljdvb/app.bsky.graph.list/3jzcr5gooza2n'
class GameNewsFeedClass extends Feed {
/****************************************************************************\
* Public instance methods
\****************************************************************************/
testSkeet(skeet) {
if (/#nogamenews/giu.test(skeet.text)) {
return false
}
return /#gamenews/giu.test(skeet.text)
}
}
export const GameNewsFeed = new GameNewsFeedClass({
description: 'Video game news and releases. Opt in with #GameNews, opt out with #NoFeed or #NoGameNews. Discuss at https://trezy.studio/discord.',
image: 'GameNewsFeed.png',
name: 'Game News',
ownerDID: 'did:web:bsky-feeds.trezy.studio',
rkey: 'game-news',
})