README.md

Configuration

Personal repo: just playing and trying to automate some social media interactions.

Telegram bot key

Add in .Renviron

R_TELEGRAM_BOT_yournameBot=**key**

data/telegram.cnf

bot.name: "telegram_name_bot"
chat.id: id_groupchat_to_listen
chat.home: id_groupchat_to_post
patternLvl1: "http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+"
patternLvl2: "http[s]?://(www.youtube.com|m.youtube.com|youtu.be)/watch.*"

data/bot.twitter.cnf

consumer_key: "consumer_key"
consumer_secret: "consumer_secret"
access_token: "access_token"
access_token_secret: "access_token_secret"

rds with last message id

path: inst/extdata/telegram_id.rds

Install and run

You will need to install dependencies before build. Just install what it says on warning and error messages until it build.

git clone https://github.com/humbertcostas/secretary.git
R CMD build secretary
R CMD INSTALL --library=/your/lib/R/path secretary_0.0.3.tar.gz
cd secretary
./example.R


humbertcostas/secretary documentation built on May 17, 2019, 9:13 p.m.