I use the illustrative example to make it easy for you to imagine and understand as follows:
1. When Op type the command:! B <Nickname here> then Bot will automatically banned and kicked that Nickname with radom reason.txt.
For example:
<@Robert>! B petra
* MyBot sets mode: + b *!*@01.11.21.22
* petra was kicked from #myroom by MyBot (Bye! You are not welcome here [id: 12345])

(The reason kick "Bye! You are not welcome here" was in reasonkick.txt and the [id: %knum], [id: 12345] is an example)
(Code example: kick $chan $2 $read(reasonkick.txt) [id: %knum])

[10 Mins later i set mode unban]
* Robert sets mode -b *!*@01.11.21.22

[Then 5 Mins later Nickname petra comeback and join #myroom]
* petra (abc@01.11.21.22) joins #myroom
* MyBot sets mode: + b *!*@01.11.21.22
* petra was kicked from #myroom by MyBot (Bye! You are not welcome here [id: 12345])

MyBot kick with older reason, how to make a code like that? Can you help me write that code? Thank you very much for your help and look forward to receiving your help soon.

Last edited by Robert; 29/04/21 03:29 PM. Reason: Explain exactly i means again