Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- import praw.models
- import re
- class ROBOT():
- def __init__(self):
- ROBOT_boz = praw.Reddit(user_agent = "NOT_A_ROBOT_bot (v0.13 by u/xBroleh)",
- client_id = ",
- client_secret = "",
- username = "",
- password = "",
- self.search(ROBOT_bot)
- # Search
- for comments to process def search(self, bot):
- subreddit = bot.subreddit("all")
- for comment in subreddit.stream.comments():
- if ("ɴᴏᴡ ᴘʟᴀʏɪɴɢ"
- not in comment.body.lower() and "play despacito" in comment.body.lower() and("sad" in comment.body.lower() or "alexa" in comment.body.lower())):
- try:
- n = re.search("despacito (\d+)", comment.body, re.IGNORECASE).group(1)
- except:
- n = ""
- try:
- comment.reply("ɴᴏᴡ ᴘʟᴀʏɪɴɢ: Despacito " + n + "\n\n───────────────⚪────────────────────────────\n\n◄◄⠀▐▐ ⠀►►⠀⠀ ⠀ 1:17 / 3:48 ⠀ ───○ 🔊⠀ ᴴᴰ ⚙ ❐ ⊏⊐\n\n\n\n^I ^am ^a ^bot. ^I ^don't ^check ^my ^inbox. ^Please ^message ^[u\/Contramuffin](https://old.reddit.com/user/Contramuffin) ^for ^questions.") except:
- pass
- ACTIVATE_BOT = ROBOT()
- input("Enter to exit")
Add Comment
Please, Sign In to add comment