In my experiance most spam bots join a channel, spam in PM all the nicks in the nicklist (the reason the bot joins is to get the nicklist), and leave. Some join a channel, idle a moment (waiting for the server to send the nicklist) before leaving and then spam those in the channel.
This will ignore the bot from the join/part in either case.

put into a remote file

on *:JOIN:#:{ .ignore -pntidu320 $nick }
on *:part:#:{ .ignore -pntidu320 $nick }

This will stop any PM posts except to the channel, but spambots that do channel messages are less frequent.