I need help creating a simple script. Basically I need a script that will notice every user when they join. However, I need the notice to be downloaded from a text file in the same folder.
Example.
I create a txt file with the name greeting.txt and put the line "Welcome to my #channel" in it.
I want this script to be able to read my text file and notice that message to every member when they join.
I assume you want the message to change whenever you change it in the .txt file so I wrote the code to read from the file every time someone joins the channel (instead of reading it once and using the same line all the time).