This repository was archived by the owner on Sep 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
make custom functions
emlo40 edited this page Aug 23, 2021
·
1 revision
to make custom functions just make a customfunc.py in the same directory, when ever the program starts it will check if it exists and will load it have fun and code
Why make a custom function?
Simple using the base commands you will only get soo far if you combine them in a new function you can do a lot more that's how I made the spin and rainbow command
example:
async def spin(websocket,x,y,s):
await mdmv(websocket,0.2,False,x,y,90,s)
time.sleep(0.1)
await mdmv(websocket,0.2,False,x,y,180,s)
time.sleep(0.1)
await mdmv(websocket,0.2,False,x,y,270,s)
time.sleep(0.1)
await mdmv(websocket,0.2,False,x,y,360,s)
time.sleep(0.1)
if you leave x y and s in the commands and function the program will use the models current x y S(s = Size)