Create your own welcome bot with a custom profile picture! Set the welcome message to be regular text and/or an embed. Comes with usernames, user avatars, pings/mentions, server member counts, and leave messages.
Send invite-based welcome messsages, and assign custom roles when new members join with the invite!
When you are done on Discohook:
- Scroll to the bottom
- Click "JSON Data Editor"
- Click "Copy to Clipboard"
- Paste it into the bot command
Disclaimer: Discohook is a website that makes creating webhooks easy. Not affiliated with this cog. Image from Unsplash.
https://&&SERVERCOUNT&&
for server member count (268)
https://&&SERVERCOUNTORD&&
for server member count with the th/st/nd ordinals (268th)
https://&&USERAVATAR&&
for user profile picture url
https://&&USERMENTION&&
for user mention (<@1234567890123456>
)
- User mentions can only be used in Content, or the Embed's Body Description, or they won't appear correctly.
https://&&USERNAME&&
for username as text (Clyde
)
https://&&USERNAME1234&&
for username#1234 as text (Clyde#1234
)
Adding https:// in front is required.
Discohook will not export the needed JSON if it says "Invalid URL" (even though the bot will make them valid at runtime), so this is a workaround.
After you save them into the bot, when a new user joins, the variables will be replaced with the new user's info.
Clone or download this project.
Copy .env.example
to .env
, then:
- Add your bot's token to
dpy_token
- Add your bot's User ID to
dpy_user_id
The bot prefix is @ping or Slash command.
Setup a venv using Python >=3.9 and install requirements
python3.9 -m venv ~/dpyenv
source ~/dpyenv/bin/activate
pip install -r requirements.txt
In the future, you can run your bot anytime using
source ~/dpyenv/bin/activate
python3 -m main