Solved typo
This commit is contained in:
1 parent
3a1d1c2b86
commit
06eaf75d79
3 files changed
+16
-11
No files matched your search
@@ -92,7 +92,7 @@ router.post('/add', async function (req, res) {
|
||||
}
|
||||
|
||||
}
|
||||
const embed = new client.embed()
|
||||
const embed = new Discord.EmbedBuilder()
|
||||
.setTitle('New server')
|
||||
.setDescription(`${req.user.username}#${req.user.discriminator} added **${checkServer.name}** with members: **${checkServer.memberCount}**\nDescription: **${req.body.server_short}**\nWith tags: **${tags}**`)
|
||||
.setColor('#00ff00')
|
||||
@@ -298,7 +298,7 @@ router.get('/:server/vote', function (req, res) {
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
const embed = new Discord.Embeserversuilder()
|
||||
const embed = new Discord.EmbedBuilder()
|
||||
.setColor('#0099ff')
|
||||
.setTitle(`${req.user.username} has voted for ${bot.name}`)
|
||||
.setDescription(`[${bot.name}](${bot.url})`)
|
||||
@@ -345,7 +345,7 @@ router.get('/:server/vote', function (req, res) {
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
const embed = new Discord.Embeserversuilder()
|
||||
const embed = new Discord.EmbedBuilder()
|
||||
.setColor('#0099ff')
|
||||
.setTitle(`${req.user.username} has voted for ${bot.name}`)
|
||||
.setDescription(`[${bot.name}](${bot.url})`)
|
||||
|
||||
@@ -60,9 +60,9 @@ router.get('/:id', async function (req, res) {
|
||||
}
|
||||
res.render('user/index', {
|
||||
user: req.user,
|
||||
bot: bot,
|
||||
bots: bot,
|
||||
users: user,
|
||||
dcuser: global.bsl.users.fetch(req.user.id)
|
||||
dcuser: await global.bsl.users.fetch(req.params.id)
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<%- include("../includes/header.ejs", {title: "Edit " + server.name}) %>
|
||||
<!-- create form -->
|
||||
<div class="container-sm p-10">
|
||||
<a href="/server/<%= server.id %>/analytics" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
|
||||
<i class="fas fa-chart-bar"></i>
|
||||
<span>Analytics</span>
|
||||
</a>
|
||||
<br><br>
|
||||
<a href="/server/<%= server.id %>/analytics" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
|
||||
<i class="fas fa-chart-bar"></i>
|
||||
<span>Analytics</span>
|
||||
</a>
|
||||
<br><br>
|
||||
<form method="post" action="">
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<textarea type="text" name="server_description" id="server_name" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " required rows="5"><%= server.long_description %></textarea>
|
||||
@@ -22,7 +22,7 @@
|
||||
<label for="server_webhook" class="peer-focus:font-medium absolute text-sm text-white dark:text-white duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">Discord WebHook to recieve votes.</label>
|
||||
</div>
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<select multiple name="tags" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" required>
|
||||
<select multiple name="tags" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" required>
|
||||
<% global.config.server.tags.forEach(function(tag) { %>
|
||||
<option value="<%= tag %>" <% if (server.tags.includes(tag)) { %>selected<% } %>><%= tag %></option>
|
||||
<% }) %>
|
||||
@@ -30,4 +30,9 @@
|
||||
</div><br>
|
||||
<button type="submit" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Update</button>
|
||||
</form>
|
||||
<!-- show code for banner -->
|
||||
<span class="text-white">Add this code to your websites to get automatically a banner</span>
|
||||
<textarea class="text-white" style="width:100%;" rows="2" disabled>
|
||||
<img src="https://botscord.xyz/api/v1/server/banner/<%= server.id %>">
|
||||
</textarea>
|
||||
</div>
|
||||
Reference in new issue
Block a user