Category : bots

why is this command not working? like what should i do? @client.command(aliases = ["t"]) async def translate(ctx, lang_to, *,args): lang_to = lang_to.lower() if lang_to not in googletrans.LANGUAGES and lang_to not in googletrans.LANGCODES: await ctx.send("Invalid language to translate to") text = ‘ ‘.join(args) translator = googletrans.Translator() text_translated = translator.translate(text, dest=lang_to).text await ctx.send(text_translated) Source: Python..

Read more

i have a discord Bot, and the status of the discord bot is "Watching Members". (Screenshot: http://prnt.sc/12kkl2c) [schaut = watching] But i want a member counter in the status, like "Watching Members: 100". My Code: while True: await bot.change_presence(status=discord.Status.online, activity=discord.Activity(type=discord.ActivityType.watching, name="Members:")) await asyncio.sleep(10) await bot.change_presence(status=discord.Status.online, activity=discord.Activity(type=discord.ActivityType.watching, name="Members:")) await asyncio.sleep(10)“` What do i need to change ..

Read more