Vote button was missing
This commit is contained in:
1 parent
83645d9093
commit
7e655ceb90
2 files changed
+14
-5
No files matched your search
+10
-4
@@ -10,15 +10,21 @@ const ms = require("parse-ms-2");
|
||||
// Set intents
|
||||
client.on('ready', async () => {
|
||||
const bot = await bots.find({ verified: true });
|
||||
client.user.setPresence({ activities: [{ name: 'botscord.xyz | ' + bot.length + ' bots' }] });
|
||||
client.user.setActivity('botscord.xyz | ' + bot.length + ' bots', { type: ActivityType.Watching });
|
||||
const server = await servers.find({});
|
||||
var loop = ['botscord.xyz | ' + bot.length + ' bots', 'botscord.xyz | ' + server.length + ' servers' ]
|
||||
var i = 0;
|
||||
setInterval(function () {
|
||||
client.user.setActivity(loop[i], { type: ActivityType.Watching });
|
||||
i++;
|
||||
if (i > loop.length - 1) {
|
||||
i = 0;
|
||||
}
|
||||
} , 5000);
|
||||
|
||||
console.log(bsl, 'Bot is ready!');
|
||||
// Log server count
|
||||
setTimeout(() => {
|
||||
console.log(bsl,
|
||||
`${client.guilds.cache.size} servers`);
|
||||
}, 1000);
|
||||
});
|
||||
const { REST } = require('@discordjs/rest');
|
||||
const commands = [
|
||||
|
||||
@@ -13,8 +13,11 @@
|
||||
<h1 class="text-3xl text-center">
|
||||
<%= bot.name %>
|
||||
</h1>
|
||||
<a href="/bot/<%= bot.id %>/join" class="button float-right"><i class="fa fa-link"></i>
|
||||
<a href="/bot/<%= bot.id %>/join" class="button float-right inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2"><i class="fa fa-link"></i>
|
||||
Invite</a>
|
||||
<a href="/bot/<%= bot.id %>/vote" class="button float-left inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2"><i class="fa fa-link"></i>
|
||||
Vote</a>
|
||||
<br>
|
||||
<% if(user) {
|
||||
bot.owners.forEach(a=>{
|
||||
if(a == user.id) {
|
||||
|
||||
Reference in new issue
Block a user