twitterbotsample
twitterbotsample copied to clipboard
Respond to different hastags
If I wanted to make my bot respond differently to multiple hastags, how would I have to write that?
Example: Tweet 1: "#A" Response 1 "this is A"
Tweet 2: "#B" Response 2: "this is B"
You can do this by using multiple if-else if cases or switch cases. Further you can check out my repository, I've made a bot inspired by ykdojo's but with more features :)