mirror of
https://github.com/cquest/tootbot.git
synced 2025-05-28 03:25:20 +00:00
support langauage selection
This commit is contained in:
parent
e58dc043cf
commit
e6f4b7e6a8
@ -68,6 +68,11 @@ if len(sys.argv) > 7:
|
|||||||
else:
|
else:
|
||||||
delay = 0
|
delay = 0
|
||||||
|
|
||||||
|
if len(sys.argv) > 8:
|
||||||
|
lang = sys.argv[8]
|
||||||
|
else:
|
||||||
|
lang = 'fr'
|
||||||
|
|
||||||
source = sys.argv[1]
|
source = sys.argv[1]
|
||||||
mastodon = sys.argv[2]
|
mastodon = sys.argv[2]
|
||||||
passwd = sys.argv[3]
|
passwd = sys.argv[3]
|
||||||
@ -359,7 +364,7 @@ else:
|
|||||||
media_ids=toot_media,
|
media_ids=toot_media,
|
||||||
sensitive=False,
|
sensitive=False,
|
||||||
visibility='unlisted',
|
visibility='unlisted',
|
||||||
spoiler_text=None)
|
spoiler_text=None, language=lang)
|
||||||
except:
|
except:
|
||||||
print("delay")
|
print("delay")
|
||||||
time.sleep(30)
|
time.sleep(30)
|
||||||
@ -368,7 +373,7 @@ else:
|
|||||||
media_ids=toot_media,
|
media_ids=toot_media,
|
||||||
sensitive=False,
|
sensitive=False,
|
||||||
visibility='unlisted',
|
visibility='unlisted',
|
||||||
spoiler_text=None)
|
spoiler_text=None, language=lang)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
#break
|
#break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user