I'm running an OpenDC Hub and am currently making a bot for it. The bot is programmed in perl and I'm trying to take a second argument from one of the commands, ie when I run the command
then user will be passed as a variable. This is what I have
if($data =~ /\+kick/)
$data is the actual message that is sent to the chat, and basically I have no idea what it does. I pretty much just copied and pasted this from another bot.
So is there a way I can add something after kick that will be passed as an argument?