mirror of
https://github.com/sigmasternchen/MinervaBot
synced 2025-03-15 07:59:00 +00:00
140 char tweet limit
This commit is contained in:
parent
72dd6c076c
commit
9513b3b79e
1 changed files with 5 additions and 1 deletions
6
main.py
6
main.py
|
@ -132,7 +132,11 @@ if __name__ == "__main__":
|
|||
output = Popen(UPDATE_COMMANDS[command], shell=True, stdout=PIPE, stderr=STDOUT).stdout.read().decode("utf-8")
|
||||
if len(DESTINATION_ACCOUNTS):
|
||||
for username in DESTINATION_ACCOUNTS:
|
||||
api.update_status(status = (username + " " + command + COMMAND_NAME_SEPERATOR + output))
|
||||
text = (username + " " + command + COMMAND_NAME_SEPERATOR + output)
|
||||
while len(text) != 0
|
||||
api.update_status(status = text[:140])
|
||||
text = text[140:]
|
||||
|
||||
else:
|
||||
api.update_status(status = (command + COMMAND_NAME_SEPERATOR + output))
|
||||
|
||||
|
|
Loading…
Reference in a new issue