yasserqureshi1 / Sneaker-Monitors

A collection of web monitors that notify of restocks or updates on sneaker related sites through Discord Webhook. This includes Shopify, Nike SNKRS (supports 42 countries), Supreme and now Footsite monitors!
GNU General Public License v3.0
462 stars 126 forks source link

problem with the discord webhook #37

Closed Dynamomaster closed 3 years ago

Dynamomaster commented 3 years ago

test = SNKRSMonitor(webhook=CONFIG['https://discord.com/api/webhooks/796349146918420513/mvwrJaAGwKEhLjLZ7bG3g7Rg5BGVoYxyhp_PiGtu4X87S7FQTuo_U9IStiMw4Qen-NZC'], loc=CONFIG['GB'], lan=CONFIG['en-GB'], proxy=CONFIG[''])

KeyError: 'https://discord.com/api/webhooks/796349146918420513/mvwrJaAGwKEhLjLZ7bG3g7Rg5BGVoYxyhp_PiGtu4X87S7FQTuo_U9IStiMw4Qen-NZC'

yasserqureshi1 commented 3 years ago

test = SNKRSMonitor(webhook=CONFIG['https://discord.com/api/webhooks/796349146918420513/mvwrJaAGwKEhLjLZ7bG3g7Rg5BGVoYxyhp_PiGtu4X87S7FQTuo_U9IStiMw4Qen-NZC'], loc=CONFIG['GB'], lan=CONFIG['en-GB'], proxy=CONFIG[''])

KeyError: 'https://discord.com/api/webhooks/796349146918420513/mvwrJaAGwKEhLjLZ7bG3g7Rg5BGVoYxyhp_PiGtu4X87S7FQTuo_U9IStiMw4Qen-NZC'

You have to put those variables in the .env file instead of putting them in the Python file. There should be no need to edit the python file.