Why am i getting “TypeError: string indices must be integers”?
import nextcord from nextcord.ext import commands from config import TOKEN, API_KEY import aiohttp bot = commands.Bot(command_prefix = “!”, intents = nextcord.Intents.all()) @bot.event async def on_ready(): print(“Bot has connected to Discord”) @bot.command() async def weather(ctx: commands.Context, *, city): url = “http://api.weatherapi.com/v1/current.json” params = { “key”: API_KEY, “q”: city } async with aiohttp.ClientSession() as session: async with […]