Différences entre les versions de « Julien Playout »

De {}
Aller à la navigation Aller à la recherche
 
(3 versions intermédiaires par le même utilisateur non affichées)
Ligne 206 : Ligne 206 :
 
=== Idée de bot twitter ===
 
=== Idée de bot twitter ===
 
Reprendre l'idée de rappel quotidien du tinycarebot, mais enlever le côté bien être  un peu bateau. En mélangeant "simplement" certaines de ces constructions de phrases. Par exemple deux des messages récurrents sont "Message your friends" et "Wash your hand with soap". En l'occurence en reprenant la même structure mais en échangeant simplement les noms ça peut nous donner "Wash your friends with soap" "Message your hands".
 
Reprendre l'idée de rappel quotidien du tinycarebot, mais enlever le côté bien être  un peu bateau. En mélangeant "simplement" certaines de ces constructions de phrases. Par exemple deux des messages récurrents sont "Message your friends" et "Wash your hand with soap". En l'occurence en reprenant la même structure mais en échangeant simplement les noms ça peut nous donner "Wash your friends with soap" "Message your hands".
 +
 +
=== Début bot twitter ===
 +
<source lang="python">
 +
import random
 +
import emoji
 +
 +
phrases = [
 +
    ['please remember to check your AAA', ' please don’t forget to take a quick moment to adjust your AAA','please don’t forget to take a quick moment to adjust your AAA','please stretch your AAA',
 +
    'move around and stretch your AAA please', 'don’t forget to take a moment to wiggle your AAA and AAA please', 'lift your AAA high and stretch please','please dont forget to take a second to do a AAA check',
 +
    'please adjust your AAA','please dont forget to take a bit of time to reach up and stretch your AAA'],
 +
 
 +
  ['drink some AAA please','remember to take a little bit of time to drink some AAA please','Health authorities commonly recommend to drink eight AAA every day to reach 2 liters',
 +
    'remember to take a little bit of time to drink some AAA please','please remember to go get a sip of AAA','remember to take a quick moment to drink some AAA please','take a quick break to drink some AAA please',
 +
    'please dont forget to take a little bit of time to have a sip of AAA'],
 +
   
 +
    ['remember to send a message to a AAA please','please dont forget to take some time to respond to messages from your AAA','please take a bit of time to respond to messages from your AAA',
 +
    'please dont forget to ask AAA for help if you need it', 'dont forget to take a bit of time to ask AAA for help if you need it please','please remember to send a message to a AAA',
 +
    'please remember to take a little bit of time to send a message to a AAA','please text a AAA','remember to take some time to respond to a message from a AAA please','please text your AAA'],
 +
 
 +
  ['eat AAA please', 'please remember to take a bit of time to eat AAA', 'dont forget to take a quick second to eat AAA please', 'remember to take a quick moment to eat AAA please',
 +
    'please take a moment to eat AAA', 'please eat AAA'],
 +
   
 +
    ['remember to take a second to let breathe your AAA please', 'please take a quick second to let your AAA rest', 'remember to rest your AAA please', 'remember to look at a AAA please',
 +
    'please take a quick second to go get AAA', 'please dont forget to take time to look outside your AAA and let your AAA rest', 'please take time to rest your AAA and look up from your AAA'
 +
    'please remember to take a little bit of time to get AAA', 'please dont forget to let your AAA rest', 'remember to take a AAA to just breathe please', 'take a AAA please', 'please dont forget to look at some nature',
 +
    'dont forget to take some time to take a AAA please', 'get AAA please', 'remember to look AAA please', 'please remember to take a quick second to rest your AAA', 'please rest your AAA',
 +
    'please remember to eat AAA if you have not eaten anything today', 'please dont forget to go get AAA']
 +
]
 +
 +
mots = [
 +
    ['posture', 'legs','fingers', 'toes', 'arms'],
 +
    ['water', 'glasses of water'],
 +
    ['friend', 'someone', 'friends' ],
 +
    ['something', 'something nourishing', 'something nutritious'],
 +
    ['eyes', 'plant', 'some fresh air', 'window', 'phone', 'quick break', 'deep breath', 'some nature', 'few deep breaths', 'outside']
 +
    ]
 +
 +
liste = random.choice(phrases)
 +
phrase = random.choice(liste)
 +
 +
liste_mot = random.choice(mots)
 +
mot = random.choice(liste_mot)
 +
 +
 +
Tweet = phrase.replace('AAA', mot)
 +
 +
print(Tweet)
 +
 +
</source>
 +
 +
 +
=== bot twitter (avec emoji) ===
 +
<source lang="python">
 +
 +
import random
 +
import emoji
 +
import tweepy
 +
 +
 +
phrases = [
 +
    ['please remember to check your AAA', 'please don’t forget to take a quick moment to adjust your AAA','please don’t forget to take a quick moment to adjust your AAA','please stretch your AAA',
 +
    'move around and stretch your AAA please', 'don’t forget to take a moment to wiggle your AAA and AAA please', 'lift your AAA high and stretch please','please dont forget to take a second to do a AAA check',
 +
    'please adjust your AAA','please dont forget to take a bit of time to reach up and stretch your AAA'],
 +
 
 +
  ['drink some AAA please','remember to take a little bit of time to drink some AAA please','Health authorities commonly recommend to drink eight AAA every day to reach 2 liters',
 +
    'remember to take a little bit of time to drink some AAA please','please remember to go get a sip of AAA','remember to take a quick moment to drink some AAA please','take a quick break to drink some AAA please',
 +
    'please dont forget to take a little bit of time to have a sip of AAA'],
 +
   
 +
    ['remember to send a message to a AAA please','please dont forget to take some time to respond to messages from your AAA','please take a bit of time to respond to messages from your AAA',
 +
    'please dont forget to ask AAA for help if you need it', 'dont forget to take a bit of time to ask AAA for help if you need it please','please remember to send a message to a AAA',
 +
    'please remember to take a little bit of time to send a message to a AAA','please text a AAA','remember to take some time to respond to a message from a AAA please','please text your AAA'],
 +
 
 +
  ['eat AAA please', 'please remember to take a bit of time to eat AAA', 'dont forget to take a quick second to eat AAA please', 'remember to take a quick moment to eat AAA please',
 +
    'please take a moment to eat AAA', 'please eat AAA'],
 +
   
 +
    ['remember to take a second to let breathe your AAA please', 'please take a quick second to let your AAA rest', 'remember to rest your AAA please', 'remember to look at a AAA please',
 +
    'please take a quick second to go get AAA', 'please dont forget to take time to look outside your AAA and let your AAA rest', 'please take time to rest your AAA and look up from your AAA'
 +
    'please remember to take a little bit of time to get AAA', 'please dont forget to let your AAA rest', 'remember to take a AAA to just breathe please', 'take a AAA please', 'please dont forget to look at some nature',
 +
    'dont forget to take some time to take a AAA please', 'get AAA please', 'remember to look AAA please', 'please remember to take a quick second to rest your AAA', 'please rest your AAA',
 +
    'please remember to eat AAA if you have not eaten anything today', 'please dont forget to go get AAA'],
 +
    ['remember to listen to a AAA that helps you feel peaceful please', 'please take some time to listen to some of your favorite AAA', 'remember to take a moment to play a AAA that helps you feel happy please'
 +
    'please play your favorite AAA', 'please play some AAA that grounds you', 'take a little bit of time to listen to a AAA that helps inspire you please']
 +
]
 +
 +
mots = [
 +
    ['posture', 'legs','fingers', 'toes', 'arms'],
 +
    ['water', 'glasses of water'],
 +
    ['friend', 'someone', 'friends' ],
 +
    ['something', 'something nourishing', 'something nutritious'],
 +
    ['eyes', 'plant', 'fresh air', 'window', 'phone', 'quick break', 'deep breath', 'nature', 'few deep breaths', 'outside'],
 +
    ['song', 'music']
 +
    ]
 +
 +
smileyy = [':bowtie:',':smile:'':simple_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:'
 +
':house:',':house_with_garden:',':school:',':office:',':post_office:',':hospital:',':bank:',':convenience_store:',':love_hotel:',':hotel:',':wedding:',':church:',':department_store:',':european_post_office:',':city_sunrise:',':city_sunset:',':japanese_castle:',':european_castle:',':tent:',':factory:',':japan:',
 +
':mount_fuji:',':sunrise_over_mountains:',':sunrise:',':stars:',':statue_of_liberty:',':bridge_at_night:',':carousel_horse:',':rainbow:',':ferris_wheel:',':fountain:',':roller_coaster:',':ship:',':speedboat:',':boat:',':sailboat:',':rowboat:',':anchor:',':rocket:',':airplane:',':helicopter:',':steam_locomotive:',':tram:',':mountain_railway:',
 +
':bike:',':aerial_tramway:',':suspension_railway:',':mountain_cableway:',':tractor:',':blue_car:',':oncoming_automobile:',':car:',':red_car:',':taxi:',':oncoming_taxi:',':articulated_lorry:',':bus:',':oncoming_bus:',':rotating_light:',':police_car:',':oncoming_police_car:',':fire_engine:',':ambulance:',':minibus:',':truck:',':train:',':station:',
 +
':train2:',':bullettrain_front:',':bullettrain_side:',':light_rail:',':monorail:',':railway_car:',':trolleybus:',':ticket:',':fuelpump:',':vertical_traffic_light:',':traffic_light:',':warning:',':construction:',':beginner:',':atm:',':slot_machine:',':busstop:',':barber:',':hotsprings:',':checkered_flag:',':crossed_flags:',':izakaya_lantern:',
 +
':moyai:',':circus_tent:',':performing_arts:',':round_pushpin:',':bamboo:',':gift_heart:',':dolls:'
 +
,':school_satchel:',':mortar_board:',':flags:',':fireworks:',':sparkler:',':wind_chime:',':rice_scene:',':jack_o_lantern:',':ghost:'',:santa:',':christmas_tree:'
 +
,':gift:',':bell:',':no_bell:',':tanabata_tree:',':tada:',':confetti_ball:',':balloon:',':crystal_ball:',':cd:',':dvd:',':floppy_disk:',':camera:',':video_camera:',':movie_camera:',':computer:',':tv:',':iphone:',':phone:',':telephone:'
 +
,':telephone_receiver:',':pager:',':fax:',':minidisc:',':vhs:',':sound:',':speaker:',':mute:',':loudspeaker:',':mega:',':hourglass:',':hourglass_flowing_sand:',':alarm_clock:',':watch:'
 +
,':radio:',':satellite:',':loop:',':mag:',':mag_right:',':unlock:',':lock:',':lock_with_ink_pen:',':closed_lock_with_key:',':key:',':bulb:',':flashlight:',':high_brightness:',':low_brightness:',':electric_plug:',':battery:'
 +
,':calling:',':email:',':mailbox:',':postbox:',':bath:',':bathtub:',':shower:',':toilet:',':wrench:',':nut_and_bolt:',':hammer:',':seat:',':moneybag:',':yen:',':dollar:',':pound:'
 +
,':euro:',':credit_card:',':money_with_wings:',':e-mail:',':inbox_tray:',':outbox_tray:',':envelope:',':incoming_envelope:',':postal_horn:',':mailbox_closed:',':mailbox_with_mail:',':mailbox_with_no_mail:',':package:',':door:',':smoking:',':bomb:'
 +
,':gun:',':hocho:',':pill:',':syringe:',':page_facing_up:',':page_with_curl:',':bookmark_tabs:',':bar_chart:',':chart_with_upwards_trend:',':chart_with_downwards_trend:',':scroll:',':clipboard:',':calendar:',':date:',':card_index:',':file_folder:'
 +
,':open_file_folder:',':scissors:',':pushpin:',':paperclip:',':black_nib:',':pencil2:',':straight_ruler:',':triangular_ruler:',':closed_book:',':green_book:',':blue_book:',':orange_book:',':notebook:',':notebook_with_decorative_cover:'
 +
,':ledger:',':books:',':bookmark:',':name_badge:',':microscope:',':telescope:',':newspaper:',':football:',':basketball:',':soccer:',':baseball:',':tennis:',':8ball:',':rugby_football:',':bowling:',':golf:',':mountain_bicyclist:',':bicyclist:'
 +
,':horse_racing:',':snowboarder:',':swimmer:',':surfer:',':ski:',':spades:',':hearts:',':clubs:',':diamonds:',':gem:',':ring:',':trophy:',':musical_score:',':musical_keyboard:',':violin:',':space_invader:',':video_game:',':black_joker:'
 +
,':flower_playing_cards:',':game_die:',':dart:',':mahjong:',':clapper:',':memo:',':pencil:',':book:',':art:',':microphone:',':headphones:',':trumpet:',':saxophone:',':guitar:',':shoe:',':sandal:',':high_heel:',':lipstick:'
 +
,':boot:',':shirt:',':tshirt:',':necktie:',':womans_clothes:',':dress:',':running_shirt_with_sash:',':jeans:',':kimono:',':bikini:',':ribbon:',':tophat:',':crown:',':womans_hat:',':mans_shoe:',':closed_umbrella:',':briefcase:',':handbag:'
 +
,':pouch:',':purse:',':eyeglasses:',':fishing_pole_and_fish:',':coffee:',':tea:',':sake:',':baby_bottle:',':beer:',':beers:',':cocktail:',':tropical_drink:',':wine_glass:',':fork_and_knife:',':pizza:',':hamburger:'
 +
,':fries:',':poultry_leg:',':meat_on_bone:',':spaghetti:',':curry:',':fried_shrimp:',':bento:',':sushi:',':fish_cake:',':rice_ball:',':rice_cracker:',':rice:',':ramen:',':stew:',':oden:',':dango:',':egg:',':bread:'
 +
,':doughnut:',':custard:',':icecream:',':ice_cream:',':shaved_ice:',':birthday:',':cake:',':cookie:',':chocolate_bar:',':candy:',':lollipop:',':honey_pot:',':apple:',':green_apple:',':tangerine:',':lemon:'
 +
,':cherries:',':grapes:',':watermelon:',':strawberry:',':peach:',':melon:',':banana:',':pear:',':pineapple:',':sweet_potato:',':eggplant:',':tomato:',':corn:']
 +
 +
liste = random.choice(phrases)
 +
phrase = random.choice(liste)
 +
 +
liste_mot = random.choice(mots)
 +
mot = random.choice(liste_mot)
 +
 +
smileyyy = random.choice(smileyy)
 +
smileyyyy = random.choice(smileyy)
 +
 +
Tweet = emoji.emojize(smileyyy, use_aliases=True) + ' ' + emoji.emojize(smileyyyy, use_aliases=True) +' '+  phrase.replace('AAA', mot)
 +
 +
api.update_status(status= Tweet)

Version actuelle datée du 26 avril 2021 à 07:25

Le code

100110011001010100000100101001000001100011010011111001011110011111010001000001101100110010101000001110011

10011000100111110000111011001100011110111111011111101100010000111001011110011111010001000011101101110111111100101110100

Tavernier

import time

print("Tavernier :") 
time.sleep (1)
print("Bonjour, combien de bieres ce soir?")
time.sleep(1)
print("Moi:")
Nbr_bieres = input()
Nbr_bieres = int(Nbr_bieres)

time.sleep(1)

if Nbr_bieres < 6:
    print("Conscience :")
    time.sleep (1)
    print("que " + str(Nbr_bieres) + "? partons plutot sur " + str(Nbr_bieres*2))
    time.sleep (1)
    print("Moi :")
    time.sleep (1)
    print(str(Nbr_bieres*2) + ("..."))
    Nbr_bieres = int(Nbr_bieres*2)

else:
    print("...")
    time.sleep(1)
    print("Conscience :")
    time.sleep (1)
    print("C'est bien")
 
time.sleep (1)

print ("Tavernier :") 
time.sleep (1)
print (str(Nbr_bieres) + " ? C'est parti!")

time.sleep (2)

print ("Tavernier :") 
time.sleep (1)
print ("Eh voilà :")
 
for compteur in range (1, Nbr_bieres + 1):
    print(str(compteur) + " bieres")
    time.sleep(1)
print ("Moi :")
time.sleep (1)
print ("Merci...")

time.sleep(1)
print ("Conscience :")
time.sleep (1)
print("... beaucoup.")

time.sleep(1)
print ("Tavernier : ")
time.sleep(1)
print ("Dure journée?")

time.sleep(1)
print ("Moi :")
humeur = input()

if humeur == "Oui" or humeur == "plutôt": 
    print ("Tavernier :")
    time.sleep(1)
    print ("Tu m'en vois désolé")
    time.sleep(1)
    print ("Conscience :")
    time.sleep(1)
    print ("Ne lui disons pas tout")
else :
    print ("Tavernier :")
    time.sleep(1)
    print ("Tant mieux alors!")

Mélangeur de mot

# -*- coding : utf-8 -*-
import time

import random

print("Bienvenue dans ce mélangeur de lettres, veuilez insérer un mot : ")

mot = input()
#mot = raw_input()

motLength = len(mot)

shuffle = list(mot)
random.shuffle(shuffle)
shuffled = "".join(shuffle)

for compteur in range (0, motLength):
    print("On a " + shuffled[compteur])
    time.sleep(1)
print("Mot mélangé!")

time.sleep(1)


Tenet

# -*- coding : utf-8 -*-

#un script qui epelle un mot, dans un sens et l'autre, puis qui va "piocher" dans le 2 et 3 lettres de ce mot

import time

print ("Donnez-moi un palindrome s'il te plaît")

time.sleep(1)

palin = input()
#palin = raw_input

palinLength = len(palin)

for compteur in range (0, palinLength) : 
    print ("On a un " + palin[compteur])
    time.sleep(1)    

time.sleep(1)    

print ("Oh merde! le scénariste de Tenet est là, en fait tout est à l'envers")   

time.sleep(1)    

print ("Bon  bah...c'est reparti...")

for compteur in range (palinLength-1, -1, -1): 
    print ("On a un " + palin[compteur])
    time.sleep(1)    

print ("Ah bah ça revient au même hehe")

time.sleep(1)

print("Oh, le scnénariste est encore bourré... Chris, c'est pas sérieux ça")

time.sleep(1)

print("Christopher Nolan : dzjanausaoaiz")

time.sleep(1)
print("Christopher Nolan :" + palin [0:2] + "...")

time.sleep(1)

print("Christopher Nolan :" + palin [2:5])

time.sleep(1)

print("Oui, oui, aller on va dormir")

Recueil de poéme

import random

pronoms =['la','la','la','le','le','le','le', 'moi', 'que', 'ses', 'que' , 'quoi'] 

ponctuation = [ "," , "!" ]

nompropre =  [ "Italie" , "Jul" ]

verbe=["aime","est","est","vais","danser","calisse","veux","fusse","glissait","sortez","avais","ai reve","fuit","dit","tour","tombe","taaJAIjAaSK$"]

qualificatif =['pistou','couvert',]

noms = ['soupe','pistou','alcool','Chien','casse','savon','deboires','MESSAGE','ALERTE','plafond','GQSK','s','chemin','pieton','mauX','a=our','soir']


for i in range (5) :
    structure1 = random.choice(pronoms) + ' ' + random.choice(noms)  + ' ' + random.choice(verbe) + ' ' + random.choice(qualificatif) 
    print (structure1)

for u in range (3) :  
    structure2 =  random.choice(pronoms) + ' ' + random.choice(noms) + ' ' + random.choice(ponctuation) + ' ' + random.choice(verbe) + random.choice(ponctuation)
    print (structure2)

for i in range (1) :
    structure3 = random.choice(noms) + ' ' + random.choice(ponctuation)  + ' ' + random.choice(qualificatif) + ' ' 
    print (structure3)

Comment convaincre Twitter qu'on est gentil

As part of learning how your API works, I would like to set up a bot that will answer simple questions asked by users while looking for the first google results. The basis of this project is a student duty, there is no desire for business behind the bot. I'm just trying to make it interact with certain users (who will mostly be people in my programming class). The user will mention the bot and ask it a simple question like "how many people are there in the world". The bot will take care of doing an internet search and copy paste the quick result from wikipedia for example. It will respond to the tweet in which it was mentioned by the user. The responses will be the only functionality used (no retweet, follow, like etc). It will not use user data. The generated tweets will be shown only to my class and will be not exported out of twitter.

Idée de bot twitter

Reprendre l'idée de rappel quotidien du tinycarebot, mais enlever le côté bien être un peu bateau. En mélangeant "simplement" certaines de ces constructions de phrases. Par exemple deux des messages récurrents sont "Message your friends" et "Wash your hand with soap". En l'occurence en reprenant la même structure mais en échangeant simplement les noms ça peut nous donner "Wash your friends with soap" "Message your hands".

Début bot twitter

import random
import emoji

phrases = [
    ['please remember to check your AAA', ' please don’t forget to take a quick moment to adjust your AAA','please don’t forget to take a quick moment to adjust your AAA','please stretch your AAA',
    'move around and stretch your AAA please', 'don’t forget to take a moment to wiggle your AAA and AAA please', 'lift your AAA high and stretch please','please dont forget to take a second to do a AAA check',
    'please adjust your AAA','please dont forget to take a bit of time to reach up and stretch your AAA'],
   
   ['drink some AAA please','remember to take a little bit of time to drink some AAA please','Health authorities commonly recommend to drink eight AAA every day to reach 2 liters',
    'remember to take a little bit of time to drink some AAA please','please remember to go get a sip of AAA','remember to take a quick moment to drink some AAA please','take a quick break to drink some AAA please',
    'please dont forget to take a little bit of time to have a sip of AAA'],
    
    ['remember to send a message to a AAA please','please dont forget to take some time to respond to messages from your AAA','please take a bit of time to respond to messages from your AAA',
    'please dont forget to ask AAA for help if you need it', 'dont forget to take a bit of time to ask AAA for help if you need it please','please remember to send a message to a AAA', 
    'please remember to take a little bit of time to send a message to a AAA','please text a AAA','remember to take some time to respond to a message from a AAA please','please text your AAA'],
   
   ['eat AAA please', 'please remember to take a bit of time to eat AAA', 'dont forget to take a quick second to eat AAA please', 'remember to take a quick moment to eat AAA please',
    'please take a moment to eat AAA', 'please eat AAA'],
    
    ['remember to take a second to let breathe your AAA please', 'please take a quick second to let your AAA rest', 'remember to rest your AAA please', 'remember to look at a AAA please', 
    'please take a quick second to go get AAA', 'please dont forget to take time to look outside your AAA and let your AAA rest', 'please take time to rest your AAA and look up from your AAA'
    'please remember to take a little bit of time to get AAA', 'please dont forget to let your AAA rest', 'remember to take a AAA to just breathe please', 'take a AAA please', 'please dont forget to look at some nature',
    'dont forget to take some time to take a AAA please', 'get AAA please', 'remember to look AAA please', 'please remember to take a quick second to rest your AAA', 'please rest your AAA',
    'please remember to eat AAA if you have not eaten anything today', 'please dont forget to go get AAA']
]

mots = [
    ['posture', 'legs','fingers', 'toes', 'arms'],
    ['water', 'glasses of water'],
    ['friend', 'someone', 'friends' ],
    ['something', 'something nourishing', 'something nutritious'],
    ['eyes', 'plant', 'some fresh air', 'window', 'phone', 'quick break', 'deep breath', 'some nature', 'few deep breaths', 'outside']
    ]

liste = random.choice(phrases)
phrase = random.choice(liste)

liste_mot = random.choice(mots)
mot = random.choice(liste_mot)


Tweet = phrase.replace('AAA', mot)

print(Tweet)


bot twitter (avec emoji)

<source lang="python">

import random import emoji import tweepy


phrases = [

   ['please remember to check your AAA', 'please don’t forget to take a quick moment to adjust your AAA','please don’t forget to take a quick moment to adjust your AAA','please stretch your AAA',
   'move around and stretch your AAA please', 'don’t forget to take a moment to wiggle your AAA and AAA please', 'lift your AAA high and stretch please','please dont forget to take a second to do a AAA check',
   'please adjust your AAA','please dont forget to take a bit of time to reach up and stretch your AAA'],
  
  ['drink some AAA please','remember to take a little bit of time to drink some AAA please','Health authorities commonly recommend to drink eight AAA every day to reach 2 liters',
   'remember to take a little bit of time to drink some AAA please','please remember to go get a sip of AAA','remember to take a quick moment to drink some AAA please','take a quick break to drink some AAA please',
   'please dont forget to take a little bit of time to have a sip of AAA'],
   
   ['remember to send a message to a AAA please','please dont forget to take some time to respond to messages from your AAA','please take a bit of time to respond to messages from your AAA',
   'please dont forget to ask AAA for help if you need it', 'dont forget to take a bit of time to ask AAA for help if you need it please','please remember to send a message to a AAA', 
   'please remember to take a little bit of time to send a message to a AAA','please text a AAA','remember to take some time to respond to a message from a AAA please','please text your AAA'],
  
  ['eat AAA please', 'please remember to take a bit of time to eat AAA', 'dont forget to take a quick second to eat AAA please', 'remember to take a quick moment to eat AAA please',
   'please take a moment to eat AAA', 'please eat AAA'],
   
   ['remember to take a second to let breathe your AAA please', 'please take a quick second to let your AAA rest', 'remember to rest your AAA please', 'remember to look at a AAA please', 
   'please take a quick second to go get AAA', 'please dont forget to take time to look outside your AAA and let your AAA rest', 'please take time to rest your AAA and look up from your AAA'
   'please remember to take a little bit of time to get AAA', 'please dont forget to let your AAA rest', 'remember to take a AAA to just breathe please', 'take a AAA please', 'please dont forget to look at some nature',
   'dont forget to take some time to take a AAA please', 'get AAA please', 'remember to look AAA please', 'please remember to take a quick second to rest your AAA', 'please rest your AAA',
   'please remember to eat AAA if you have not eaten anything today', 'please dont forget to go get AAA'],
   ['remember to listen to a AAA that helps you feel peaceful please', 'please take some time to listen to some of your favorite AAA', 'remember to take a moment to play a AAA that helps you feel happy please'
   'please play your favorite AAA', 'please play some AAA that grounds you', 'take a little bit of time to listen to a AAA that helps inspire you please']

]

mots = [

   ['posture', 'legs','fingers', 'toes', 'arms'],
   ['water', 'glasses of water'],
   ['friend', 'someone', 'friends' ],
   ['something', 'something nourishing', 'something nutritious'],
   ['eyes', 'plant', 'fresh air', 'window', 'phone', 'quick break', 'deep breath', 'nature', 'few deep breaths', 'outside'],
   ['song', 'music']
   ]

smileyy = [':bowtie:',':smile::simple_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:' ':house:',':house_with_garden:',':school:',':office:',':post_office:',':hospital:',':bank:',':convenience_store:',':love_hotel:',':hotel:',':wedding:',':church:',':department_store:',':european_post_office:',':city_sunrise:',':city_sunset:',':japanese_castle:',':european_castle:',':tent:',':factory:',':japan:', ':mount_fuji:',':sunrise_over_mountains:',':sunrise:',':stars:',':statue_of_liberty:',':bridge_at_night:',':carousel_horse:',':rainbow:',':ferris_wheel:',':fountain:',':roller_coaster:',':ship:',':speedboat:',':boat:',':sailboat:',':rowboat:',':anchor:',':rocket:',':airplane:',':helicopter:',':steam_locomotive:',':tram:',':mountain_railway:', ':bike:',':aerial_tramway:',':suspension_railway:',':mountain_cableway:',':tractor:',':blue_car:',':oncoming_automobile:',':car:',':red_car:',':taxi:',':oncoming_taxi:',':articulated_lorry:',':bus:',':oncoming_bus:',':rotating_light:',':police_car:',':oncoming_police_car:',':fire_engine:',':ambulance:',':minibus:',':truck:',':train:',':station:', ':train2:',':bullettrain_front:',':bullettrain_side:',':light_rail:',':monorail:',':railway_car:',':trolleybus:',':ticket:',':fuelpump:',':vertical_traffic_light:',':traffic_light:',':warning:',':construction:',':beginner:',':atm:',':slot_machine:',':busstop:',':barber:',':hotsprings:',':checkered_flag:',':crossed_flags:',':izakaya_lantern:', ':moyai:',':circus_tent:',':performing_arts:',':round_pushpin:',':bamboo:',':gift_heart:',':dolls:' ,':school_satchel:',':mortar_board:',':flags:',':fireworks:',':sparkler:',':wind_chime:',':rice_scene:',':jack_o_lantern:',':ghost:,:santa:',':christmas_tree:' ,':gift:',':bell:',':no_bell:',':tanabata_tree:',':tada:',':confetti_ball:',':balloon:',':crystal_ball:',':cd:',':dvd:',':floppy_disk:',':camera:',':video_camera:',':movie_camera:',':computer:',':tv:',':iphone:',':phone:',':telephone:' ,':telephone_receiver:',':pager:',':fax:',':minidisc:',':vhs:',':sound:',':speaker:',':mute:',':loudspeaker:',':mega:',':hourglass:',':hourglass_flowing_sand:',':alarm_clock:',':watch:' ,':radio:',':satellite:',':loop:',':mag:',':mag_right:',':unlock:',':lock:',':lock_with_ink_pen:',':closed_lock_with_key:',':key:',':bulb:',':flashlight:',':high_brightness:',':low_brightness:',':electric_plug:',':battery:' ,':calling:',':email:',':mailbox:',':postbox:',':bath:',':bathtub:',':shower:',':toilet:',':wrench:',':nut_and_bolt:',':hammer:',':seat:',':moneybag:',':yen:',':dollar:',':pound:' ,':euro:',':credit_card:',':money_with_wings:',':e-mail:',':inbox_tray:',':outbox_tray:',':envelope:',':incoming_envelope:',':postal_horn:',':mailbox_closed:',':mailbox_with_mail:',':mailbox_with_no_mail:',':package:',':door:',':smoking:',':bomb:' ,':gun:',':hocho:',':pill:',':syringe:',':page_facing_up:',':page_with_curl:',':bookmark_tabs:',':bar_chart:',':chart_with_upwards_trend:',':chart_with_downwards_trend:',':scroll:',':clipboard:',':calendar:',':date:',':card_index:',':file_folder:' ,':open_file_folder:',':scissors:',':pushpin:',':paperclip:',':black_nib:',':pencil2:',':straight_ruler:',':triangular_ruler:',':closed_book:',':green_book:',':blue_book:',':orange_book:',':notebook:',':notebook_with_decorative_cover:' ,':ledger:',':books:',':bookmark:',':name_badge:',':microscope:',':telescope:',':newspaper:',':football:',':basketball:',':soccer:',':baseball:',':tennis:',':8ball:',':rugby_football:',':bowling:',':golf:',':mountain_bicyclist:',':bicyclist:' ,':horse_racing:',':snowboarder:',':swimmer:',':surfer:',':ski:',':spades:',':hearts:',':clubs:',':diamonds:',':gem:',':ring:',':trophy:',':musical_score:',':musical_keyboard:',':violin:',':space_invader:',':video_game:',':black_joker:' ,':flower_playing_cards:',':game_die:',':dart:',':mahjong:',':clapper:',':memo:',':pencil:',':book:',':art:',':microphone:',':headphones:',':trumpet:',':saxophone:',':guitar:',':shoe:',':sandal:',':high_heel:',':lipstick:' ,':boot:',':shirt:',':tshirt:',':necktie:',':womans_clothes:',':dress:',':running_shirt_with_sash:',':jeans:',':kimono:',':bikini:',':ribbon:',':tophat:',':crown:',':womans_hat:',':mans_shoe:',':closed_umbrella:',':briefcase:',':handbag:' ,':pouch:',':purse:',':eyeglasses:',':fishing_pole_and_fish:',':coffee:',':tea:',':sake:',':baby_bottle:',':beer:',':beers:',':cocktail:',':tropical_drink:',':wine_glass:',':fork_and_knife:',':pizza:',':hamburger:' ,':fries:',':poultry_leg:',':meat_on_bone:',':spaghetti:',':curry:',':fried_shrimp:',':bento:',':sushi:',':fish_cake:',':rice_ball:',':rice_cracker:',':rice:',':ramen:',':stew:',':oden:',':dango:',':egg:',':bread:' ,':doughnut:',':custard:',':icecream:',':ice_cream:',':shaved_ice:',':birthday:',':cake:',':cookie:',':chocolate_bar:',':candy:',':lollipop:',':honey_pot:',':apple:',':green_apple:',':tangerine:',':lemon:' ,':cherries:',':grapes:',':watermelon:',':strawberry:',':peach:',':melon:',':banana:',':pear:',':pineapple:',':sweet_potato:',':eggplant:',':tomato:',':corn:']

liste = random.choice(phrases) phrase = random.choice(liste)

liste_mot = random.choice(mots) mot = random.choice(liste_mot)

smileyyy = random.choice(smileyy) smileyyyy = random.choice(smileyy)

Tweet = emoji.emojize(smileyyy, use_aliases=True) + ' ' + emoji.emojize(smileyyyy, use_aliases=True) +' '+ phrase.replace('AAA', mot)

api.update_status(status= Tweet)