diff options
| author | 2025-07-22 08:23:22 +0300 | |
|---|---|---|
| committer | 2025-07-22 08:23:22 +0300 | |
| commit | 1d1df7b540721d58db174764a0f720e3c638a67b (patch) | |
| tree | 44bbfc972dac04e32729a3065c90dea0334149d8 /src/Config.zig | |
| parent | replace trimming with just checking if the string is whitespace (diff) | |
| download | ukkobot-1d1df7b540721d58db174764a0f720e3c638a67b.tar.gz ukkobot-1d1df7b540721d58db174764a0f720e3c638a67b.tar.xz ukkobot-1d1df7b540721d58db174764a0f720e3c638a67b.zip | |
Whitelist allowed inline bots
Also update to Zig 0.14.1
Also don't send the animations rn
Diffstat (limited to 'src/Config.zig')
| -rw-r--r-- | src/Config.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Config.zig b/src/Config.zig index 4deebbc..f9d6dab 100644 --- a/src/Config.zig +++ b/src/Config.zig | |||
| @@ -71,13 +71,13 @@ pub fn load(parent_allocator: Allocator, filename: []const u8) !Wrapper { | |||
| 71 | 71 | ||
| 72 | const Nullable = blk: { | 72 | const Nullable = blk: { |
| 73 | const template = @typeInfo(Config); | 73 | const template = @typeInfo(Config); |
| 74 | var fields: [template.Struct.fields.len]std.builtin.Type.StructField = undefined; | 74 | var fields: [template.@"struct".fields.len]std.builtin.Type.StructField = undefined; |
| 75 | for (template.Struct.fields, 0..) |template_field, field_idx| { | 75 | for (template.@"struct".fields, 0..) |template_field, field_idx| { |
| 76 | fields[field_idx] = template_field; | 76 | fields[field_idx] = template_field; |
| 77 | fields[field_idx].type = ?template_field.type; | 77 | fields[field_idx].type = ?template_field.type; |
| 78 | } | 78 | } |
| 79 | var new = template; | 79 | var new = template; |
| 80 | new.Struct.fields = &fields; | 80 | new.@"struct".fields = &fields; |
| 81 | new.Struct.decls = &.{}; | 81 | new.@"struct".decls = &.{}; |
| 82 | break :blk @Type(new); | 82 | break :blk @Type(new); |
| 83 | }; | 83 | }; |