Compare commits

...

3 Commits

Author SHA1 Message Date
Tuan ef100b8164 mediaremove.sh 3 years ago
Tuan a4ddb78126 mediaremove.sh 3 years ago
Tuan 9189153493 update readme 3 years ago
  1. 3
      .gitignore
  2. 7
      README.md
  3. 2
      cal.py
  4. 0
      cal.txt
  5. 0
      kafe
  6. 2
      kafeterya.py
  7. 5
      mediaremove.sh

3
.gitignore vendored

@ -3,6 +3,3 @@
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Bot harici dosyalari gormezden gel
cacheclear.sh

@ -1,4 +1,4 @@
# metu.life #
# metu.life botları #
Bu depo, [metu.life](https://metu.life) botlarının kaynak kodlarını barındırır.
@ -8,3 +8,8 @@ Bu depo, [metu.life](https://metu.life) botlarının kaynak kodlarını barınd
+ [akademik_bot@metu.life](https://metu.life/@akademik_bot)
- cal.sh takvim kesitini cal.txt dosyasına yazar
- cal.py içeriği platformda paylaşır
## Scriptler
+ mediaremove.sh
- Diğer mastodon temsillerinden gelen bir haftadan eski medyayı temizler

@ -1,7 +1,7 @@
from mastodon import Mastodon
mastodon = Mastodon(
access_token = 'top-secret',
access_token = 'LwtBGTgMZbUhDjCvd2_2tc4n6KQi5AkIrDnjwEUg9sM',
api_base_url = 'https://metu.life/'
)

@ -1,7 +1,7 @@
from mastodon import Mastodon
mastodon = Mastodon(
access_token = 'top-secret',
access_token = 'riY0Y4oyCIiHjEuNMSvEQTDKgT2gYsbTSAkeUpsG-Ps',
api_base_url = 'https://metu.life/'
)

@ -0,0 +1,5 @@
#!/bin/sh
# Remove locally cached copies of media attachments older than 7 days from other servers.
cd /home/mastodon/live
PATH=/home/mastodon/bin:/home/mastodon/.local/bin:/home/mastodon/.rbenv/plugins/ruby-build/bin:/home/mastodon/.rbenv/shims:/home/mastodon/.rbenv/bin:/usr/bin:/bin
RAILS_ENV=production bin/tootctl media remove --days 7 > log/media_remove.log 2>&1
Loading…
Cancel
Save