fix typo
This commit is contained in:
parent
1acf1821e6
commit
95161bc382
@ -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);
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user