forked from chandur626/TeachersPetBot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8f20ad
commit 4f9374f
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# About !expansion_Welcome Message | ||
This feature ensures that every new member is greeted with a comprehensive welcome message, including all the important links. | ||
|
||
# Location of Code | ||
The code that implements the above mentioned gits functionality is located [here](https://github.com/tanmaypardeshi/CSC-510-Project2-TeachersPetBot/src/bot.py). | ||
|
||
# Code Description | ||
## Functions | ||
|
||
- def on_member_join(member): | ||
is the start of a function in a Discord bot. It's an event handler that gets triggered when a new member joins a server, allowing you to specify actions the bot should take in response, such as sending a welcome message or performing other tasks related to the new member. | ||
|
||
# How to run it? (Small Example) | ||
When a new member joins our server, they'll receive a warm welcome along with a collection of important links, enhancing their user experience and simplifying their journey. | ||
|
||
### Discord Bot Welcome Message and Important Links | ||
|
||
This code defines a Discord bot event handler that triggers when a new member joins a server. It sends a welcoming message to the new member and dynamically fetches important links from the 'important-links' channel, incorporating them into the message. This enhances the user experience by providing immediate access to essential resources and information upon joining the server. | ||
|
||
Successful execution will show the welcome messaage with important links. | ||
|
||
<p align="left"><img width=65% src="https://github.com/tanmaypardeshi/CSC-510-Project2-TeachersPetBot/assets/144291380/ddfeec14-211a-4a74-aed1-7f66f0d13d88"></p> |