async def weather(ctx, language, name): channel = ctx.author.voice.channel city = City(name) data = city.getData() if language == "en": await text2Speech(language, data, ctx, channel) elif language == "tr": data = city.getName() + " şehrinde hava " + str( city.convert(city.getTemp())) + "derece." await text2Speech(language, data, ctx, channel)
async def weather(ctx, city): city = City(city) strCity = city.getData() await ctx.send(strCity)