Compare commits
	
		
			5 Commits
		
	
	
		
			3f06a88a83
			...
			8ba9743334
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 8ba9743334 | ||
|   | b25c714e6f | ||
|   | 546b912bbc | ||
|   | 5728fed3ca | ||
|   | ed03773145 | 
| @@ -7,6 +7,6 @@ import os | ||||
| if os.getenv("dockerized", "") == "true": | ||||
|     import sys | ||||
|     sys.path.append("/keys") | ||||
|     import api_keys as keys | ||||
|     import api_keys as apikeys | ||||
| else: | ||||
|     from . import keys | ||||
|     from . import apikeys | ||||
|   | ||||
| @@ -22,13 +22,13 @@ class ChatBot(): | ||||
|         self.version = version | ||||
|          | ||||
|         # Import apis | ||||
|         self.api_weather = api.weather.WeatherFetch(api.keys.weather_api) | ||||
|         self.api_reddit = api.reddit.RedditFetch(api.keys.reddit_api) | ||||
|         self.api_weather = api.weather.WeatherFetch(api.apikeys.weather_api) | ||||
|         self.api_reddit = api.reddit.RedditFetch(api.apikeys.reddit_api) | ||||
|         self.api_search = api.search.WebSearch() | ||||
|         self.api_art = api.metmuseum.ArtFetch() | ||||
|         # and so on | ||||
|  | ||||
|         self.telegram = Updater(api.keys.telegram_api, use_context=True) | ||||
|         self.telegram = Updater(api.apikeys.telegram_api, use_context=True) | ||||
|         self.dispatcher = self.telegram.dispatcher | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -11,10 +11,10 @@ import os | ||||
| if os.getenv("dockerized", "") == "true": | ||||
|     import sys | ||||
|     sys.path.append("/keys") | ||||
|     import db_keys as keys | ||||
|     import db_keys as dbkeys | ||||
| else: | ||||
|     from . import keys | ||||
| dbk = keys.db_access | ||||
|     from . import keys as dbkeys | ||||
| dbk = dbkeys.db_keys | ||||
|  | ||||
|  | ||||
|  | ||||
| @@ -63,7 +63,7 @@ class DatabaseUtils: | ||||
|  | ||||
|     @auto_connect_db | ||||
|     def chat_log(self, **kwargs): | ||||
|         models.ChatMetric(**kwargs) | ||||
|         models.ChatMetric(**kwargs).save() | ||||
|  | ||||
|     @auto_connect_db | ||||
|     def list_get(self, list_name=""): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user