Skip to content

Instantly share code, notes, and snippets.

@JonathanZWhite
Last active April 17, 2016 20:16
Show Gist options
  • Save JonathanZWhite/e3fdacf4068c287b1830e79a5c05d867 to your computer and use it in GitHub Desktop.
Save JonathanZWhite/e3fdacf4068c287b1830e79a5c05d867 to your computer and use it in GitHub Desktop.
class Music {
getGenreList(message, bot) {
// clears store for new command tree
store.clearState(message.from)
store.update(message.from, { command: commands.GET_GENRE_LIST })
bot.sendMessage(message.from, 'Choose a genre you would like a recommendation for 🎵', {
reply_markup: {
keyboard: genresJSON.genres,
one_time_keyboard: true
}
})
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment