Files
DeletedPosts/Bot/utils/__pycache__/actions.cpython-39.pyc

46 lines
2.5 KiB
Plaintext
Raw Normal View History

2026-02-23 22:48:25 +00:00
a
o<><6F>d<EFBFBD><00>@s<>ddlZddlZddlmZddlmZddlmZddl m
Z
ddl m Z ddl mZdZGd d
<EFBFBD>d
e<08>Zeed <0B>d d <0A>Zeeed<0E>dd<10>Ze
ee eeed<11>dd<13>Zejeed<14>dd<16>Zeejd<17>dd<19>ZdS)<1A>N)<01>Posts)<01>Path)<01>Enum)<01>List)<01>Logger)<01>Row)<06>Flair<69> get_flair<69>modmail_removal_notification<6F>parse_cmd_line_args<67>submission_is_older<65> string_to_dtc@seZdZdZdZdZdS)rZSolvedZ Abandoned<65>UknownN)<06>__name__<5F>
__module__<EFBFBD> __qualname__<5F>SOLVED<45> ABANDONEDZUKNOWN<57>rr<00>:/home/pi/bots/DeletedPosts/CraftSleuthBot/utils/actions.pyrsr)<02>flair<69>returncCs*z
t|<00>WSty$td<01>YS0dS)Nr)r<00>
ValueError)rrrrr s
 r )<03>
submission<EFBFBD>methodrc Cs2d|j<00>d|j<01>d|j<02>d|<01>d|j<03>d|j<04><00> S)NzA post has been removed
OP: z
Title: z"
Post ID: https://old.reddit.com/z
Deleted by: z
Date created: z
Date found: )<05>username<6D>title<6C>post_id<69>record_created<65> record_edited)rrrrrr
#s<04><04><04><02>
<04> <04>r
)<05>args<67>logger<65> config_file<6C>postsrcCs<>d}t|<00>dkr<>|ddkr(|<01>|<04>n<>|ddkrbzt<02>|<02>Wq<>ty^|<01>d<05>Yq<>0nF|ddkr<>zt<02>|j<06>Wq<>ty<>|<01>d<07>Yq<>0n
|<01>|<04>dSd S)
Nz<EFBFBD>Command line help prompt
Command: help
Args: []
Decription: Prints the help prompt
Command: reset_config
Args: []
Decription: Reset the bot credentials
Command: reset_db
Args: []
Decription: Reset the database
<EFBFBD><00>helpZ reset_configzNo configuration file foundZreset_dbzNo database foundTF)<07>len<65>info<66>os<6F>remove<76>FileNotFoundError<6F>error<6F>path)r r!r"r#Zhelp_msgrrrr 3s"       
r )<03>submission_date<74>max_daysrcCs(tj<01><02><00><03>}||}|j|kr$dSdS)NTF)<05>dt<64>datetime<6D>now<6F>date<74>days)r-r.Z current_dateZtime_differencerrrr Ts

r )<02> date_stringrcCstj<01>|d<01>S)Nz%Y-%m-%d %H:%M:%S.%f)r/r0<00>strptime)r4rrrr \sr )r(r0r/<00>botr<00>pathlibr<00>enumr<00>typingrr!rZ sqlitewrapperr<00>__all__r<00>strr r
<00>boolr r2<00>intr r rrrr<00><module>s      
!