add script to more conveniently start pgbot
This commit is contained in:
		
							parent
							
								
									c65787b6bd
								
							
						
					
					
						commit
						836a72fa8e
					
				
					 2 changed files with 10 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								pgbot
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								pgbot
									
										
									
									
									
								
							| 
						 | 
					@ -53,4 +53,5 @@ def main():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
 | 
					    print("Starting pgbot...")
 | 
				
			||||||
    main()
 | 
					    main()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										9
									
								
								start.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								start.sh
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,9 @@
 | 
				
			||||||
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					export TZ=Europe/Moscow
 | 
				
			||||||
 | 
					[[ -d .venv ]] || {
 | 
				
			||||||
 | 
					    python -m venv .venv
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					source .venv/bin/activate
 | 
				
			||||||
 | 
					pip install --upgrade pip
 | 
				
			||||||
 | 
					pip install --upgrade bs4 fake_headers psycopg pyyaml requests schedule telethon
 | 
				
			||||||
 | 
					exec ./pgbot
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue