request notification reading permission
This commit is contained in:
		
							parent
							
								
									33ea8fe830
								
							
						
					
					
						commit
						11e7a1ff88
					
				
							
								
								
									
										2
									
								
								main.py
								
								
								
								
							
							
						
						
									
										2
									
								
								main.py
								
								
								
								
							| 
						 | 
					@ -10,7 +10,7 @@ from bs4 import BeautifulSoup
 | 
				
			||||||
import os, sqlite3, signal, sys, json, re
 | 
					import os, sqlite3, signal, sys, json, re
 | 
				
			||||||
import requests
 | 
					import requests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
scopes = ["read:statuses", "read:accounts", "read:follows", "write:statuses"]
 | 
					scopes = ["read:statuses", "read:accounts", "read:follows", "write:statuses", "read:notifications"]
 | 
				
			||||||
cfg = json.load(open('config.json', 'r'))
 | 
					cfg = json.load(open('config.json', 'r'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if os.path.exists("clientcred.secret"):
 | 
					if os.path.exists("clientcred.secret"):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue