* Added main.py as main python file for bot
* Added config.py as config file (importing configs from it)
main
Edges 4 months ago
parent 28e3172bd7
commit ca8ee3f001

@ -0,0 +1,2 @@
instance = "Enter instance here (domain)"
mktoken = "Enter token here"

@ -0,0 +1,18 @@
from config import mktoken, instance
from misskey import Misskey
import time
from random import randint
mk = Misskey(instance, i=mktoken)
files = ["enter file_ids here"]
i = 4
while True:
newnote = mk.notes_create(text=f"Enter name here №{i}", file_ids=files)
print(newnote["createdNote"]["id"])
ttw = randint(1800, 7200)
print(f"Wait: {ttw}")
time.sleep(ttw)
i = i + 1
Loading…
Cancel
Save