-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
175 additions
and
1,502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
{ | ||
"name": "Node.js & TypeScript", | ||
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm" | ||
"name": "Codercord", | ||
"image": "oven/bun:debian", | ||
"features": { | ||
"ghcr.io/devcontainers/features/git:1": {}, | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/devcontainers/features/common-utils:2": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["oven.bun-vscode", "biomejs.biome"], | ||
"settings": { | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.formatOnSave": true | ||
} | ||
} | ||
}, | ||
"postCreateCommand": "bun install", | ||
"remoteUser": "codercord" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
open-pull-requests-limit: 10 | ||
commit-message: | ||
prefix: "chore:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: oven-sh/setup-bun@v1 | ||
- name: format and lint | ||
run: | | ||
bun install --frozen-lockfile | ||
bun format:ci | ||
bun lint:ci |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] | ||
"recommendations": ["oven.bun-vscode", "biomejs.biome"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
} | ||
"editor.defaultFormatter": "biomejs.biome" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,19 @@ | ||
# Codercord | ||
|
||
A Discord bot for the Coder community server written in JavaScript. | ||
A Discord bot for the Coder community server written in Typescript. | ||
|
||
## How to run | ||
|
||
1. Get the [Dart SDK](https://dart.dev/get-dart) | ||
2. Clone the repository | ||
1. Clone the repository | ||
|
||
```sh | ||
git clone [email protected]:coder/codercord.git | ||
cd codercord | ||
``` | ||
|
||
3. Run the project | ||
2. Run the project | ||
|
||
```sh | ||
dart run | ||
``` | ||
|
||
You can also pre-compile the binary instead of using `dart run` everytime | ||
|
||
```sh | ||
dart compile exe bin/codercord.dart -o codercord | ||
./codercord | ||
``` | ||
TODO: Add instructions to run the project | ||
|
||
## Configuration | ||
|
||
|
@@ -34,3 +24,7 @@ Environment variables : | |
(relative to process working directory if no absolute path is provided) | ||
Example `config.toml` provided [here](https://github.com/coder/codercord/blob/main/config.toml.example) | ||
## Contributing | ||
Use the `.devcontainer` to develop in a containerized environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"no_programming": "This is is **NOT** a programming help server !\nYou are looking at the <https://coder.com> discord server, which is a product that lets you use remote machines as development environments.\n\nyou can ask programming-related questions at <https://discord.gg/code> or <https://discord.gg/programming>", | ||
"post_status": "You can close posts by running ``/close`` or reopen them by runing ``/reopen``" | ||
"no_programming": "This is is **NOT** a programming help server !\nYou are looking at the <https://coder.com> discord server, which is a product that lets you use remote machines as development environments.\n\nyou can ask programming-related questions at <https://discord.gg/code> or <https://discord.gg/programming>", | ||
"post_status": "You can close posts by running ``/close`` or reopen them by runing ``/reopen``" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
|
||
"files": { | ||
"ignore": ["package.json", "bun.lockb", "*.md"] | ||
}, | ||
|
||
"formatter": { | ||
"indentWidth": 2, | ||
"indentStyle": "space", | ||
"lineWidth": 80 | ||
}, | ||
|
||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
|
||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": true | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.