Commands.sendmsg(chan,'{0}{1}{2}'.format(color(' !!! ',white,red),color('AWWW SHIT, IT\'S TIME FOR THAT NEWPORT 100',red,white),color(' !!! ',white,red)))
else:
Commands.sendmsg(chan,'{0}{1}{2}'.format(color(' !!! ',red,green),color('OHHH FUCK, IT\'S TIME FOR THAT 420 EXTENDO',yellow,green),color(' !!! ',red,green)))
Commands.sendmsg(chan,color(nick+' you are already chuggin u wastoid!',light_green))
else:
Bot.nicks.append(nick)
Commands.sendmsg(chan,color(nick+' joined the CHUG session!',light_green))
else:
ifBot.stats['sips']<=0:
Bot.stats['sips']=8
Bot.stats['chugged']+=1
ifBot.stats['chugged']==24:
stats('chug','add')
Bot.stats['chugged']=0
forlineinGenerate.mug(Bot.stats['sips']):
Commands.sendmsg(chan,line)
Bot.stats['sips']-=random.choice((1,2))
elifmsg=='!dragrace'andnotBot.event:
threading.Thread(target=Games.drag_race).start()
elifmsg=='!fatfuck'andluck(100):
Bot.fat=True
Commands.sendmsg(chan,'{0}{1}{2}'.format(color(' !!! ',red,green),color('AWWW SHIT, IT\'S TIME FOR THAT MARLBORO FATFUCK',black,green),color(' !!! ',red,green)))
Commands.sendmsg(chan,'It took {0} seconds for {1} to smoke a cigarette!'.format(color('{:.2f}'.format(time.time()-Bot.drag_race_start),light_blue),color(chan,white)))
error('The bot is already running or nick is in use.')
elifargs[1]=='INVITE'andlen(args)==4:
invited=args[2]
chan=args[3][1:]
ifinvited==nicknameandchan==channel:
Commands.join_channel(channel,key)
elifargs[1]=='KICK'andlen(args)>=4:
chan=args[2]
kicked=args[3]
ifkicked==nicknameandchan==channel:
time.sleep(3)
Commands.join_channel(channel,key)
elifargs[1]=='PART'andlen(args)>=3:
chan=args[2]
ifchan==channel:
nick=args[0].split('!')[0][1:]
Commands.action(nick,f'blows smoke in {nick}\'s face...')
elifargs[1]=='PRIVMSG'andlen(args)>=4:
nick=args[0].split('!')[0][1:]
chan=args[2]
msg=data.split(f'{args[0]} PRIVMSG {chan} :')[1]
ifchan==channel:
Events.message(nick,chan,msg)
classGames:
defchain_smoke(chan):
Bot.event='chainsmoke'
Bot.status=False
Bot.nicks=dict()
try:
Commands.notice(chan,'Starting a round of {0} in {1} seconds!'.format(color('ChainSmoke',red),color('10',white)))
Commands.notice(chan,'[{0}] {1}{2}{3}'.format(color('How To Play',light_blue),color('Type',yellow),color('!smoke',light_green),color('to hit a cigarette. The cigarette goes down a little after each hit. Once you finish a cigarette, a new one will be lit for you. You will have 60 seconds to chain smoke as many cigarettes as possible.',yellow)))
time.sleep(10)
Commands.action(chan,'Round starts in 3...')
time.sleep(1)
Commands.action(chan,'2...')
time.sleep(1)
Commands.action(chan,'1...')
time.sleep(1)
Commands.action(chan,color('GO',light_green))
Bot.status=True
time.sleep(60)
Bot.status=False
Commands.sendmsg(chan,color(' CHAINSMOKE ROUND IS OVER ',red,yellow))
time.sleep(1)
Commands.sendmsg(chan,color(' CHAINSMOKE ROUND IS OVER ',red,yellow))
time.sleep(1)
Commands.sendmsg(chan,color(' CHAINSMOKE ROUND IS OVER ',red,yellow))
Commands.notice(channel,'Starting a round of {0} in {1} seconds!'.format(color('DragRace',red),color('10',white)))
Commands.notice(channel,'[{0}] {1}{2}{3}'.format(color('How To Play',light_blue),color('Type',yellow),color('!smoke',light_green),color('to hit a cigarette. The cigarette goes down a little after each hit. You will have 10 seconds to smoke as quickly as possible.',yellow)))
time.sleep(10)
Commands.action(channel,'Round starts in 3...')
time.sleep(1)
Commands.action(channel,'2...')
time.sleep(1)
Commands.action(channel,'1...')
time.sleep(1)
Commands.action(channel,color('GO',light_green))
Bot.drag_race_start=time.time()
exceptExceptionasex:
error('Error occured in the drag race event!',ex)
finally:
Bot.status=True
defloop():
whileTrue:
ifget_time()[:-3]=='04:20':
try:
Commands.sendmsg(channel,color('S M O K E W E E D E R R D A Y',light_green))
Commands.sendmsg(channel,color('ITZ DAT MUTHA FUCKN 420 BITCH',yellow))
Commands.sendmsg(channel,color('LIGHT UP A NICE GOOD FAT FUCK',red))
time.sleep(43000)
exceptExeptionasex:
error('Error occured in loop!',ex)
else:
time.sleep(30)
deftoke(nick,chan):
Bot.event='letstoke'
Bot.nicks.append(nick)
try:
Commands.sendmsg(channel,color(f'YO {nick} is high',light_green))
Commands.notice(channel,color(f'Time to FUCKING toke in {chan.upper()}, type !toke to join',light_green))
time.sleep(10)
Commands.sendmsg(channel,color('OH SHIT we toke in 20 get ready '+''.join(Bot.nicks),light_green))
time.sleep(10)
Commands.sendmsg(channel,color('OH SHIT we toke in 10 get ready '+''.join(Bot.nicks),light_green))
time.sleep(5)
Commands.sendmsg(channel,color('alright toke in 5',light_green))