mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-08 23:44:09 +02:00
style: auto-format
This commit is contained in:
@@ -85,8 +85,8 @@ read property" error might arise.
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<p id=paragraph-1>Welcome to <i>The programmer's hangout</i>.</p>
|
<p id="paragraph-1">Welcome to <i>The programmer's hangout</i>.</p>
|
||||||
<p id=paragraph-2>
|
<p id="paragraph-2">
|
||||||
This is the place for programmers of any skill level to, well, hangout
|
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
|
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!
|
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
|
```js
|
||||||
let payload;
|
let payload;
|
||||||
let rolledValue = Math.random();
|
let rolledValue = Math.random();
|
||||||
if (rolledValue > 0.5)
|
if (rolledValue > 0.5) payload = { id: 169323, message: "Welcome to TPH." };
|
||||||
payload = { id: 169323, message: "Welcome to TPH." };
|
else payload = { id: 173205, message: "TPH has been waiting for you." };
|
||||||
else
|
|
||||||
payload = { id: 173205, message: "TPH has been waiting for you." };
|
|
||||||
// In either case, "payload" is guaranteed to be assigned an actual value.
|
// In either case, "payload" is guaranteed to be assigned an actual value.
|
||||||
botClient.sendMessage(serverJoiner, payload.message);
|
botClient.sendMessage(serverJoiner, payload.message);
|
||||||
```
|
```
|
||||||
@@ -222,10 +220,10 @@ function sendEmbed(content, options = { color: "#888", dismissable: false }) {
|
|||||||
botClient.sendEmbed(embed);
|
botClient.sendEmbed(embed);
|
||||||
}
|
}
|
||||||
|
|
||||||
sendEmbed(
|
sendEmbed("The programmer's hangout: https://theprogrammershangout.com", {
|
||||||
"The programmer's hangout: https://theprogrammershangout.com",
|
color: "#763989",
|
||||||
{ color: "#763989", dismissable: true }
|
dismissable: true,
|
||||||
);
|
});
|
||||||
|
|
||||||
sendEmbed("Example site: https://example.com");
|
sendEmbed("Example site: https://example.com");
|
||||||
// No value is passed to "options" by the caller,
|
// No value is passed to "options" by the caller,
|
||||||
|
|||||||
Reference in New Issue
Block a user