
# a smaller number doesnt overwrite biggerĬurrentcount = int( re. # Useful for after some of the reminders are sent, # Compares to see if current number is bigger Also, when trying to use the bot to a role for a reminder, it breaks the remind because it automatically provides an for the role, but won't accept an input unless you type another (so if you want to tag role, it'll force you to put role which won. Pattern = r'(\d+ OTHERS |)CLICK(ED|) THIS LINK' A lot of the commands on the overview are outdated as everything as been put with / instead of. # Grabs the tuple within the tuple, a number/the dbcount Query = "SELECT count(DISTINCT userid) FROM reminder WHERE object_name = %s" exception( "Unknown Exception in _find_bot_child_comment") author) = "cryptoRemindMeBot" or str( comment. exception( "Unknown Exception in _reply")įinds the cryptoRemindMeBot comment in the child id)))Įxcept APIException as err: # Catch any less specific API errors message( 'cryptoRemindMe Confirmation', self. Messages the user letting as a confirmation "I will be messaging you when the price of '. commit()ĭef _build_message( self, is_for_comment = True): Saves the id of the comment, the current price, and the message to the DBĬmd = "INSERT INTO reminder (object_name, message, new_price, origin_price, userID,, ticker, comment_create_datetime) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)" # remove cryptoRemindMe! or !cryptoRemindMe (case insenstive) You can still use this subreddit, but for any support/feedback/complaints go to there instead. # Defaults when the user doesn't provide a link The Owner 3 years ago Just so everyone knows: /r/RemindMeBot is the official subreddit for the bot. If request_id and is_valid_comment_id( request_id. Parse comment looking for the message and price # Makes sure to marks as read, even if the above doesn't work SYNTAX_ERROR:Įlif parsed_command = ParseMessage. exception( "error sending generic error message")Įlif parsed_command = ParseMessage. exception( "Unknown Exception in run after parsed command") exception( "Unknown Exception in run while parsing comment") _message_input = '"Hello, I \'m here to remind you to see the parent comment!"' This bot is inspired by the reddit remindme bot and allows similar usage. comment = comment # Reddit comment Object Host = "localhost", user = DB_USER, passwd = DB_PASS, db = "crypto_remind_me" #Dictionary to store current crypto prices User_agent = 'cryptoRemindMe by /u/BoyAndHisBlob',ĮNVIRONMENT = config. get( "Reddit", "client_id")Ĭlient_secret = config.

get( "Reddit", "password")Ĭlient_id = config. get( "Reddit", "username")īot_password = config. exceptions import APIException, PRAWExceptionīot_username = config.
