【发布时间】:2020-12-04 09:00:17
【问题描述】:
我最近接触了 OpeNweather API,并在这篇文章的帮助下创建了一个简单的当前天气命令:How to make a weather command using discord.py v1.4.1
我对 API 很陌生,所以我需要使用 Forecast API 的帮助(文档可以在这里找到 https://openweathermap.org/api/hourly-forecast)
我正在为我的机器人使用 discord.py Rewrite
【问题讨论】:
-
没有人会给你写一堆代码,让自己走上正轨,写一些代码。如果您卡在任何地方,请随时到达这里。可以在此处找到有关如何提出好问题的更多信息。 stackoverflow.com/help/how-to-ask
-
您可以使用 1. 请求模块和 2. JSON 模块手动对其进行编码。
标签: discord bots discord.py-rewrite openweathermap