Skip to content

Config_Client_Twitter

Keith Sterling edited this page Feb 20, 2019 · 1 revision

Twitter Client Configuration

In addition to the common configuration items available to all clients, the additional configuration items available to a Twiiter client are as follows

twitter:
  polling: true
  polling_interval: 49
  streaming: false
  use_status: true
  use_direct_message: true
  auto_follow: true
  storage: file
  storage_location: $BOT_ROOT/storage/twitter.data
  welcome_message: Thanks for following me, send me a message and I'll try and help
Name Description Example Default
polling Use tweepy polling mechanism [True|False] True
polling_interval Number of seconds to wait between polling Twitter for new messages 60 49
streaming Use tweepy streaming - Note at this stage this is not supported [True|False] False
use_status When polling, query for all new status updates [True|False] True
use_direct_message When polling, query for all new direct messages [True|False] True
auto_follow Follow back any user that follows this account [True|False] True
storage Store current status and direct message id so as not to ask for old ones file file
storage_location Where to store status and direct message file /tmp/twitter.txt
welcome_message If auto follow is on, what message should be sent back after following the user back Thanks for following me. Thanks for following me, send me a message and I'll try and help
Clone this wiki locally