Skip to main content

A simple verification bot for discord

Project description

A simple verification bot for discord

Single-guild discord-bot to give roles to a member accepting your servers rules.
Also sending a neat little welcome message to the user.

The bot also runs a task all five minutes to ensure that no member is missed due to potential downtime or other errors.
It's possible to ignore members that joined before a specific date if the system shall not apply to older members.

setup

pip install -r requirements.txt
export TOKEN="your-key"
python3 main.py

env variables

parameter description
export ROLES="760434164146634752 880220270210740235" Roles to give after verification, separated by a space
export GUILD="760421261649248296" Guild the bot shall be set up for
export START_CHANNEL="877208002762002465" Channel the bot mentions in welcome message
export PREFIX="b!" Command prefix
export CHECK_PERIOD="5" Time between two checks for missed members
export NOT_BEFORE="25.08.2021" Members joined before that date won't be captured by verification check task
export VERSION="unknown" Version the bot is running
export OWNER_NAME="unknwon" Name of the bot owner
export OWNER_ID="100000000000000000" ID of the bot owner

Values GUILD, START_CHANNEL and ROLES need to be changed in order to make the bot run on your server! Those default is only usable for our own discord.
The shown values are the default values that will be loaded if nothing else is specified.
Please note that the welcome message is in german, you can update it in src/verification_listsner.py/ get_welcome_text().

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discord_verification_listener-1.0.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file discord_verification_listener-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: discord_verification_listener-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.9

File hashes

Hashes for discord_verification_listener-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba0b32614463312214c673d449e8f0e25d505daf0a38d3fc3597366f3bea2228
MD5 3427950c1d0f8e21e3d35dc07fd542f0
BLAKE2b-256 c499609fa9f76a21f363276ac765b947f813d260ec74823173080e6c03f33cf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page