Commit Graph

59 Commits

Author SHA1 Message Date
Luc Didry e5e4938479
Improve local images randomness by using random.SystemRandom()
My bot @gracyimp@botsin.space gave me the same image twice this morning,
within a few seconds, so I asked myself how to improve the randomness.
Indeed, this allowed my bot to publish some images that never were
published!
2019-09-04 09:24:26 +02:00
Tristan Le Chanony d7287622b9 Improve unsplash mode 2019-01-07 13:50:35 +01:00
Luc Didry cc3cbd2fe7
Add unsplash-random source
Fetches a random image from unsplash and toot it with author's attribution
2019-01-06 14:55:19 +01:00
Luc Didry 97b2c6b01e
Lintings changes
1. replace tabs by spaces
2. align assignations
3. no trailing spaces/tabs
4. put a re.compile outside a function, to make it compiled one time
   only
2018-11-20 22:16:08 +01:00
Dryusdan 320c7056d0 Mettre à jour 'bot.py' 2018-08-18 01:16:37 +02:00
Dryusdan d9ef0dc3af Resize image (because mastodon not accept big picture) 2018-08-18 00:40:21 +02:00
Dryusdan fde735c88a correct respond in thread #10 2018-06-23 21:11:04 +02:00
Dryusdan a5633e5c18 select image recursive folder #4 2018-06-23 00:58:57 +02:00
Dryusdan 0b27b154b7 add research on multiple folder 2018-06-22 23:38:22 +02:00
Dryusdan 8e7f69ecc7 add distant image #3 2018-06-22 22:08:06 +02:00
Dryusdan 8fc886351f make blacklist #8 2018-06-22 18:18:51 +02:00
Dryusdan 3d28bcc9de check if account is bot #9 2018-06-22 17:54:37 +02:00
Dryusdan ea6f6e9fa3 add hour limiter #7 2018-06-22 17:41:57 +02:00
Dryusdan cb15c9a4b4 add limiter #7 2018-06-22 07:43:48 +02:00
Dryusdan 69355227b6 correction of mask image on a toot 2018-06-22 07:36:09 +02:00
Dryusdan 1e35632ede add limiter 2018-06-21 22:52:04 +02:00
Dryusdan 7896a368b0 correct always hide picture 2018-06-21 22:27:20 +02:00
Dryusdan 7adf21fe65 replace wrong parameter by good (logic) 2018-06-21 21:49:52 +02:00
Dryusdan 0816a66da3 Configuration in config file 2018-06-21 20:38:11 +02:00
Dryusdan a7da455862 use config file 2018-06-21 14:57:04 +02:00
Dryusdan 011d5b4964 nevermind, "<" in python is not strict 2018-06-21 14:05:45 +02:00
Dryusdan 20d7e480c1 add anti ddos issue 2018-06-21 13:56:51 +02:00
Dryusdan d24802f044 correct answer toot 2018-06-19 22:55:49 +02:00
Dryusdan 042eacd004 correct newbe mistake 2018-06-19 22:38:08 +02:00
Dryusdan 520793050c replace all public post by unlisted post 2018-06-19 22:26:14 +02:00
Dryusdan 9ea87a8022 add python env && correct some bug 2018-06-19 22:21:27 +02:00
Dryusdan df538524b5 remove debug tools 2018-06-19 22:18:28 +02:00
Dryusdan 16b83665a1 finish streaming 2018-06-19 22:06:59 +02:00
Dryusdan 02b34b8012 try to correct stream bug 2018-06-18 21:27:50 +02:00
Dryusdan 983aaf78d2 try to start listening 2018-06-18 17:42:27 +02:00
Dryusdan 92458ab1f8 temp save 2018-06-18 15:59:43 +02:00
Dryusdan cf27c6679a add missing function 2018-06-18 13:05:56 +02:00
Dryusdan 3656583155 add missing comma 2018-06-18 13:05:02 +02:00
Dryusdan adee037bb5 sepearate config step and main step 2018-06-18 13:04:08 +02:00
Dryusdan 71d09730a4 correct some bot problem 2018-06-18 12:55:03 +02:00
Dryusdan 08a4a85a27 add dot before each extension 2018-06-18 12:50:58 +02:00
Dryusdan 65f120a07c correct some bot problem 2018-06-18 12:03:15 +02:00
Dryusdan 1b040e40e6 correct some bot problem 2018-06-18 11:58:11 +02:00
Dryusdan 09fb18b765 correct some bot problem 2018-06-18 11:53:20 +02:00
Dryusdan 0d427aefda remove dot 2018-06-18 11:43:04 +02:00
Dryusdan b8593652cf try to beautifer this code 2018-06-18 11:38:30 +02:00
Dryusdan b8c0c0108c remove streaming usage 2018-05-17 11:42:16 +02:00
Dryusdan fac7fd134f not working 2018-05-17 11:22:47 +02:00
Dryusdan 5537cc26bf Not working >< 2018-05-17 11:00:10 +02:00
Dryusdan 6041302136 Not working >< 2018-05-17 09:58:23 +02:00
Dryusdan 2af28e1062 temp git 2018-05-17 09:42:02 +02:00
Dryusdan f3ca654561 remove useless cosntant 2018-05-17 09:20:45 +02:00
Dryusdan 4c449615ba Mettre à jour 'bot.py' 2018-05-17 09:19:24 +02:00
Dryusdan 3b7bd14def change log level to INFO 2018-05-16 16:34:32 +02:00
Dryusdan 519aca1c91 make bot.py executable 2018-05-16 16:31:03 +02:00