From ffe2f910e8d17f6c60ead41c7e67cdc2dc65d8ff Mon Sep 17 00:00:00 2001 From: Suwako Moriya Date: Wed, 27 Feb 2019 03:06:57 +0100 Subject: [PATCH] [fractale module] Updated fractals names --- modules/fractale.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/fractale.py b/modules/fractale.py index f4269d2..dfb12e2 100644 --- a/modules/fractale.py +++ b/modules/fractale.py @@ -57,12 +57,19 @@ class MainClass(): if len(args)>2 and int(args[2])<=20: iterations=int(args[2]) await self.client.loop.run_in_executor(ThreadPoolExecutor(), fig.blanc_manger,*((1000, 1000), (4000, 4000), iterations)) - elif args[1].lower()=="von_koch" : + elif args[1].lower()=="von_koch_curve_flake" : iterations=5 if len(args)>2 and int(args[2])<=7: iterations=int(args[2]) await self.client.loop.run_in_executor(ThreadPoolExecutor(), fig.von_koch_curve_flake,*((2500, 2500), 2000, iterations)) - + elif args[1].lower()=="von_koch_curve" : + iterations=5 + if len(args)>2 and int(args[2])<=7: + iterations=int(args[2]) + await self.client.loop.run_in_executor(ThreadPoolExecutor(), fig.von_koch_curve,*((0, 2500), (5000,2500), iterations)) + else: + await self.modules['help'][1].send_help(message.channel, self) + return im.save(tmpstr) await message.channel.send(file=discord.File(tmpstr)) os.remove(tmpstr)