update srebot site embed stuff (#1253)

This commit is contained in:
NotSoToothless
2026-05-15 21:11:11 -07:00
committed by GitHub
parent 55ab213e76
commit fb38495a68
2 changed files with 26 additions and 5 deletions
+10
View File
@@ -826,8 +826,18 @@ app.use((req, res, next) => {
// Routes
app.get('/', (req, res) => {
const siteUrl = (process.env.PRODUCTION_DOMAIN || 'https://sre.pawjob.us').replace(/\/$/, '');
res.render('index', {
botName: 'Toothless SQB Bot',
metaTitle: "Toothless'",
metaDescription: 'The Best Squadron Battles Bot.',
metaUrl: `${siteUrl}/`,
metaImage: `${siteUrl}/images/toothless_match.jpg`,
metaImageWidth: 262,
metaImageHeight: 262,
metaImageAlt: "Toothless'",
metaThemeColor: '#90EE90',
serverCount: '1,234',
userCount: '50,000+',
commandCount: '25+'
+15 -4
View File
@@ -4,10 +4,21 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>
<%= botName %>
</title>
<meta name="description" content="<%= botName %> - The Best Squadron Battles Bot.">
<title><%= typeof metaTitle !== 'undefined' ? metaTitle : botName %></title>
<meta name="description" content="<%= typeof metaDescription !== 'undefined' ? metaDescription : `${botName} - The Best Squadron Battles Bot.` %>">
<meta name="theme-color" content="<%= typeof metaThemeColor !== 'undefined' ? metaThemeColor : '#90EE90' %>">
<meta property="og:type" content="website">
<meta property="og:url" content="<%= typeof metaUrl !== 'undefined' ? metaUrl : 'https://sre.pawjob.us/' %>">
<meta property="og:title" content="<%= typeof metaTitle !== 'undefined' ? metaTitle : botName %>">
<meta property="og:description" content="<%= typeof metaDescription !== 'undefined' ? metaDescription : `${botName} - The Best Squadron Battles Bot.` %>">
<meta property="og:image" content="<%= typeof metaImage !== 'undefined' ? metaImage : 'https://sre.pawjob.us/images/toothless_match.jpg' %>">
<meta property="og:image:width" content="<%= typeof metaImageWidth !== 'undefined' ? metaImageWidth : 262 %>">
<meta property="og:image:height" content="<%= typeof metaImageHeight !== 'undefined' ? metaImageHeight : 262 %>">
<meta property="og:image:alt" content="<%= typeof metaImageAlt !== 'undefined' ? metaImageAlt : botName %>">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="<%= typeof metaTitle !== 'undefined' ? metaTitle : botName %>">
<meta name="twitter:description" content="<%= typeof metaDescription !== 'undefined' ? metaDescription : `${botName} - The Best Squadron Battles Bot.` %>">
<meta name="twitter:image" content="<%= typeof metaImage !== 'undefined' ? metaImage : 'https://sre.pawjob.us/images/toothless_match.jpg' %>">
<link rel="icon" type="image/png" href="/images/transparent_toothlessssss.png">
<!-- Preload Critical Resources -->