How to Make a Twitter Bot with Google Scripts

This is how you can write a Twitter bot with the help of Google Apps Script. It fetches tweets address (@mentions) to the bot through the Twitter API, computes the answer with Wolfraph Alpha and tweets it. You will also need to include the Twitter Apps Scripts library in your Google Scripts project (key is MKvHYYdYA4G5JJHj7hxIcoh8V4oX7X1M_) with the identifier set as Twitter.