SHARE
TWEET

slots

luckytyphlosion Nov 8th, 2015 (edited) 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def cmd_slots(queries,saved_message,author,taguser,checkForProfile,userNoProfile):
  2.         if not checkForProfile():
  3.                 add_user(author)
  4.                        
  5.         slots_cooldown = time.time() - (slots_data[author]["slots_cooldown"])
  6.         if author == "Dabomstew":
  7.                 dabomstew_cooldown_times.append(slots_cooldown)
  8.                 print "Dabomstew's Cooldown: %s" % slots_cooldown
  9.                 if len(dabomstew_cooldown_times) >= 7 and (max(dabomstew_cooldown_times) - min(dabomstew_cooldown_times) < 5):
  10.                         client.send_message(saved_message.channel, taguser() + "Stop being a filthy cheater SwiftRage!")
  11.                         dabomstew_pls[0] = True
  12.                                
  13.         if saved_message.channel.name == bot_channel and ((time.time() - (slots_data[author]["slots_cooldown"]) >= 180) or (slots_data[author]["slots_executions"] == 0)) and not dabomstew_pls[0]:
  14.                
  15.                 debugcount = 1
  16.                 while True:
  17.                         sampled_emotes = random.sample([":bowtie:",":smile:",":laughing:",":blush:",":smiley:",":relaxed:",":smirk:",":heart_eyes:",":kissing_heart:",":kissing_closed_eyes:",":flushed:",":relieved:",":satisfied:",":grin:",":wink:",":stuck_out_tongue_winking_eye:",":stuck_out_tongue_closed_eyes:",":grinning:",":kissing:",":kissing_smiling_eyes:",":stuck_out_tongue:",":sleeping:",":worried:",":frowning:",":anguished:",":open_mouth:",":grimacing:",":confused:",":hushed:",":expressionless:",":unamused:",":sweat_smile:",":sweat:",":disappointed_relieved:",":weary:",":pensive:",":disappointed:",":confounded:",":fearful:",":cold_sweat:",":persevere:",":cry:",":sob:",":joy:",":astonished:",":scream:",":neckbeard:",":tired_face:",":angry:",":rage:",":triumph:",":sleepy:",":yum:",":mask:",":sunglasses:",":dizzy_face:",":imp:",":smiling_imp:",":neutral_face:",":no_mouth:",":innocent:",":alien:",":yellow_heart:",":blue_heart:",":purple_heart:",":heart:",":green_heart:",":broken_heart:",":heartbeat:",":heartpulse:",":two_hearts:",":revolving_hearts:",":cupid:",":sparkling_heart:",":sparkles:",":star:",":star2:",":dizzy:",":boom:",":collision:",":anger:",":exclamation:",":question:",":grey_exclamation:",":grey_question:",":zzz:",":dash:",":sweat_drops:",":notes:",":musical_note:",":fire:",":hankey:",":poop:",":shit:",":+1:",":thumbsup:",":-1:",":thumbsdown:",":ok_hand:",":punch:",":facepunch:",":fist:",":v:",":wave:",":hand:",":raised_hand:",":open_hands:",":point_up:",":point_down:",":point_left:",":point_right:",":raised_hands:",":pray:",":point_up_2:",":clap:",":muscle:",":metal:",":fu:",":runner:",":running:",":couple:",":family:",":two_men_holding_hands:",":two_women_holding_hands:",":dancer:",":dancers:",":ok_woman:",":no_good:",":information_desk_person:",":raising_hand:",":bride_with_veil:",":person_with_pouting_face:",":person_frowning:",":bow:",":couplekiss:",":couple_with_heart:",":massage:",":haircut:",":nail_care:",":boy:",":girl:",":woman:",":man:",":baby:",":older_woman:",":older_man:",":person_with_blond_hair:",":man_with_gua_pi_mao:",":man_with_turban:",":construction_worker:",":cop:",":angel:",":princess:",":smiley_cat:",":smile_cat:",":heart_eyes_cat:",":kissing_cat:",":smirk_cat:",":scream_cat:",":crying_cat_face:",":joy_cat:",":pouting_cat:",":japanese_ogre:",":japanese_goblin:",":see_no_evil:",":hear_no_evil:",":speak_no_evil:",":guardsman:",":skull:",":feet:",":lips:",":kiss:",":droplet:",":ear:",":eyes:",":nose:",":tongue:",":love_letter:",":bust_in_silhouette:",":busts_in_silhouette:",":speech_balloon:",":thought_balloon:",":feelsgood:",":finnadie:",":goberserk:",":godmode:",":hurtrealbad:",":rage1:",":rage2:",":rage3:",":rage4:",":suspect:",":trollface:"],16)
  18.                
  19.                         slots = []
  20.                                
  21.                         for count in range(3):
  22.                                 slots.append(random.choice(sampled_emotes))
  23.                                
  24.                         if slots[0] == slots[1] and slots[1] == slots[2]:
  25.                                 slotsmsg = taguser() + "%s | %s | %s" % (slots[0],slots[1],slots[2])
  26.                                
  27.                                 newpoints = slots_calcpoints(debugcount)
  28.                                 slots_updatepoints(author, newpoints)
  29.                                
  30.                                 nodecimal_msg = nodecimal(newpoints)
  31.                                
  32.                                 slotsmsg += " Number of tries: %s. Points won: %s" % (debugcount,nodecimal_msg)
  33.                                
  34.                                 client.send_message(saved_message.channel, slotsmsg)
  35.                                
  36.                                 if debugcount == 1:
  37.                                         slotsmsg_win = tagusernoarrow() + "has won slots"
  38.                                
  39.                                         client.send_message(saved_message.channel, slotsmsg_win)
  40.                                        
  41.                                         slots_updatewins(author)
  42.                                
  43.                                 break
  44.                
  45.                         else:
  46.                                 debugcount += 1
  47.                
  48.                 slots_updatetime(author)
  49.                 slots_updatetries(author,debugcount)
  50.                 slots_updateexecutions(author)
  51.                 save_slots()
  52.         elif saved_message.channel.name == bot_channel:
  53.                 client.send_message(saved_message.channel,taguser() + "On cooldown. (%d secs)" % (180 - (time.time() - slots_data[author]["slots_cooldown"])))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top