Skip to content

Commit

Permalink
Merge pull request #30 from ckcr4lyf/feature/2.0.0
Browse files Browse the repository at this point in the history
2.0.0 alpha
  • Loading branch information
ckcr4lyf authored Sep 8, 2022
2 parents 9c2870b + 5c9aed6 commit 1fe556a
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 1,041 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -21,8 +21,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: cp sample.settings.js settings.js
- run: cp sample.env .env
- run: npm install
- run: npm run test
- run: npm run build
15 changes: 15 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
__mocks__/
__tests__/
.github/
src/
tests/
.gitignore
.npmignore
sample.env
sample.settings.js
settings.d.ts
settings.js
.env
tsconfig.json
logs/
node_modules/
3 changes: 3 additions & 0 deletions bin/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { buildTorrentAddedBody } from '../build/discord/messages.js'
import { getLoggerV3 } from '../build/utils/logger.js'
import { tagErroredTorrents } from '../build/racing/tag.js'
import { postRaceResumeV2 } from '../build/racing/completed.js'
import { addTorrentToRace } from '../build/racing/add.js';

const logger = getLoggerV3();
logger.info(`Starting...`);
Expand Down Expand Up @@ -59,6 +60,8 @@ program.command('completed').description('Run post race procedure on complete of

program.command('add').description('Add a new torrent').requiredOption('-p, --path <path>', 'The path to the torrent file (can be in /tmp)').option('-c, --category <category>', 'Category to set in qBittorrent').action(async(options) => {
logger.debug(`Going to add torrent from ${options.path}, and set category ${options.category}`);

await addTorrentToRace(api, config, options.path, options.category);
})

program.parse();
149 changes: 0 additions & 149 deletions build/add_torrent.js

This file was deleted.

49 changes: 0 additions & 49 deletions build/check_qbit.js

This file was deleted.

17 changes: 8 additions & 9 deletions build/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 0 additions & 70 deletions build/discord/messages.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1fe556a

Please sign in to comment.