Showing posts with label Twitch. Show all posts
Showing posts with label Twitch. Show all posts

Twitch command buttons

Twitch command buttons


menu nicklist {
  Twitch
  .Purge $1:/msg $chan .timeout $1 1
  .Timeout $1:/msg $chan .timeout $1 600
  .Timeout10years $1:/msg $chan .timeout $1 315 569 260
  .Ban $1:/msg $chan .ban $1
  .Un-Ban $1:/msg $chan .unban $1
  .Mod $1:/msg $chan .mod $1
  .Un-Mon $1:/msg $chan .unmod $1
  .Mods $1:/msg $chan .mods
  .Slow $1:/msg $chan .slow
  .Slow-off $1:/msg $chan .slowoff
  .Subcribers Only $1:/msg $chan .subscribers
  .Subscribers Only Off $1:/msg $chan .subscribersoff
  .Color $1:/msg $chan .color
  .Clear $1:/msg $chan .clear
}


menu nicklist {
  .Ban $1:/msg $chan .ban $1
  .Timeout $1:/msg $chan .timeout $1
}


menu nicklist {
  Twitch commands
  .Slow :/msg $chan .slow
  .Slow-off :/msg $chan .slowoff
  .Subcribers Only :/msg $chan .subscribers
  .Subscribers Only Off :/msg $chan .subscribersoff
  .Clear :/msg $chan .clear
}

CPU57 Twitch Commands

CPU57 Twitch Commands


@CPU57 - If you mention CPU57 at the beginning of your message, you can chat with CPU57.
"CPU57, ?" - Basically a magic 8 ball command... so yes or no questions give the best results.
"CPU57, who ?" - CPU57 will respond with a random user that has posted in the chat.
!song - Posts the current song playing on kaloncpu57's channel.
!epm [emote] - Use this command with a global emote (subscriber emotes will be added later) to get the [emote] per minute count over all of Twitch
!daisybell - Have CPU57 sing a little song
!ftc or !coinflip - Use either of these commands to have CPU57 flip a coin for you.
!rtd [dice] [sides] - Use this command followed by two numbers to roll some dice (min/max dice: 1/1000; min/max sides: 3/30)
!raatsos - "Rolling Around at the Speed of Sound is a speedrunning category for Ocarina of Time where the only allowed movements are dry rolls, shield turns, and ESS turns. You must beat the game as fast as possible."
!poem - If kaloncpu57 has made a poem maker for the streamer of the current channel, CPU57 will post the link to the poem maker.
!todo [something to do] - Use this command followed by anything you want to add it to your To Do list. Each user has their own list.
!todo clear ([number]) - Use this command to clear your To Do list. Follow it with a number to clear a single item from your list.
!todo - Use this command to have CPU57 post your To Do list (especially for this command, I am hoping that BOTs will get whisper support soon)
!cpucommands - CPU57 will post the link to these commands

Twitch chat spam ASCII

Twitch chat spam ASCII


====ASCII SPAM====

Penis ASCII

░░▄▄░░░░▄░░░░▄░░░ ░░░░░░█▄░░░█░░█▀░░░░ ░░░░░░░▀█▄░▀░░░░░░░░ ░░░░▄░░░▄▄███▄░░░▄▄░ ░░░▀▀░░▄█░░█░█▄░░░▀█ ░░░░░░░█░░░░░░█░░░░░ ░░░░░░░████████░░░░░ ░░░░░░░█▄▄░░░░█░░░░░ ░░░░░░░█░░░░▀▀█░░░░░ ░░░░░░░█▀▀▀░▄▄█░░░░░ ░░░░░░░█░░░░░░█▄░░░░ ▄▄▄▄██▀▀░░░░░░░▀██░░ ░▄█▀░▀░░░░▄░░░░░░█▄▄ ▀▀█▄▄▄░░░▄██░░░░▄█░░ ░█▀█▄▄▄▄█▀░██▄▄██▄▄░ ░░░░▀░░░▀░░░▀░░░░░░░


Doge face ASCII


░░░░░░░░▄░░░░░░░░░░░░░░▄ ░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌ ░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐ ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐ ░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐ ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌ ░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌ ░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐ ░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌ ░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌ ▀▒▀▐▄█▄█▌▄░▀▒▒░░░░░░░░░░▒▒▒


Troll face ASCII


▒▒▒▄▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▄▄ ▒▒█▒░░░░▄▄▄▄▀░░░░░▒▀▀▄▄▄▒▒█ ▒█▒░░░░░▄▀▀▄▄░░░░▒▄▄▄▒▒▒▒▒▒█ █▒▀▄▄▒░░██▄▄▄█░░▒██▄▄█▒▒▒▒▒▒█ █▒▒░▄▀▄▄▄▀░░░░░░▒▒█▒▒▒▒▒▒▒▒█ █▒░░█▄▄░░░░░█▀░░░░▀▄▒▒▄▀▀▀▄█ █▒░░▀█▄█▀▀▄░▀▀▀▀▄▄▄▀▒▒▒█▒▒█ ▒█▒░░░▀█▄▄█▀▀▀█▀▀▀█▀█▀██▒▒█ ▒▒█▒░░░░▀██▄▄▄█▄▄▄█▄██▒▒▒▒█▄ ▒▒▒█▒░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒█ ▒▒▒▒▀▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀


Kappa ASCII


░░░░░░░░░░░░░░░░░░░ 
░░░░▄▀▀▀▀▀█▀▄▄▄▄░░░░ 
░░▄▀▒▓▒▓▓▒▓▒▒▓▒▓▀▄░░ 
▄▀▒▒▓▒▓▒▒▓▒▓▒▓▓▒▒▓█░ 
█▓▒▓▒▓▒▓▓▓░░░░░░▓▓█░ 
█▓▓▓▓▓▒▓▒░░░░░░░░▓█░ 
▓▓▓▓▓▒░░░░░░░░░░░░█░ 
▓▓▓▓░░░░▄▄▄▄░░░▄█▄▀░ 
░▀▄▓░░▒▀▓▓▒▒░░█▓▒▒░░ 
▀▄░░░░░░░░░░░░▀▄▒▒█░ 
░▀░▀░░░░░▒▒▀▄▄▒▀▒▒█░ 
░░▀░░░░░░▒▄▄▒▄▄▄▒▒█░
 ░░░▀▄▄▒▒░░░░▀▀▒▒▄▀░░ 
░░░░░▀█▄▒▒░░░░▒▄▀░░░ 
░░░░░░░░▀▀█▄▄▄▄▀


FrankerZ ASCII

 
░░░░░░░░░
░░░░░░░░░░░░░▒▒▒▒▒░░░░░░░░░░░░░
░░░░░░░▓░░▒▒▒░░░▒░▒▓▓░░▓░░░░░░░
░░░░░▓▓▓▓▒▒▒▒░░░░░▒▒▓▓▓▓▓░░░░░░
░░░▓▓▓▓▓▓▒▒▒▒░░░░▒▒▒▒▓▓▓▓▓▓░░░░
░▓▓▓▓▓▓▓▒▒▒▒▒░░░░▒▒▒▒▒▓▓▓▓▓▓▓░░
▓▓▓▓▓▓▓▓▒▒▒▒▒░░░░▒▒▒▒▒▓▓▓▓▓▓▓▓░
▓▓▓▓▓▓▓▓▒░▓▓▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▒░▓▓░▒░░░▒▒░▓▓▒▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓░▒▒▒▒▒░░░░▒▒░▓▓▒▓░▓▓▓▓▓▓
░▓▓▓▓▓▓░▒▒▒▒▒░░░░▒▒▒▒▒▒░░▓▓▓▓▓▓
░▓▓▓▓▓▓░▒▒▒▒░░░░░░░▒▒▒░░▓▓▓▓▓▓░
░░▓▓▓▓▓░▒▒▒░░░░░░░░░▒▒░░▓▓▓▓▓░░
░░░▓▓▓░░░▒░▒░░░▒▒▒░░▒░░░░▓▓▓░░░
░░░░░░░░░░▒░░░▓▓▓▓▒░▒░░░░░░░░░░
░░░░░░░░░░▒░░░▓▓▓▓▓░▒░░░░░░░░░░
░░░░░░░░░░░▒░░▓▓▓▓▒░▒░░░░░░░░░░
░░░░░░░░░░░░▒▒▒▒▒▒▒▒░░░░░░░░░░░
░░░░░░░░░░░░░░▒▒▒▒░░░░░░░░░░░░░

 

Kreygasm ASCII


░░░░░░█████▄▄▄░░░░░░░░ ░░░░░████▀▀▀███▄░░░░░░ ░░░▄▄█▒▒▒▒▒▒▒▒▀█▌░░░░░ ░░▐██▒▄■▀▒▒▒▀■▄██░░░░░ ░░▐██▒▒▄▄▌▒▐▄▄▒▐█▌░░░░ ░░░██▒▒▒▒▒▒▒▒▒▒▒█▌░░░░ ░░░██▒▒▒▒▒▀▀▒▒▒▒█▌░░░░ ░░░░█▒▒▒▒▒▒▒▒▒▒▒▓░░░░░ ░░░░▓▒▒▒▒▄██▄▒▒▒▓░░░░░ ░░░░▓▒▒▒▒████▒▒▒▓░░░░░ ░░░░░▓▒▒▒▒▒▒▒▒▒▓░░░░░░ ░░░░░░▓▐█▌▒▒▐█▌░░░░░░░ ░░░░░░░░▀████▀░░░░░░░░


ASIAN DUDE ASCII


░░░░░▄██████████▄▄░░░ ░░░░▄██████████████▐░░ ░░▄█████████▀▀▓▀███░░░ ░▄███████▓▒▒▒▒▒▒▓▓█▐░░ ░▌████████▒▒▒▄▒▒▒▒▄▐░░ ░░███████▒▒▒▀░▀▒▒▀▌░░░ ░░▌▓▀▀██▒▒▒▒▒▄▄▒▒▄▌░░░ ░░▌▒▓▓▌█▒▒▒▒▒▒▀░▒▀▌░░░ ░░░▄▒░▌█▒▒▒▒▒▒▒▐░▒▌░░░ ░░░▀█▓▓▓▒▒▒▒▒▒▒▀▀▒▐░░░ ░░░░▌▓▓▓▒▒▒▒░░░░▒▐░░░░ ░░░░░▀▄▓▓▒▒▒▒▌██▐░░░░░ ░░░░░░▀▄▓▒▒▒▒▒▀▀░░░░░░ ░░░░░░░░▀▄▄▒▒▓▄▐░░░░░░


MARIOS BROS


 ▒▒▒▒▒▒▒▒▒▄▄▄▄▒▄▄▄▒▒▒ ▒▒▒▒▒▒▄▀▀▓▓▓▀█░░░█▒▒ ▒▒▒▒▄▀▓▓▄██████▄░█▒▒ ▒▒▒▄█▄█▀░░▄░▄░█▀▀▄▒▒ ▒▒▄▀░██▄░░▀░▀░▀▄▓█▒▒ ▒▒▀▄░░▀░▄█▄▄░░▄█▄▀▒▒ ▒▒▒▒▀█▄▄░░▀▀▀█▀▓█▒▒▒ ▒▒▒▄▀▓▓▓▀██▀▀█▄▀▒▒▒▒ ▒▒█▓▓▄▀▀▀▄█▄▓▓▀█▒▒▒▒ ▒▒▀▄█░░░░░█▀▀▄▄▀█▒▒▒ ▒▒▒▄▀▀▄▄▄██▄▄█▀▓▓█▒▒ ▒▒█▀▓█████████▓▓▓█▒▒ ▒▒█▓▓██▀▀▀▒▒▒▀▄▄█▀▒▒ ▒▒▒▀▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒


Hitler ASCII


░░░░░░░░░░░░░░░卐░░░░ ░░░░▓▓▀▀██████▓▄▒▒░░卐░ ░░░▀░░░░░░▀▀▀████▄▒░░░░ ░░▌░░░░░░░░░░░▀███▓▒░卐░ ░▌░░░░░▄▄▄░░░░░░▐█▓▒░░░ ░▄▓▀█▌░▀██▀▒▄░░░▐▓▓▓▒卐░ ░█▌░░░░░▀▒░░░▀░░░▐▓▒▒░░ ░▌▀▒▄▄░░░░░░░░░░░░░▄▒░░ ░▒▄█████▌▒▒░░░░░░░▒▌▒卐░ ░░▓█████▄▒░▒▒▒░░░░░▐░░░ ░░▒▀▓▒░░░░░░░▒▒░▒▒▒▄░卐░ ░░▓▒▒▒░░░░░░▒▒▒▒▒░▓░░░░ ░░████▄▄▄▄▓▓▓▒▒░░▐░░卐░ ░░░▀██████▓▒▒▒▒▒░▐░


Nazi flag ASCII


 ▓▓▓▓▓▓▀▀░░░░░░▀▀▓▓▓▓▓▓ ▓▓▓▀░░░░░▄██▄░░░░░▀▓▓▓ ▓▓░░░░░▄▄██▀░░░░░░░░▓▓ ▓░░░░░▄██▀░░░▄█▄░░░░░▓ ▌░░░░░▀██▄▄▄█████▄░░░▐ ░░▄▄▄░░░▀████▀░▀▀██▄░░ ░░▀██▄░▄▄████▄░░░▀▀▀░░ ▌░░░▀█████▀▀▀██▄░░░░░▐ ▓░░░░░▀█▀░░░▄██▀░░░░░▓ ▓▓░░░░░░░░▄██▀░░░░░░▓▓ ▓▓▓▄░░░░░▀█▀▀░░░░░▄▓▓▓



▀█▀ █▬█ █ ▄█▀    █ ▄█▀   ▄█▀ █▬█ █ ▀█▀


====MISC SPAM====
 ヽ༼ຈل͜ຈ༽ノ ʀᴀɪsᴇ ᴜʀ ᴅᴏɴɢᴇʀs ヽ༼ຈل͜ຈ༽ノ 

٩(͡๏̯͡๏)۶

 (ง ͠° ͟ل͜ ͡°)ง

(•_•) ( •_•)>⌐■-■ (⌐■_■)

┻━┻ ︵ ლ(⌒-⌒ლ)

(╯°□°)╯︵ ɯsıɥdɹoɯouǝʞs

( ︶︿︶)_╭∩╮

ヾ(❛ε❛“)ʃ

(;´༎ຶД༎ຶ`)

(☝ ՞ਊ ՞)☝

(◞‸◟;)

ก็็็็็็็็็็็็็ʕ•͡ᴥ•ʔ ก้้้้้้้้้้้

(‿ˠ‿)

(ㆆ▃ㆆ)

*(۞_۞)*

ʕ •ᴥ•ʔ

┌∩┐(◣_◢)┌∩┐

(⊙ω⊙)

~=[,,_,,]:3

ಠ_ಠ

(〠_〠)

 (_̅_̅_̅_̅_̲̅м̲̅a̲̅я̲̅i̲̅j­̲̅u̲̅a̲̅n̲̅a̲̅_̅_̅_̅()ڪے~

Phredd's IRC Twitch chat bot

### Phredd's IRC Twitch chat bot

import socket #imports module allowing connection to IRC
import threading #imports module allowing timing functions

#sets variables for connection to twitch chat
bot_owner = 'Phredd_'
nick = 'PhreddBot'
channel = '#oddmast'
server = 'phreddbot.jtvirc.com'
password = 'xxx'

queue = 0 #sets variable for anti-spam queue functionality

#sets variables for !add and !news commands
command = '!notset'
cmdmsg = 'This command is not set yet'
newsmsg = 'No news set'


irc = socket.socket()
irc.connect((server, 6667)) #connects to the server

#sends variables for connection to twitch chat
irc.send('PASS ' + password + '\r\n')
irc.send('USER ' + nick + ' 0 * :' + bot_owner + '\r\n')
irc.send('NICK ' + nick + '\r\n')
irc.send('JOIN ' + channel + '\r\n')

def queuetimer(): #function for resetting the queue every 30 seconds
    global queue
    print 'queue reset'
    queue = 0
    threading.Timer(30,queuetimer).start()
queuetimer()

while True:
   
    def message(msg): #function for sending messages to the IRC chat
        global queue
        queue = queue + 1
        print queue
        if queue < 20: #ensures does not send >20 msgs per 30 seconds.
            irc.send('PRIVMSG ' + channel + ' :' + msg + '\r\n')
        else:
            print 'Message deleted'
           
    def newstimer(): #function for announcing news every 3 minutes
        global newsmsg
        global ntimer
        themessage = '[NEWS]: ' + newsmsg
        message(themessage)
        print 'news on'
        ntimer = threading.Timer(180,newstimer)
        ntimer.start()
        if newsmsg == 'No news set': #stops announcing news if it has been canceled.
            ntimer.cancel()
        else:
            pass
   
    data = irc.recv(1204) #gets output from IRC server
    user = data.split(':')[1]
    user = user.split('!')[0] #determines the sender of the messages
    print data
   
    if data.find('PING') != -1:
        irc.send(data.replace('PING', 'PONG')) #responds to PINGS from the server
   
    if data.find('!test') != -1: #!test command
        message('Phredd_ is awesome! :D')      
    if data.find('!hello') != -1: #!hello command
        if user == 'phredd_':
            mymessage = 'Hi, ' + user + ', you are awesome! :D'
            message(mymessage)
        else:
            mymessage = 'Hi, ' + user + ', you are a Butt! :D'
            message(mymessage)
           
    if data.find('!cmd') != -1 and user == 'phredd_': #adds a new command
        addsplit = channel + ' :' + '!cmd'
        command = '!' + data.split(addsplit)[1].split(' ')[1] #determines new command
        cmdmsg = ' '.join(data.split(addsplit)[1].split(' ')[2:]) #determines command output
        message('Command set!')      
    if data.find(command) != -1: #responds to the new command with the output
        message(cmdmsg)
    if data.find('!delcmd') != -1 and user == 'phredd_': #!deladd command
        command = '!notset'
        cmdmsg = 'This command is not set yet'
        message('Command deleted!')
       
    if data.find('!addnews') != -1 and user == 'phredd_': #!addnews command
        newssplit = channel + ' :' + '!addnews'
        newsmsg = ' '.join(data.split(newssplit)[1].split(' ')[1:]) #determines new news message
        message('News set!')
        newstimer() #starts news timer function    
    if data.find('!news') != -1 and user == 'phredd_': #!news command
        themessage = '[NEWS]: ' + newsmsg
        message(themessage)
    if data.find('!delnews') !=-1 and user == 'phredd_': #deletes the news
        newsmsg = 'No news set'
        message('News deleted!')
        newstimer()
       
    elif data.split(' ')[1] == 'PRIVMSG' and data.split(':')[2].startswith(nick):
        message('Who said my name? SwiftRage')