Skip to content

A powerful discord bot that helps you keep track of your server's invite count

License

Notifications You must be signed in to change notification settings

DawgZter/referralSystem

 
 

Repository files navigation

Discord Invite Tracker Bot

License: MIT GitHub stars GitHub last commit GitHub open issues

Test. This is a Discord bot that tracks invitations for your server. You can view the leaderboard to see which members have invited the most people, reset a member's invitation count, and more.

Requirements

  • Node.js +16.x.x
  • MySQL Server
  • Discord bot token

Getting Started

  1. Clone the repository:
$ git clone https://github.com/enes-th/discord-invite-tracker.git
  1. Install the dependencies:
$ cd discord-invite-tracker
$ npm install
  1. Configure the '.env' file with these informations:
# Discord Bot Info
TOKEN=

# MySQL Server Info
HOST=
PORT= # default 3306
USER=
PASSWORD=
DATABASE=
  1. Configure the 'config.ts' file with these informations:
export default {
    message: {
        footer: "Powered by Enes"
    },
    activity: {
        name: "Sene Bot",
        type: 3 // 0 = Playing, 1 = Streaming, 2 = Listening, 3 = Watching, 4 = Custom, 5 = Competing
    },
    handleError: false // If there an error, display it in the message
}
  1. Start the bot:
$ tsc
$ cd dist
$ node index

Make sure to manually import the .env file into the dist folder

Run the /setup command on discord

Features

  • Track invites of each server member
  • View the invite leaderboard
  • Add or remove invites from members
  • Reset a member's invites to 0
  • Detection of fake invitations

Commands

  • /invites [@member] - View invitations
  • /add-invites <@member> <amount> - Add invitations
  • /remove-invites <@member> <amount> - Remove invitations
  • /leaderboard - View the invite leaderboard
  • /reset-invites <@member> - Reset a member's invites to 0
  • /setup <#welcome-channel> <#leave-channel> <#log-channel> - Setup the invitation system
  • /create-link - Create an invitation link that never expires
  • /who-used-code <code> - See which users have used this code

Contributing

Contributions are always welcome! If you have any suggestions or find any bugs, feel free to open an issue or create a pull request.

Please make sure that your changes pass the ESLint and Prettier checks.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

A powerful discord bot that helps you keep track of your server's invite count

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%