async def on_ready(): print('I am online.') print('I am running as ' + bot.user.name + ',' 'with the ID:' + bot.user.id + ' and I am connected in ' + str(len(bot.servers)) + ' servers.' ' I am connected with ' + str(len(set(bot.get_all_members()))) + ' members')
async def dmall(ctx, content): for members in bot.get_all_members(): try: await members.send(content) await time.sleep(20) await ctx.message.delete() except: continue
async def on_ready(): print('I am online.') print('I am running as ' + bot.user.name + ',' 'with the ID:' + bot.user.id + ' and I am connected in ' + str(len(bot.servers)) + ' servers.' ' I am connected with ' + str(len(set(bot.get_all_members()))) + ' members') await bot.change_presence( game=discord.Game(name="lilcsz#5890 | c!helps", type=1)) print("Started")