Commit c429781 1 parent ec255f7 commit c429781 Copy full SHA for c429781
File tree 1 file changed +4
-4
lines changed
examples/rock-paper-scissors
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class GameClient : public SleepyDiscord::DiscordClient {
23
23
player (game.player), state(game.state), endGameTimer(game.endGameTimer) {}
24
24
#ifdef _DEBUG
25
25
~Game () {
26
- std::cout << " DUBUG : game removed\n " ;
26
+ std::cout << " DEBUG : game removed\n " ;
27
27
}
28
28
#endif
29
29
@@ -66,7 +66,7 @@ class GameClient : public SleepyDiscord::DiscordClient {
66
66
if (message.startsWith (" whcg hello" )) {
67
67
games.push_back (Game (message.author )); // create a game put it on the end of the list of games
68
68
#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 ' ;
70
70
#endif
71
71
std::list<Game>::iterator game = --(games.end ());
72
72
*game->state = GET_READY;
@@ -102,7 +102,7 @@ class GameClient : public SleepyDiscord::DiscordClient {
102
102
for (Game& game : games) {
103
103
if (game.player == message.author ) {
104
104
#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 ' ;
106
106
#endif
107
107
switch (*game.state ) {
108
108
case SHOOT: {
@@ -134,4 +134,4 @@ int main() {
134
134
SleepyDiscord::Intent::SERVER_MESSAGES,
135
135
SleepyDiscord::Intent::DIRECT_MESSAGES });
136
136
client.run ();
137
- }
137
+ }
You can’t perform that action at this time.
0 commit comments