Added the legacy releases page and fixed some typos

This commit is contained in:
ION606
2022-12-27 10:39:36 -08:00
parent 3e5202f5b2
commit af51ca72a1
8 changed files with 196 additions and 4 deletions
+1 -1
View File
@@ -486,7 +486,7 @@
<div class="row custom-alert" style="display: none;" id="alertWelcome">
<div class="alert alert-warning alert-dismissible" id="banner" style="text-align: center" role="alert">
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
<!--<strong class="mx-auto"></strong> -->Use {sn} to insert the server name, {un} to insert the user name, and {ut} to insert the user tag<br><i>Example: Welcome to {sn} Sir {un}#{ut}</i>
<!--<strong class="mx-auto"></strong> -->Use {sn} to insert the server name, {ut} to insert the whole user tag, {un} to insert the user name, and {ud} to insert the user discriminator<br><i>Example: Welcome to {sn} Sir {un}#{ud}</i>
</div>
</div>
+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Discord embed start -->
<title>Website Name</title>
<title>Selmer Bot Web Dashboard</title>
<meta content="Selmer Bot Web Dashboard" property="og:title" />
<meta content="A web dashboard for Selmer Bot (still in Beta)" property="og:description" />
<meta content="https://selmerbot.com" property="og:url" />
+181
View File
@@ -0,0 +1,181 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="Selmer Bot Web Dashboard" property="og:title" />
<meta content="A web dashboard for Selmer Bot (still in Beta)" property="og:description" />
<meta content="https://selmerbot.com" property="og:url" />
<meta content="https://raw.githubusercontent.com/ION606/selmer-bot-website/main/assets/favicon.ico" property="og:image" />
<meta content="#050089" data-react-helmet="true" name="theme-color" />
<meta name="twitter:card" content="summary_large_image">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://kit.fontawesome.com/728e740903.js" crossorigin="anonymous"></script>
<title>Selmer Bot Web Dashboard</title>
<style>
body {
background-color: black;
text-align: center;
color: white;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
font-size: 16px;
word-wrap: break-word;
}
.release_embed {
border-color: white;
border-width: 1px;
border-style: solid;
border-radius: 2%;
width: 600px;
height: auto;
margin-top: 50px;
}
h4 {
text-align: left;
padding-left: 20px;
padding-right: 20px;
line-height: 1.5;
}
h6 {
text-align: left;
padding-left: 20px;
padding-right: 20px;
line-height: 1.5;
}
hr {
width: 560px;
margin-left: 20px;
margin-right: 20px;
}
</style>
</head>
<body>
<h1 style="margin-top: 30px;">Selmer Bot Legacy Releases</h1>
<div class="d-flex justify-content-center">
<div class="release_embed">
<h2>Slash Commands Release</h2>
<h6>
Transitioned most Miscellaneous, Audio, Selmer Specific, Admin, Anime/Manga, and Inventory commands to Slash Command format.<br>
The RSS and reactionrole commands are still broken and all game commands are still in message format due to complications.
</h6><br>
<div style="text-align: left; margin-bottom: 10px;">
<span style="margin: 15px; margin-bottom: 20px;">Download .tar.gz file</span><a href="downloads\selmerBot-1.0.1.tar.gz"><i class="fa-solid fa-file-arrow-down" style="color: white; font-size: 35px;"></i></a>
</div>
</div>
</div>
<div class="d-flex justify-content-center">
<div class="release_embed">
<h2>Pre Slash Command Selmer Bot</h2><br>
<h4>Release Description</h4>
<h6>
This is the last snapshot of Selmer Bot before the transition to Slash Commands
</h6>
<hr size="3">
<h4>
MISCELLANEOUS COMMANDS
</h4>
<h6>
<ul>
<li>tuto - An introduction command to Selmer Bot</li>
<li>serverlock - Lock ALL CHANNELS for everyone with the "everyone" role<br>- SERVER OWNER ONLY. FOR EMERGENCY USE ONLY</li>
<li>asearch - Selmer bot gives you info on an anime</li>
<li>msearch - Selmer bot gives you info on a manga</li>
<li>crypto - Get the prices for most cryptocurrencies!</li>
<li>test - HI SELMER</li>
<li>help - Gets help for all of Selmer Bot's commands</li>
<li>kareoke - Sing your least-favorite song with your favorite person, me!</li>
<li>links - A helpful list of links to all of Selmer's wonderful websites</li>
<li>meme - Selmer Bot will post a random meme from reddit</li>
<li>pickupline - Get a pickup line from our selection of 200 lines!</li>
<li>audio - Play a song from YouTube, add free!</li>
<li>poll - Create a cool poll embed (with time up to 1 hour!)</li>
<li>react - Reacts with a phrase or single emoji</li>
<li>reactionrole - Creates an embed that will give a role when reacted to</li>
<li>scrape - .....</li>
<li>stocks - Have Selmer Bot give you "current" stock prices</li>
<li>chat - chat</li>
<li>reminders - Have Selmer Bot remind you - premium feature</li>
<li>premium - everything payment</li>
</ul>
</h6>
<hr size="3">
<h4>Selmer Bot's Commands (Special)</h4>
<h6>
<ul>
<li>arrow - Engage in a trademarked activity and throw an arrow at a trash can</li>
<li>extracredit - Selmer Bot Dm's you for some AHEM extra credit</li>
<li>profile - Posts a description of Monsieur Sleemer himself</li>
<li>quotes - A public version of Extra Credit</li>
<li>code - See where Selmer bot's code is stored! (you can also use !repo)</li>
</ul>
</h6>
<hr size="3">
<h4>Selmer Bot Commands (Econ)</h4>
<h6>buy, shop, work, rank, inventory, balance, sell</h6>
<hr size="3">
<h4>Selmer Bot Commands (Games)</h4>
<h6>battle, Tic Tac Toe</h6>
<hr size="3">
<h4>Selmer Bot Commands (Admin)</h4>
<h5>General</h5>
<h6>
<ul>
<li>setup - Set up server features<br>- SERVER OWNER ONLY - use !setup help</li>
<li>lock - Lock a channel</li>
<li>unlock - Unlock a channel</li>
<li>serverlock - Lock ALL CHANNELS for everyone with the "everyone" role - SERVER OWNER ONLY. FOR EMERGENCY USE ONLY</li>
</ul>
</h6>
<h5>Selmer Bot Moderation Commands</h5>
<h6>lock, unlock, kick, ban, unban, mute, unmute</h6><br>
<div style="text-align: left; margin-bottom: 10px;">
<span style="margin: 15px; margin-bottom: 20px;">Download .tar.gz file</span><a href="downloads\selmerBot-1.0.1-preslash.tar.gz"><i class="fa-solid fa-file-arrow-down" style="color: white; font-size: 35px;"></i></a>
</div>
</div>
</div>
<div class="d-flex justify-content-center">
<div class="release_embed">
<h2>Selmer Bot OG Attempt 2</h2>
<h6>
I really goofed and overwrote the old release so this is a new release with everything. See the wiki for details on commands and Premium!<br><br>
Goddamnit.<br>
-ION606
</h6><br>
<div style="text-align: left; margin-bottom: 10px;">
<span style="margin: 15px; margin-bottom: 20px;">Download .tar.gz file</span><a href="downloads\selmerBot-1.0.0.tar.gz"><i class="fa-solid fa-file-arrow-down" style="color: white; font-size: 35px;"></i></a>
</div>
</div>
</div>
<div style="text-align: left; margin-left: 10px; color: white; margin-top: 30px;">Copyright @ION606 2022</div>
</body>
</html>
+1 -1
View File
@@ -21,7 +21,7 @@
<link rel="stylesheet" type="text/css" href="/CSS/team.css">
<title>Selmer Bot Directory</title>
<title>Selmer Bot Web Dashboard</title>
<script>
/*
Binary file not shown.
Binary file not shown.
Binary file not shown.
+12 -1
View File
@@ -219,7 +219,8 @@ app.get('/getChannels', async (req, res) => {
//Headers: servernumber, sessionid
app.post('/setCurrentServer', async (req, res) => {
setCurrentServer().then((code) => {
const {servernumber, sessionid} = req.headers;
setCurrentServer(sessionid, servernumber).then((code) => {
res.sendStatus(code);
}).catch((err) => {
console.error(err);
@@ -599,6 +600,16 @@ app.get("/userData", async (req, res) => {
});
app.get("/releases", async (req, res) => {
res.sendFile('releases.html', { root: 'HTML' });
});
app.get("/downloads/*", async (req, res) => {
return res.sendFile(`${req.path}`, {root: '.'});
});
app.get('/', async ({ query }, response) => {
const { code } = query;