Skip to content

A welcome bot with a custom profile picture, for every Discord server you're in β˜•πŸ§© – Send invite-based welcome messsages, and assign invite roles when new members join 🐱

License

Notifications You must be signed in to change notification settings

coffeebank/hellohook-dpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hellohook

🐱 Hellohook

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!


Drafting your Webhook Message

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.


Variables

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.


Examples

After you save them into the bot, when a new user joins, the variables will be replaced with the new user's info.



Install

Step 1: Download

Clone or download this project.

Step 2: Add your Discord Bot info

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.

Step 3: Run the Bot

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

Support

Join the Discord >

About

A welcome bot with a custom profile picture, for every Discord server you're in β˜•πŸ§© – Send invite-based welcome messsages, and assign invite roles when new members join 🐱

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages