From 07b9bedbf7b80e26bff9b512ea527c3420a6363c Mon Sep 17 00:00:00 2001 From: Charles Frye Date: Tue, 21 Jan 2025 20:00:21 -0800 Subject: [PATCH] fix typos (#1052) * fix typos * another one --- 07_web_endpoints/discord_bot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/07_web_endpoints/discord_bot.py b/07_web_endpoints/discord_bot.py index 8a26786f2..54a210c2b 100644 --- a/07_web_endpoints/discord_bot.py +++ b/07_web_endpoints/discord_bot.py @@ -13,7 +13,7 @@ # [`@asgi_app`](https://modal.com/docs/guide/webhooks#serving-asgi-and-wsgi-apps) decorator. # As our example service, we hit a simple free API: -# the [Free Public API API](https://www.freepublicapis.com/api), +# the [Free Public APIs API](https://www.freepublicapis.com/api), # a directory of free public APIs. # [Try it out on Discord](https://discord.gg/PmG7P47EPQ)! @@ -37,16 +37,16 @@ app = modal.App("example-discord-bot", image=image) -# ## Hit the Free Public API API +# ## Hit the Free Public APIs API # We start by defining the core service that our bot will provide. # In a real application, this might be [music generation](https://modal.com/docs/examples/musicgen), # a [chatbot](https://modal.com/docs/examples/chat_with_pdf_vision), -# or [interactiving with a database](https://modal.com/docs/examples/covid_datasette). +# or [interacting with a database](https://modal.com/docs/examples/covid_datasette). # Here, we just hit a simple free public API: -# the [Free Public API](https://www.freepublicapis.com) API, +# the [Free Public APIs](https://www.freepublicapis.com) API, # an "API of APIs" that returns information about free public APIs, # like the [Global Shark Attack API](https://www.freepublicapis.com/global-shark-attack-api) # and the [Corporate Bullshit Generator](https://www.freepublicapis.com/corporate-bullshit-generator). @@ -120,7 +120,7 @@ async def send_to_discord(payload: dict, app_id: str, interaction_token: str): print("🤖 Discord response: " + await resp.text()) -# Other parts of our application might want to both hit the Free Public API API and send the result to Discord, +# Other parts of our application might want to both hit the Free Public APIs API and send the result to Discord, # so we both write a Python function for this and we promote it to a Modal Function with a decorator. # Notice that we use the `.local` suffix to call our `fetch_api` Function. That means we run