Created
January 9, 2023 06:01
-
-
Save GrapeApple0/aed1f79e175a6691b81a600aa9681ea7 to your computer and use it in GitHub Desktop.
3hiraganabot.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| isDebug = False | |
| import random | |
| import time | |
| from misskey import Misskey | |
| def genHiraganas(): | |
| lst = "あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをんがぎぐげござじずぜぞだぢづでどばびぶべぼぱぴぷぺぽぁぃぅぇぉっゃゅょゎ!?" | |
| word = "" | |
| for i in range(3): | |
| word += lst[random.randrange(0,len(lst))] | |
| return word | |
| mk = Misskey("misskey.04.si", i="") | |
| while True: | |
| hiraganas = genHiraganas() | |
| msg = hiraganas; | |
| if isDebug: | |
| msg += ":debbuging now..." | |
| mk.notes_create(text=msg) | |
| time.sleep(60) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment