diff options
Diffstat (limited to 'examples/main.py')
-rw-r--r-- | examples/main.py | 16 |
1 files changed, 16 insertions, 0 deletions
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']) |