mirror of
https://github.com/thewesker/ebooks_example.git
synced 2025-12-20 04:11:13 -05:00
Tweet on startup like doc says it should
This commit is contained in:
2
bots.rb
2
bots.rb
@@ -94,6 +94,8 @@ class BoodooBot
|
|||||||
|
|
||||||
def on_startup
|
def on_startup
|
||||||
log "I started up!"
|
log "I started up!"
|
||||||
|
tweet(model.make_statement)
|
||||||
|
|
||||||
scheduler.interval @tweet_interval do
|
scheduler.interval @tweet_interval do
|
||||||
if rand < @tweet_chance
|
if rand < @tweet_chance
|
||||||
tweet(model.make_statement)
|
tweet(model.make_statement)
|
||||||
|
|||||||
Reference in New Issue
Block a user