Introduction
Are you looking to add some fun and expressiveness to your conversations? Look no further! I’m here to help you convert any word or phrase into a colorful array of emojis. Whether you want to spice up your messages, or social media posts, or simply bring a smile to someone’s face, I’ve got you covered.
Just type in the word or phrase you want to transform, and I’ll generate a delightful sequence of emojis that capture the essence of your text. Emojis are a universal language that transcends words from happy faces to animals, objects, and everything in between.
So, let’s get started and infuse your text with a touch of emoji magic! 🎉🔥
Logic
This code allows the user to interact with the sprite and provide emojis, which are then transformed into a response using the ChatGPT model. The sprite then speaks the generated response using the provided emojis.
- Open PictoBlox and create a new file.
- Choose a suitable coding environment for python-based coding.
- Define a sprite , Tobi.
- Then, we create an instance of the ChatGPT model using the ChatGPT class.
- The sprite asks the user to input the emojis they want to use by calling the input method.
- The sprite uses its answer method to get the user’s response, which is then converted to a string using str().
- The movieToemoji method of the ChatGPT model converts the user’s response into emojis.
- The chatGPTresult method retrieves the result of the ChatGPT conversation.
- Finally, the sprite says the result for 5 seconds using the said method.
Code
sprite = Sprite('Tobi')
gpt = ChatGPT()
sprite.input("Please let me know which emojis you'd like me to use by typing them here.")
answer= str(sprite.answer())
gpt.movieToemoji(answer)
result=gpt.chatGPTresult()
sprite.say(result,5)