tduva

mIRC/Twitch Chat

Jun 3rd, 2016
8,447
0
Never
11
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.35 KB | None | 0 0
  1. ; Notes on using mIRC with Twitch Chat
  2. ;=====================================
  3. ; Twitch Chat documentation: https://github.com/justintv/Twitch-API/blob/master/IRC.md
  4.  
  5. ; Automatically enable CAPs on connect (comment out or remove what you don't need)
  6.  
  7. on *:connect:{
  8.   if ($server == tmi.twitch.tv) {
  9.     raw CAP REQ :twitch.tv/tags
  10.     raw CAP REQ :twitch.tv/commands
  11.     raw CAP REQ :twitch.tv/membership
  12.   }
  13. }
  14.  
  15. ; Using IRCv3 Tags
  16. ;-----------------
  17. ; A lot of Twitch messages have useful tags attached to them when you request the tags capability. mIRC provides the $msgtags identifier to retrieve that info.
  18. ;
  19. ; Examples
  20.  
  21. alias isSub {
  22.   if ($msgtags(subscriber).key == 1) {
  23.     return $true
  24.   }
  25.   return $false
  26. }
  27.  
  28. ; Detect Timeouts/Bans
  29. ;---------------------
  30. ; The CLEARCHAT command that Twitch sends (when you have the commands capability enabled) is a custom one, so mIRC doesn't know how to handle it. You have to use a raw event handler for that.
  31.  
  32. raw CLEARCHAT:*:{
  33.   ; $1 - channel
  34.   ; $2 - user who got timed out/banned
  35.  
  36.   ; You need to have the tags capability requested to get tags
  37.   if ($msgtags(ban-duration).key == $null) {
  38.     ; If ban-duration is missing it is a ban
  39.     echo -a user $2 in $1 was banned
  40.   }
  41.   else {
  42.     ; Otherwise it's a timeout
  43.     echo -a user $2 in $1 was timed out for $msgtags(ban-duration).key seconds
  44.   }
  45. }
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Ulrpovin
    227 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment