mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 12:21:11 -05:00
remove bot. references in README
This commit is contained in:
12
README.md
12
README.md
@@ -54,29 +54,29 @@ class MyBot < Ebooks::Bot
|
|||||||
scheduler.every '24h' do
|
scheduler.every '24h' do
|
||||||
# Tweet something every 24 hours
|
# Tweet something every 24 hours
|
||||||
# See https://github.com/jmettraux/rufus-scheduler
|
# See https://github.com/jmettraux/rufus-scheduler
|
||||||
# bot.tweet("hi")
|
# tweet("hi")
|
||||||
# bot.pictweet("hi", "cuteselfie.jpg")
|
# pictweet("hi", "cuteselfie.jpg")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def on_message(dm)
|
def on_message(dm)
|
||||||
# Reply to a DM
|
# Reply to a DM
|
||||||
# bot.reply(dm, "secret secrets")
|
# reply(dm, "secret secrets")
|
||||||
end
|
end
|
||||||
|
|
||||||
def on_follow(user)
|
def on_follow(user)
|
||||||
# Follow a user back
|
# Follow a user back
|
||||||
# bot.follow(user[:screen_name])
|
# follow(user[:screen_name])
|
||||||
end
|
end
|
||||||
|
|
||||||
def on_mention(tweet)
|
def on_mention(tweet)
|
||||||
# Reply to a mention
|
# Reply to a mention
|
||||||
# bot.reply(tweet, meta(tweet)[:reply_prefix] + "oh hullo")
|
# reply(tweet, meta(tweet)[:reply_prefix] + "oh hullo")
|
||||||
end
|
end
|
||||||
|
|
||||||
def on_timeline(tweet)
|
def on_timeline(tweet)
|
||||||
# Reply to a tweet in the bot's timeline
|
# Reply to a tweet in the bot's timeline
|
||||||
# bot.reply(tweet, meta(tweet)[:reply_prefix] + "nice tweet")
|
# reply(tweet, meta(tweet)[:reply_prefix] + "nice tweet")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user