Advertisement
LotsOfS

banhammer_bot code

Feb 26th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.90 KB | None | 0 0
  1. ;; connect to the server by IP address
  2. on *:START:{
  3.       server -m 199.9.250.239 -z -i banhammer_bot
  4. }
  5.  
  6. ;; enable debug logging as soon as it joined my chat
  7. on me:*:join:#lotsofs: {
  8.   if ($me != banhammer_bot) { return }  ;; If it is someone else joining my chat (myself, gongbot, some other account), do nothing
  9.   raw twitchclient
  10. }
  11.  
  12. ;; disable jtv spamming the bot with useless information
  13. on ^*:TEXT:USERCOLOR*:?: { halt }
  14. on ^*:TEXT:SPECIALUSER*:?: { halt }
  15. on ^*:TEXT:HISTORYEND*:?: { halt }
  16. on ^*:TEXT:EMOTESET*:?: { halt }
  17.  
  18. ;; jtv notifies banhammer_bot of someone being kicked, banhammer_bot reports in #lotsofs
  19. on *:TEXT:CLEARCHAT*:?: {
  20.   if ($me != banhammer_bot) { return } ;; do nothing if the report is sent to someone other than banhammer_bot (not really needed since, as we've seen earlier, the debugging isn't enabled for other users in the first place)
  21.   msg #lotsofs Notification: $2
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement