Skip to content

Commit

Permalink
first day of 2024!
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingAP committed Dec 1, 2024
1 parent 4de3a57 commit 11f373e
Show file tree
Hide file tree
Showing 30 changed files with 3,870 additions and 3,708 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ These are all my solutions for the years of [Advent of Code](https://adventofcod

### How to Use Locally

Clone this repository on your computer and run...
Clone this repository on your computer, change directory to `/aoc` and run...

```
> npm i
```bash
> deno task aoc
```

To use the repository, you need a `.env` that has your token...
To use the repository, you need a `.env` in `/aoc` that has your token...

```
SESSION=YOUR_TOKEN_HERE
```

### How to Run

To see how it works, run `node aoc` to see all commands and arguments.
To see how it works, run `deno task aoc` to see all commands and arguments.

Also, to lint: `npx prettier . --write`
To generate the frontend, run `deno task generate <debug>` and `deno fmt`

### Note for AOC moderators

The automated requests are served from `aoc.js`, where they have the a User-Agent header that points to this page. Nothing is done automatically, all done by a
The automated requests are served from `aoc.ts`, where they have the a User-Agent header that points to this page. Nothing is done automatically, all done by a
function call by the built in command line tool or a call from another script. Also, there are no inputs stored on the GitHub repository
Binary file modified aoc/aoc_data.db
Binary file not shown.
90 changes: 0 additions & 90 deletions aoc/fix.ts

This file was deleted.

2 changes: 1 addition & 1 deletion aoc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const commandLineInfo: {
submit: {
aliases: ['s'],
description: 'submits the answer of the puzzle specified.',
arguments: ['day', 'year', 'part'],
arguments: ['day', 'year', 'part', 'fake'],
command: (args: CommandArguments) => {
console.log(
`${RED_COLOR}manager: ${GREEN_COLOR}submitting answers for day ${YELLOW_COLOR}${args.day}${GREEN_COLOR}, year ${YELLOW_COLOR}${args.year}${GREEN_COLOR}!${DEFAULT_COLOR}`,
Expand Down
Loading

0 comments on commit 11f373e

Please sign in to comment.