From 95161bc3828eb8d04f14ac817c2b5a75acb0917c Mon Sep 17 00:00:00 2001 From: Clement Date: Fri, 18 Aug 2023 19:00:26 +0200 Subject: [PATCH] fix typo --- lib/DiscordAPI/src/DiscordAPI.cpp | 2 +- src/Program.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/DiscordAPI/src/DiscordAPI.cpp b/lib/DiscordAPI/src/DiscordAPI.cpp index 86a28b7..e8dd87c 100644 --- a/lib/DiscordAPI/src/DiscordAPI.cpp +++ b/lib/DiscordAPI/src/DiscordAPI.cpp @@ -31,7 +31,7 @@ bool DiscordAPI::sendMessage(String trame){ } -bool DiscordAPI::sendheure(String hStart, String hEnd){ +bool DiscordAPI::sendHeure(String hStart, String hEnd){ int color = random(16777215); String trame = "{\"embeds\": [{\"title\": \"Le Lab est ouvert !\",\"description\": \"Le Lab est ouvert de **"+ hStart +"** à **"+ hEnd +"**\",\"color\": \"" + color + "\"}]}"; return this->sendMessage(trame); diff --git a/src/Program.cpp b/src/Program.cpp index 4083710..9dbdbea 100644 --- a/src/Program.cpp +++ b/src/Program.cpp @@ -23,9 +23,8 @@ Program::Program() { this->discord = new DiscordAPI(DISCORD_HOOK); - Serial.println(this->discord->sendMessage("hello the world !!")); delay(1000); - Serial.println(this->discord->sendheure("10h", "18h")); + Serial.println(this->discord->sendHeure("10h", "18h")); } void Program::loop() {