Skip to content

Commit 50fc0b8

Browse files
committed
chore: moved to lf
1 parent c532e4e commit 50fc0b8

File tree

15 files changed

+1005
-1207
lines changed

15 files changed

+1005
-1207
lines changed

.eslintrc.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"$schema": "https://json.schemastore.org/eslintrc.json",
3+
"env": {
4+
"browser": false,
5+
"es2021": true,
6+
"node": true
7+
},
8+
"extends": [
9+
"plugin:prettier/recommended"
10+
],
11+
"plugins": [
12+
"unused-imports",
13+
"import",
14+
"@typescript-eslint",
15+
"prettier"
16+
],
17+
"parser": "@typescript-eslint/parser",
18+
"parserOptions": {
19+
"ecmaVersion": 12,
20+
"sourceType": "module"
21+
},
22+
"rules": {
23+
"no-console": "warn",
24+
"prettier/prettier": [
25+
"warn",
26+
{
27+
"tabWidth": 4
28+
}
29+
],
30+
"no-unused-vars": "off",
31+
"unused-imports/no-unused-vars": "off",
32+
"unused-imports/no-unused-imports": "warn",
33+
"@typescript-eslint/no-unused-vars": [
34+
"warn",
35+
{
36+
"args": "after-used",
37+
"ignoreRestSiblings": false,
38+
"argsIgnorePattern": "^_.*?$"
39+
}
40+
],
41+
"import/order": [
42+
"warn",
43+
{
44+
"groups": [
45+
"type",
46+
"builtin",
47+
"object",
48+
"external",
49+
"internal",
50+
"parent",
51+
"sibling",
52+
"index"
53+
],
54+
"pathGroups": [
55+
{
56+
"pattern": "~/**",
57+
"group": "external",
58+
"position": "after"
59+
}
60+
],
61+
"newlines-between": "always"
62+
}
63+
],
64+
"padding-line-between-statements": [
65+
"warn",
66+
{
67+
"blankLine": "always",
68+
"prev": "*",
69+
"next": "return"
70+
},
71+
{
72+
"blankLine": "always",
73+
"prev": [
74+
"const",
75+
"let",
76+
"var"
77+
],
78+
"next": "*"
79+
},
80+
{
81+
"blankLine": "any",
82+
"prev": [
83+
"const",
84+
"let",
85+
"var"
86+
],
87+
"next": [
88+
"const",
89+
"let",
90+
"var"
91+
]
92+
}
93+
]
94+
}
95+
}

.github/workflows/eslint.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: ESLint Check
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
paths:
8+
- "**/*.js"
9+
- "**/*.jsx"
10+
- "**/*.ts"
11+
- "**/*.tsx"
12+
- "**/*.mjs"
13+
pull_request:
14+
types: [opened, reopened, synchronize]
15+
16+
jobs:
17+
lint:
18+
name: ESLint
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v2
24+
25+
- name: Setup Bun
26+
uses: oven-sh/setup-bun@v1
27+
28+
- name: Install dependencies
29+
run: bun install
30+
31+
- name: Run ESLint
32+
run: bun run lint

.github/workflows/lockb.yml

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,44 @@
1-
# https://github.com/dependabot/dependabot-core/issues/6528#issuecomment-2013695799
2-
3-
name: 'Dependabot: Update bun.lockb'
1+
name: Update bun.lockb
42

53
on:
6-
pull_request:
7-
paths:
8-
- "package-lock.json"
4+
push:
5+
branches:
6+
- main
97

108
permissions:
119
contents: write
1210

1311
jobs:
1412
update-bun-lockb:
1513
name: "Update bun.lockb"
16-
if: github.actor == 'dependabot[bot]'
1714
runs-on: ubuntu-latest
1815
steps:
19-
- uses: oven-sh/setup-bun@v1
20-
- uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0
23-
ref: ${{ github.event.pull_request.head.ref }}
24-
- run: |
25-
bun install
16+
- name: Set up Bun
17+
uses: oven-sh/setup-bun@v1
18+
19+
- name: Check out repository
20+
uses: actions/checkout@v4
21+
22+
- name: Install dependencies with Bun
23+
run: bun install
24+
25+
- name: Check for changes
26+
id: git_status
27+
run: |
2628
git add bun.lockb
27-
git config --global user.name 'dependabot[bot]'
28-
git config --global user.email 'dependabot[bot]@users.noreply.github.com'
29-
git commit --amend --no-edit
30-
git push --force
29+
if [ -z "$(git status --porcelain)" ]; then
30+
echo "No changes to bun.lockb"
31+
echo "::set-output name=changes_detected::false"
32+
else
33+
echo "Changes detected to bun.lockb"
34+
echo "::set-output name=changes_detected::true"
35+
fi
36+
37+
- name: Commit and push changes to bun.lockb
38+
if: steps.git_status.outputs.changes_detected == 'true'
39+
run: |
40+
git config --global user.name 'github-actions[bot]'
41+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
42+
git commit -m "Update bun.lockb (via GitHub Actions)"
43+
git pull --rebase origin main
44+
git push

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

README.md

Lines changed: 49 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,71 @@
11
# Feedr
2+
3+
> [!WARNING]
4+
> Feedr is currently being updated to 1.3.0
5+
26
The next best Discord Bot to notify your members about YouTube video uploads!
37
Feedr checks for:
4-
* YouTube uploads every **10** seconds
5-
* Twitch streams are live every **2** seconds
8+
9+
- YouTube uploads every **10** seconds
10+
- Twitch streams are live every **2** seconds
611

712
Invite the bot [here](https://discord.com/oauth2/authorize?client_id=1243939861996503171&permissions=274877959232&integration_type=0&scope=applications.commands+bot)
813

914
# User Instructions
15+
1016
To track a channel, use the **/track** command, which will take in the following parameters
11-
* `youtube_channel`, which is the YouTube Channel ID. It should begin with "UC" and have 24 characters (such as this: UCGJXFC0YsDzVP3ar8RzhCmA)
12-
* `updates_channel`, which is the Discord channel that new uploads will be posted to
13-
* `role` (OPTIONAL), which is the role to ping when there's a new upload.
17+
18+
- `youtube_channel`, which is the YouTube Channel ID. It should begin with "UC" and have 24 characters (such as this: UCGJXFC0YsDzVP3ar8RzhCmA)
19+
- `updates_channel`, which is the Discord channel that new uploads will be posted to
20+
- `role` (OPTIONAL), which is the role to ping when there's a new upload.
1421

1522
To stop tracking a channel use **/untrack**
1623

1724
# Roadmap
25+
1826
Feedr strives for constant improvement, so here's what will be implemented
19-
* YouTube Channel selector when using **/track**
20-
* Make it easier to stop tracking channels by showing channels already in the guild when doing **/untrack**
21-
* Other social media platforms
22-
* Make it easier to switch discord channels for uploads so that **/untrack** then **/track** is not required
23-
* **/tracked** command to show what channels are being tracked in the guild
27+
28+
- YouTube Channel selector when using **/track**
29+
- Make it easier to stop tracking channels by showing channels already in the guild when doing **/untrack**
30+
- Other social media platforms
31+
- Make it easier to switch discord channels for uploads so that **/untrack** then **/track** is not required
32+
- **/tracked** command to show what channels are being tracked in the guild
2433

2534
# Permissions Needed
26-
* View Channels
27-
* Send Messages
28-
* Send Messages in Threads
29-
* Embed Links
30-
* Attach Files
31-
* Add Reactions
35+
36+
- View Channels
37+
- Send Messages
38+
- Send Messages in Threads
39+
- Embed Links
40+
- Attach Files
41+
- Add Reactions
42+
43+
# Developer Instructions
44+
45+
Feedr requires Bun in order to work
46+
47+
1. To install, run `bun i`
48+
2. Fill out all the required values in `.env.example` and rename it to `.env` once done
49+
3. To run in developer mode, just run `bun --watch . --dev`, otherwise `bun run .`
3250

3351
# Changelog
52+
53+
## 1.3.0
54+
55+
- WIP
56+
3457
## 1.2.0
35-
* Added Twitch feed
36-
* `platform` added to both **/track** and **/untrack**
58+
59+
- Added Twitch feed
60+
- `platform` added to both **/track** and **/untrack**
3761

3862
## 1.1.0
39-
* Replies are no longer deferred
40-
* Messages can now be sent in Announcement channels [1.0.3]
41-
* Better checking for valid YouTube channel IDs
42-
* Channels with no uploads will be tracked now
63+
64+
- Replies are no longer deferred
65+
- Messages can now be sent in Announcement channels [1.0.3]
66+
- Better checking for valid YouTube channel IDs
67+
- Channels with no uploads will be tracked now
4368

4469
## 1.0.0
45-
* Initial release
70+
71+
- Initial release

bun.lockb

90.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)