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": | if os.getenv("dockerized", "") == "true": | ||||||
|     import sys |     import sys | ||||||
|     sys.path.append("/keys") |     sys.path.append("/keys") | ||||||
|     import api_keys as keys |     import api_keys as apikeys | ||||||
| else: | else: | ||||||
|     from . import keys |     from . import apikeys | ||||||
|   | |||||||
| @@ -22,13 +22,13 @@ class ChatBot(): | |||||||
|         self.version = version |         self.version = version | ||||||
|          |          | ||||||
|         # Import apis |         # Import apis | ||||||
|         self.api_weather = api.weather.WeatherFetch(api.keys.weather_api) |         self.api_weather = api.weather.WeatherFetch(api.apikeys.weather_api) | ||||||
|         self.api_reddit = api.reddit.RedditFetch(api.keys.reddit_api) |         self.api_reddit = api.reddit.RedditFetch(api.apikeys.reddit_api) | ||||||
|         self.api_search = api.search.WebSearch() |         self.api_search = api.search.WebSearch() | ||||||
|         self.api_art = api.metmuseum.ArtFetch() |         self.api_art = api.metmuseum.ArtFetch() | ||||||
|         # and so on |         # 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 |         self.dispatcher = self.telegram.dispatcher | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -11,10 +11,10 @@ import os | |||||||
| if os.getenv("dockerized", "") == "true": | if os.getenv("dockerized", "") == "true": | ||||||
|     import sys |     import sys | ||||||
|     sys.path.append("/keys") |     sys.path.append("/keys") | ||||||
|     import db_keys as keys |     import db_keys as dbkeys | ||||||
| else: | else: | ||||||
|     from . import keys |     from . import keys as dbkeys | ||||||
| dbk = keys.db_access | dbk = dbkeys.db_keys | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -63,7 +63,7 @@ class DatabaseUtils: | |||||||
|  |  | ||||||
|     @auto_connect_db |     @auto_connect_db | ||||||
|     def chat_log(self, **kwargs): |     def chat_log(self, **kwargs): | ||||||
|         models.ChatMetric(**kwargs) |         models.ChatMetric(**kwargs).save() | ||||||
|  |  | ||||||
|     @auto_connect_db |     @auto_connect_db | ||||||
|     def list_get(self, list_name=""): |     def list_get(self, list_name=""): | ||||||
| @@ -95,4 +95,4 @@ class DatabaseUtils: | |||||||
|  |  | ||||||
|     @auto_connect_db |     @auto_connect_db | ||||||
|     def sensor_log(self, **kwargs): |     def sensor_log(self, **kwargs): | ||||||
|         models.SensorMetric(**kwargs).save() |         models.SensorMetric(**kwargs).save() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user