parent
9880d446ca
commit
0444d952b5
@ -1,7 +1,6 @@
|
|||||||
# dummy module
|
# dummy module
|
||||||
import discord
|
import discord
|
||||||
import random
|
import random
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
|
||||||
|
|
||||||
import fractale.source.main
|
import fractale.source.main
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
@ -92,10 +91,8 @@ class MainClass():
|
|||||||
await self.send_fractal(message, ' '.join(args[1:]))
|
await self.send_fractal(message, ' '.join(args[1:]))
|
||||||
else:
|
else:
|
||||||
await self.modules['help'][1].send_help(message.channel, self)
|
await self.modules['help'][1].send_help(message.channel, self)
|
||||||
async def send_fractal(self, *args):
|
|
||||||
await self.client.loop.run_in_executor(ThreadPoolExecutor(), send_fractal_async, *args)
|
|
||||||
|
|
||||||
async def send_fractal_async(self, message, command):
|
async def send_fractal(self, message, command):
|
||||||
parsed_data=self.parse(command)
|
parsed_data=self.parse(command)
|
||||||
if parsed_data["Success"]:
|
if parsed_data["Success"]:
|
||||||
res=parsed_data["Result"]
|
res=parsed_data["Result"]
|
||||||
|
Loading…
Reference in New Issue
Block a user