Skip to content

Commit

Permalink
refactor: 🔥 remove debug/info logs for about command
Browse files Browse the repository at this point in the history
  • Loading branch information
Xminent committed Dec 11, 2023
1 parent 265040b commit e39e2d3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions commands/Misc/about.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,12 @@ struct About : Command {
}) {}

void setup() override {
bot->logger->info("Setting up About command");

bot->http.get_user(bot->owner_id)
.send()
.map([this](const ekizu::User &owner) {
bot->logger->info(
"Fetched owner: {} from the API", owner.username);
bot->users_cache.put(owner.id, owner);
bot->http.get_current_user().send().map(
[this, &owner](const ekizu::User &user) {
bot->logger->info(
"Fetched our own user: {} from the API",
user.username);
bot->users_cache.put(user.id, user);

about_embed =
Expand Down Expand Up @@ -69,8 +62,6 @@ struct About : Command {
{fmt::format("Made by {}", owner.username),
owner.display_avatar_url()})
.build();

bot->logger->info("About command setup complete");
});
});
}
Expand Down

0 comments on commit e39e2d3

Please sign in to comment.