Last active
October 18, 2024 08:13
-
-
Save FluffyPira/d5a650d9e6afdbfd6d97 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## pulling a specific line | |
if tweet.text.start_with?('Q') | |
q_reply = File.readlines("file.txt") | |
reply(tweet, q_reply[0]) | |
else | |
reply(tweet, model.make_response(meta(tweet).mentionless, meta(tweet).limit)) | |
end | |
## pulling a random line | |
if tweet.text.start_with?('Q') | |
q_reply = File.readlines("file.txt").sample | |
reply(tweet, q_reply) | |
else | |
reply(tweet, model.make_response(meta(tweet).mentionless, meta(tweet).limit)) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much! You are sweet and amazing!