Skip to content

Commit

Permalink
[Update]: Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
harshfeudal committed Nov 20, 2022
1 parent 3d380c0 commit 7450b33
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 16 deletions.
14 changes: 14 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 0.1.6.0
image: Visual Studio 2022
environment:
matrix:
- GENERATOR: '"Visual Studio 17 2022" -A x64'
BUILD_TYPE: Release
BUILD_SHARED: 'ON'
FATAL_ERRORS: 'ON'
WCHAR: 'ON'
WCHAR_FILES: 'ON'
BUILD_EXAMPLE: 'OFF'
USE_STD_FORMAT: 'ON'
CXX_STANDARD: 17
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
30 changes: 15 additions & 15 deletions src/information/userInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,52 +46,52 @@ void userInfo(dpp::cluster& client, const dpp::slashcommand_t& event)
auto hasStaffBadge = "";
auto hasPartnerBadge = "";
auto hasModBadge = "";

auto hasEventBadge = "";
auto hasHouseBadge = "";
auto hasBugHunterBadge = "";

auto hasBotDevBadge = "";
auto hasEarlySupBadge = "";
auto hasNitroBadge = "";

auto hasBoostBadge = "";

// If the command user is trying to get another people information
if (std::holds_alternative<dpp::snowflake>(event.get_parameter("user")) == true)
tgtId = dpp::find_user(std::get<dpp::snowflake>(event.get_parameter("user")));

if (tgtId->is_discord_employee())
if (tgtId->is_discord_employee() == true)
hasStaffBadge = StaffBadge;

if (tgtId->is_partnered_owner())
if (tgtId->is_partnered_owner() == true)
hasPartnerBadge = PartnerBadge;

if (tgtId->is_certified_moderator())
if (tgtId->is_certified_moderator() == true)
hasModBadge = CertifiedMod;

if (tgtId->has_hypesquad_events())
if (tgtId->has_hypesquad_events() == true)
hasEventBadge = EventBadge;

if (tgtId->is_house_balance())
if (tgtId->is_house_balance() == true)
hasHouseBadge = HypesquadBalance;
else if (tgtId->is_house_brilliance())
else if (tgtId->is_house_brilliance() == true)
hasHouseBadge = HypesquadBrilliance;
else if (tgtId->is_house_bravery())
else if (tgtId->is_house_bravery() == true)
hasHouseBadge = HypesquadBravery;

if (tgtId->is_bughunter_1())
if (tgtId->is_bughunter_1() == true)
hasBugHunterBadge = DiscordBugHunterGreen;
else if (tgtId->is_bughunter_2())
else if (tgtId->is_bughunter_2() == true)
hasBugHunterBadge = DiscordBugHunterGold;

if (tgtId->is_verified_bot_dev())
if (tgtId->is_verified_bot_dev() == true)
hasBotDevBadge = EarlyVerifiedBotDev;

if (tgtId->is_early_supporter())
if (tgtId->is_early_supporter() == true)
hasEarlySupBadge = EarlySupporter;

if (tgtId->has_nitro_basic() || tgtId->has_nitro_classic() || tgtId->has_nitro_full())
if (tgtId->has_nitro_basic() == true || tgtId->has_nitro_classic() == true || tgtId->has_nitro_full() == true)
hasNitroBadge = NitroSubscriber;

const auto avatar = tgtId->get_avatar_url();
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int main()

// Console log prettier
SetConsoleTitle(TEXT("[BETA] v0.1.6.0 - Raiden Shogun Discord Bot - The Harshfeudal Projects"));

// Starting the bot
client.start(dpp::st_wait);

Expand Down

0 comments on commit 7450b33

Please sign in to comment.