예제 #1
0
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')
예제 #2
0
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
예제 #3
0
파일: bot.py 프로젝트: tag20000001/cloudbot
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")