Skip to content

Commit 5be672c

Browse files
committed
Fully deprecate "%" commands
See #65. - Rewrite in Rust. Not 100% sure about this — serenity (the Discord library) has some rough edges. I've entirely ignored poise (the extension library for defining commands) as I really do not like it so have made things a bit harder for myself as needed. - Add new /eval command and "Run in CC:T" message command. - Remove % commands and log a warning instead.
1 parent 66650e3 commit 5be672c

50 files changed

Lines changed: 4038 additions & 1674 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,11 @@ root = true
22

33
[*]
44
indent_style = space
5-
indent_size = 4
5+
indent_size = 2
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

1111
[*.md]
1212
trim_trailing_whitespace = false
13-
14-
[*.fs]
15-
indent_size = 2
16-
17-
fsharp_max_array_or_list_width=80
18-
fsharp_max_dot_get_expression_width=80
19-
fsharp_max_function_binding_width=80
20-
fsharp_max_if_then_else_short_width=80
21-
fsharp_max_record_width=80
22-
fsharp_max_value_binding_width=80
23-
fsharp_blank_lines_around_nested_multiline_expressions=false
24-
fsharp_space_before_colon=true
25-
26-
[*.yml]
27-
indent_style = space
28-
indent_size = 2

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ jobs:
1212
uses: actions/checkout@v4
1313

1414
- name: ⚒️ Build
15-
run: dotnet publish -c Release --self-contained true -r linux-x64
15+
run: |
16+
sudo apt update && sudo apt install -y musl-tools
17+
rustup target add x86_64-unknown-linux-musl
18+
cargo build --release --target x86_64-unknown-linux-musl
1619
1720
- name: 📤 Upload Build
1821
uses: actions/upload-artifact@v4
1922
with:
2023
name: Binaries
21-
path: ./bin/Release/net6.0/linux-x64/publish
24+
path: ./target/x86_64-unknown-linux-musl/release/faqbot-cc
2225
retention-days: 1

.gitignore

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,5 @@
22
/token
33
/config.json
44

5-
# Build ouput
6-
*.pyc
7-
/obj
8-
/bin
9-
/result
10-
11-
# Editor tooling
12-
.fake
13-
.ionide
5+
# Rust
6+
/target

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,3 @@ repos:
1313
- id: check-yaml
1414
- id: check-toml
1515
- id: check-json
16-
17-
- repo: local
18-
hooks:
19-
- id: fantomas
20-
name: Fantomas
21-
files: ".*\\.fs$"
22-
language: system
23-
entry: dotnet fantomas --

.rustfmt.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
edition = "2024"
2+
tab_spaces = 2

0 commit comments

Comments
 (0)