Giter Site home page Giter Site logo

theshadowgamer / invite-manager Goto Github PK

View Code? Open in Web Editor NEW
114.0 5.0 64.0 176 KB

Invite manager is an open-source discord bot that allows you to track the invites of people who join your server.

License: MIT License

JavaScript 99.99% Shell 0.01%
discord bot invite-manager-bot discord-invite-manager discord-invitemanager invite-manager invite inviter discord-bot discord-js

invite-manager's People

Contributors

ieuangol avatar theshadowgamer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

invite-manager's Issues

Welcome Channel

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?

Module not found

Error: Cannot find module 'discord-akairo'
Require stack:

  • /home/container/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object. (/home/container/index.js:1:59)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/home/container/index.js' ]
    }
    container@pterodactyl~ Server marked as offline...

how do i add to discord?

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

[Bug] Leaderboard rankings are all "1"

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.

Slash Commands

Slash Commands Aren't Working, This is My console.
image
Can I Please Get Some Help? Thanks.

  • NameFlix.

Single config per server

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;)

Dashboard

can i make a small dashboard for configuring the bot easier, it would help a lot.

Support for existing invites

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.