From fbd1f326d8a07ae7a3eb9871a254b85b2e4a79cf Mon Sep 17 00:00:00 2001 From: romangraef Date: Sun, 8 Sep 2019 21:41:01 +0200 Subject: i mean its kinda my own fault for releasing without testing --- examples/main.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/main.py (limited to 'examples/main.py') diff --git a/examples/main.py b/examples/main.py new file mode 100644 index 0000000..617b4aa --- /dev/null +++ b/examples/main.py @@ -0,0 +1,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']) -- cgit