Created
July 11, 2019 05:19
-
-
Save anchetaWern/196bda5e36d59d4505fbfd2ba03d6b19 to your computer and use it in GitHub Desktop.
Pokedex Bot: Initialize bot in App.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const BOT_USER = { | |
| _id: 2, | |
| name: 'Poke Bot', | |
| avatar: 'https://ui-avatars.com/api/?background=0D8ABC&color=fff&name=Poke Bot' | |
| }; | |
| class App extends Component { | |
| state = { | |
| messages: [ | |
| { | |
| _id: 1, | |
| text: `Hi! I am the PokéBot 🤖.\n\nWhat would you like to know about Pokemon today?`, | |
| createdAt: new Date(), | |
| user: BOT_USER | |
| } | |
| ] | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment