blob: 617b4aa66bf1796f3cfb232304c0ac904c471205 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from os import environ
from discord.ext.commands import Bot, Greedy, MemberConverter
from drutils import non_nullable
bot = Bot(command_prefix="!")
@bot.command()
async def converter_test(ctx, members: Greedy[non_nullable(MemberConverter)]):
await ctx.send('\n'.join(member.name for member in members))
if __name__ == '__main__':
bot.run(environ['TOKEN'])
|