From 4f9374f6e67ab44d5b6a134bebe91b4718379411 Mon Sep 17 00:00:00 2001 From: ExtremeMachine12 <142951529+ExtremeMachine12@users.noreply.github.com> Date: Fri, 20 Oct 2023 17:40:57 -0400 Subject: [PATCH] Create expansion_WelcomeMessage.md --- docs/expansion_WelcomeMessage.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/expansion_WelcomeMessage.md diff --git a/docs/expansion_WelcomeMessage.md b/docs/expansion_WelcomeMessage.md new file mode 100644 index 0000000..568239d --- /dev/null +++ b/docs/expansion_WelcomeMessage.md @@ -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. + +