Hi dear coders, how can we read txt file when user join the channel (if she/he has a message in txt file)?
I know, add/del a text to file. But i dont know check it.
Like that;
*** Joins: s7e7v7e7n has joined the room.
After user has joined the room, my eggdrop'll open the file. if his/her nick in the text file, my bot'll send a message his/her greet to channel. In file.tx
file.txt (example)
(nick - greet)
s7e7v7e7n7 this is my message
RoSe Hi everybody, this is my greet.
*** Joins: s7e7v7e7n has joined the room.
<Eggdrop> [s7e7v7e7n]: this is my message
*** Joins: RoSe has joined the room.
<Eggdrop> [RoSe] Hi everybody, this is my greet.
If user has no message in the file, bot'll not send a message.
Thx for your concerns