Code Monkey home page Code Monkey logo

invitelinkchecker's Introduction

InviteLinkChecker

A Discord Bot, that checks if an (custom) invite link is taken - written in Java using JDA

Usage

Simply run java -jar LinkChecker-all.jar in your CLI or, if on Windows, run the start.bat file. โ†’ Java 1.8 required

Configuration

Sample config.yaml file:

# Your bot's token. This can be found at https://discord.com/developers/applications/
botToken: 'YOUR_BOT_TOKEN'
# The invite code you want to check for. 'python' will check for discord.gg/python
inviteCode: 'YOUR_INVITE_CODE'
timerConfig:
    # The amount of 'timeUnit' for which to check. An interval of 30 combined with a TimeUnit of 'SECONDS' will
    # check every 30 seconds.
    interval: 30
    # An enum of java.util.concurrent.TimeUnit. e.g. SECONDS, MINUTES, HOURS, ...
    timeUnit: SECONDS
webhookConfigs:
  # A list of webhooks.
  - {
    # Whether the bot should send a message to a webhook once the invite code is not in use.
    useWebhook: true,
    # Your webhook url.
    # This can be found under YOUR_CHANNEL > Settings > Integrations > Webhooks > (Create Webhook) > Copy Webhook URL
    webhookUrl: 'YOUR_WEBHOOK_URL',
    # The message which will be sent when the link is available. Please note that '%s' is a format specifier which
    # holds the 'inviteCode'.
    linkAvailableMessage: 'discord.gg/%s is available!'
  }

invitelinkchecker's People

Contributors

jasonlessenich avatar

Stargazers

Malte avatar MoonTM avatar  avatar

Watchers

 avatar

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.