Thread:Sactage-fduser/@comment-28043084-20161016030740

I'm trying to make a command so our bot automatically bans when certain links are written in the chat, so I already got a !ban command, that is like # @param [User] user # @param [String] target # @param [Integer] length # @param [String] reason def ban(user, target, length, reason) target.gsub!(/_/, ' ') if user.is? :mod @client.ban(target, length, reason) @client.send_msg "#{target} ha sido baneado gracias a la magia de la amistad." end end Written in the admin plugin, and its like "!ban [user] [length in seconds] [reason"

But I'm not sure how to change it so, in the holo plugin it have already a predefined length and reason, so any user that sends an inappropiate link is banned with the predefined time and reason.

Thanks

Security LOG (talk) 03:07, October 16, 2016 (UTC) 