Skip to content

Commit a0e39fe

Browse files
committed
Fix Windows build and include text commands in DB
1 parent 2f731a4 commit a0e39fe

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ jobs:
3131
c_compiler: cl
3232

3333
steps:
34-
- uses: actions/checkout@v4
34+
- name: Checkout without vcpkg
35+
id: lincheckout
36+
if: ${{ runner.os == 'Linux' }}
37+
uses: actions/checkout@v4
3538

36-
- name: Checkout vcpkg
37-
id: submodule
39+
- name: Checkout with vcpkg
40+
id: wincheckout
3841
if: ${{ runner.os == 'Windows' }}
3942
uses: actions/checkout@v4
4043
with:

TSCppBot.db.example

0 Bytes
Binary file not shown.

src/listeners/members.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ dpp::task<> members::on_member_edit(const dpp::guild_audit_log_entry_create_t& e
187187
embed.add_field("New Nickname", change.new_value.substr(1, change.new_value.size() - 2), true);
188188
}
189189
embed.set_footer(dpp::embed_footer().set_text(std::string("User ID: ") + user.id.str()));
190-
channel = config["log_channel_ids"]["name_changed"];
190+
channel = config["log_channel_ids"]["name_changed"].get<dpp::snowflake>();
191191
} // other attributes can be added in the future
192192
if (channel != 0) {
193193
event.owner->message_create(dpp::message(channel, embed));

0 commit comments

Comments
 (0)