Skip to content

Commit c429781

Browse files
Fixed a potential spelling mistake.
"DUBUG" was used instead of "DEBUG". I just fixed that. Reject this pull request if you have written "DUBUG" explicitly.
1 parent ec255f7 commit c429781

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/rock-paper-scissors/main.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GameClient : public SleepyDiscord::DiscordClient {
2323
player(game.player), state(game.state), endGameTimer(game.endGameTimer) {}
2424
#ifdef _DEBUG
2525
~Game() {
26-
std::cout << "DUBUG: game removed\n";
26+
std::cout << "DEBUG: game removed\n";
2727
}
2828
#endif
2929

@@ -66,7 +66,7 @@ class GameClient : public SleepyDiscord::DiscordClient {
6666
if (message.startsWith("whcg hello")) {
6767
games.push_back(Game(message.author)); //create a game put it on the end of the list of games
6868
#ifdef _DEBUG
69-
std::cout << "DUBUG: New game created. Number of games: " << games.size() << '\n';
69+
std::cout << "DEBUG: New game created. Number of games: " << games.size() << '\n';
7070
#endif
7171
std::list<Game>::iterator game = --(games.end());
7272
*game->state = GET_READY;
@@ -102,7 +102,7 @@ class GameClient : public SleepyDiscord::DiscordClient {
102102
for (Game& game : games) {
103103
if (game.player == message.author) {
104104
#ifdef _DEBUG
105-
std::cout << "DUBUG: Player detected " << game.player.username << " state: " << *game.state << '\n';
105+
std::cout << "DEBUG: Player detected " << game.player.username << " state: " << *game.state << '\n';
106106
#endif
107107
switch (*game.state) {
108108
case SHOOT: {
@@ -134,4 +134,4 @@ int main() {
134134
SleepyDiscord::Intent::SERVER_MESSAGES,
135135
SleepyDiscord::Intent::DIRECT_MESSAGES });
136136
client.run();
137-
}
137+
}

0 commit comments

Comments
 (0)