style: auto-format

This commit is contained in:
Jean-Philippe Sirois
2021-02-25 04:24:10 -05:00
parent f782589856
commit 46e8651b31
@@ -85,8 +85,8 @@ read property" error might arise.
<!DOCTYPE html>
<html>
<body>
<p id=paragraph-1>Welcome to <i>The programmer's hangout</i>.</p>
<p id=paragraph-2>
<p id="paragraph-1">Welcome to <i>The programmer's hangout</i>.</p>
<p id="paragraph-2">
This is the place for programmers of any skill level to, well, hangout
with other fellow programmers. Whether you have just written 5 lines of
code or been a code nerd for 15 years, you are always welcome!
@@ -200,10 +200,8 @@ ultimately receive a value, the error won't be able to occur.
```js
let payload;
let rolledValue = Math.random();
if (rolledValue > 0.5)
payload = { id: 169323, message: "Welcome to TPH." };
else
payload = { id: 173205, message: "TPH has been waiting for you." };
if (rolledValue > 0.5) payload = { id: 169323, message: "Welcome to TPH." };
else payload = { id: 173205, message: "TPH has been waiting for you." };
// In either case, "payload" is guaranteed to be assigned an actual value.
botClient.sendMessage(serverJoiner, payload.message);
```
@@ -222,10 +220,10 @@ function sendEmbed(content, options = { color: "#888", dismissable: false }) {
botClient.sendEmbed(embed);
}
sendEmbed(
"The programmer's hangout: https://theprogrammershangout.com",
{ color: "#763989", dismissable: true }
);
sendEmbed("The programmer's hangout: https://theprogrammershangout.com", {
color: "#763989",
dismissable: true,
});
sendEmbed("Example site: https://example.com");
// No value is passed to "options" by the caller,