Skip to content

Instantly share code, notes, and snippets.

@anchetaWern
Created July 11, 2019 05:19
Show Gist options
  • Select an option

  • Save anchetaWern/196bda5e36d59d4505fbfd2ba03d6b19 to your computer and use it in GitHub Desktop.

Select an option

Save anchetaWern/196bda5e36d59d4505fbfd2ba03d6b19 to your computer and use it in GitHub Desktop.
Pokedex Bot: Initialize bot in App.js
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