SmCTwelve / f1-bot

🏁 A Discord bot to view F1 stats.
MIT License
18 stars 4 forks source link

Driver codes/no substitute surname #8

Closed SmCTwelve closed 5 years ago

SmCTwelve commented 5 years ago

API endpoints require driver_id which is based on surname. Ease of use is improved by allowing commands to parse driver codes or number instead and replace them with the correct surname id.

Need a way to automate getting details of every driver supported by the API.

Solutions:

  1. Download Ergast DB image and substitue driver codes/no with ID via queries at runtime
  2. Automate pulling every driver from API and store details in JSON or persistent Redis key
SmCTwelve commented 5 years ago

Added in bb5784f06709f9c7ecde8edd5ba25ea2d2384aa1.