theshadowgamer / invite-manager Goto Github PK
View Code? Open in Web Editor NEWInvite manager is an open-source discord bot that allows you to track the invites of people who join your server.
License: MIT License
Invite manager is an open-source discord bot that allows you to track the invites of people who join your server.
License: MIT License
Using a role for invite managers to access commands seems unintuitive, why not just check for Manage Server
/Administrator
perm?
So, when I was looking into config file I found that we have to define the welcome channel ID which led me to thought that this feature may make the bot for personal uses and not for public. Do you have any ideas how to manually setup the welcome channel ID within a server so each server that has my bot can use it?
Error: Cannot find module 'discord-akairo'
Require stack:
Can you make a Json File for welcome channels so it can send message in many server not only in one server.
i want to run this on a vm on one of my servers ive tested it and it works on visual but i cant add the bot to my discord server
https://i.imgur.com/ZuAn35N.png
The quantities and order are correct, but the numbers for the rankings are all wrong.
It seems like this is caused by the asynchronous code here:
let LB = [];
await all.forEach(async entry => {
if(!entry.invites) return;
LB.push(`${LB.length + 1}. ${(await (client.users.fetch(entry.discordUser))).tag} - ${entry.invites}`);
});
LB.length
is 0 in each iteration, because the LB.push()
from the previous iteration has not completed yet, due to each iteration not waiting for earlier promises to resolve.
let LB = all.filter(entry => entry.invites)
.map(async (entry, i) => `${i + 1}. ${(await (client.users.fetch(entry.discordUser))).tag} - ${entry.invites}`)
LB = await Promise.all(LB)
Replacing the original snippet with this seems to fix it, but I haven't done enough testing to confidently PR it.
Whenever I do /invites reset <User>
, it doesn't work. Shows This interaction failed
error.
hey where do i put the bot token as i can not see where to put it in the config file
Hello, I suggest to use config.js as the default configuration. Each server will have its own configuration via the database and the parameters can be changed from a Discord command. At the moment it's quite problematic because we cannot correctly use "welcomeChannel:" and we cannot change this information via a Discord command.
In advance, thank you for your answer.
I want to thank the devs for this code;)
can i make a small dashboard for configuring the bot easier, it would help a lot.
I have a feature request, currently invites are only tracked once the bot starts/invited
Is it possible to include a feature where it collects already existing invites?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.