Browse Source

はじまりの大地

kiriban
miteruzo 3 months ago
commit
34bc80d31d
5 changed files with 36 additions and 0 deletions
  1. +3
    -0
      .gitignore
  2. +4
    -0
      .gitmodules
  3. +2
    -0
      account.sample.py
  4. +1
    -0
      ai
  5. +26
    -0
      main.py

+ 3
- 0
.gitignore View File

@@ -0,0 +1,3 @@
/__pycache__
/account.py
/connection.py

+ 4
- 0
.gitmodules View File

@@ -0,0 +1,4 @@
[submodule "ai"]
path = ai
url = https://git.miteruzo.com/miteruzo/nizika_broadcast
branch = main

+ 2
- 0
account.sample.py View File

@@ -0,0 +1,2 @@
USER_ID = 'deerjika-bot.bsky.social'
PASSWORD = 'xxxxxxxx'

+ 1
- 0
ai

@@ -0,0 +1 @@
Subproject commit 28f16ec1d6c0efa3fbb70190c203a361ba4b91a0

+ 26
- 0
main.py View File

@@ -0,0 +1,26 @@
import time
import sys

from atproto import Client

from ai.talk import Talk
import account


def main () -> None:
api = Client ()

api.login (account.USER_ID, account.PASSWORD)

while True:
api.send_post (Talk.main ('今Twitterに何か投稿するなら何て書く? '
'投稿する内容だけを引用符などでくくらず'
'そのまま出力して'))

time.sleep (3600)

pass


if __name__ == '__main__':
main (*sys.argv[1:])

Loading…
Cancel
Save