Topic: [eSixNotifier] A Telegram Bot that sends you newly posted Images from given tags

Posted under e621 Tools and Applications

What is Telegram?

It's an awesome Messanger (which is better then Whatsapp :3).

Features:

Pool Downloader

You can add multiple "Tag Agents", the Bot will look every 3-5 seconds on the tags. If something new is found it will send it to You.

So You will never miss an awesome Image from Your favourite artists!

To use this Bot click here: https://telegram.me/eSixNotifierBot

Will be added:

Updates:

02.06.19:
Update Time

Finished pool downloader.
You can now clear your favourite list.
Cleaned up menu.
Cleaned up some code.

11.08.17:
The bot is now more stable and should crash less, also a blacklist has appeared! Use /blacklist to see a small tutorial on how to use it.

19.08.17:
I have rewritten the Bot compleatly. It shoud run smoother and also 24/7 from now on.
If You have trouble with the Bot please contact me on Telegram @DerpyDoom

18.10.17:
Another complete rewrite of the bot, now using Buttons! And also, the Blacklist is working!
Any ideas or problems with the bot? Contact me on Telegram @DerpyDoom

24.10.17:
- The color coding aka formatting on Listing Agents should be fixed on larger lists. [ Reported by @abadbird ]
- The bot should now accept all kind of Tags, I have noticed that the API can give NULL integers which were not handled by the bot.

Updated

EDIT: These commands don't work anymore since they have been removed!

Small update, You can now get random images from given Tags,

Command: /random
Example: /random my_little_pony rating:s

By the way, if there are any suggestions then I'm open for them :3

Updated by anonymous

Just did /random male penis solo and it gave me a random SFW picture of a dragon...

Edit: Did it again, and it got the male and penis part, but the solo part failed.

Updated by anonymous

Faux-Pa said:
Just did /random male penis solo and it gave me a random SFW picture of a dragon...

Edit: Did it again, and it got the male and penis part, but the solo part failed.

The "random" command uses SFW and NSFW images, If you only want to see NSFW images just add rating:e to your tags :)

Updated by anonymous

SnoopyDerpy said:
The "random" command uses SWF and NSWF images, If you only want to see NSWF images just add rating:e to your tags :)

But wouldn't that count towards the 6-tag search limit? Will there ever be an SFW/NSFW switch? (Like /rating s or rating:e?)

Updated by anonymous

^ Well, I guess the program could keep on polling e621's randomizer until it returns an appropriately-rated image. That would provide the full 6 tags, but would be rather impolite to e621 IMO (and of course would introduce delays)

SnoopyDerpy said:
The "random" command uses SWF and NSWF images, If you only want to see NSWF images just add rating:e to your tags :)

Is English your second language? I wouldn't expect that particular mix up ("Safe Work For", "Not Safe Work For" rather than "Safe For Work" / "Not Safe For Work") otherwise.

Thought I should mention it because SWF is a file format supported by e621, and might be considered an image, so it's potentially confusing to talk about 'SWF images'.

Updated by anonymous

This is actually pretty amazing. It's surprisingly useful, good job mate! You may want to reduce the polling speed for the sake of E6's servers :)

Updated by anonymous

The bot is waiting 8 seconds before checking another user, it is also now running 24/7 so there shoudln't be any downtime anymore :)

I'll take a look into it to bypass the rating tag :P

Updated by anonymous

savageorange said:
^ Well, I guess the program could keep on polling e621's randomizer until it returns an appropriately-rated image. That would provide the full 6 tags, but would be rather impolite to e621 IMO (and of course would introduce delays)

Is English your second language? I wouldn't expect that particular mix up ("Safe Work For", "Not Safe Work For" rather than "Safe For Work" / "Not Safe For Work") otherwise.

Thought I should mention it because SWF is a file format supported by e621, and might be considered an image, so it's potentially confusing to talk about 'SWF images'.

Yes, english is my second langauge, sorry if there are some things that are not understandable :D

Updated by anonymous

I have rewritten the Bot compleatly. It should run smoother and also 24/7 from now on.
If You have trouble with the Bot please contact me on Telegram @DerpyDoom

Also: expect a lot of broken english, because skillz :D

Updated by anonymous

The Service is back up!

It should work fine now, if any bugs occour please write me a message c:

Updated by anonymous

New Update arrived:

It's now even more stable, and also a blacklist has appered!
Use /blacklist to see a small Tutorial on how to use it.

Updated by anonymous

Small reminder:

The blacklist is currently disabled, as I'm currently trying to fix an error that crashes the bot.

Updated by anonymous

Really cool and useful bot you made there :)

Is there any chance that we also could get group support? I really would love to add this bot to one of my groups.

Updated by anonymous

TomTheDragon said:
Really cool and useful bot you made there :)

Is there any chance that we also could get group support? I really would love to add this bot to one of my groups.

Thanks :P

And yes :) I am currently in the works of rewriting the bot compleatly, since I've never worked with Groups it will take a little while (because of permissions and stuff), but I'll try my best ;)

Updated by anonymous

I've once again compleatly rewritten the Bot.

It is now using Buttons! And, the Blacklist finally works flawlessly!
The blacklist works like the "Tag Agents", just add a Blacklist Agent, and you won't get any images containing the tag.

And please excuse me if you find any miss-spells since i'm not a native english talker :x

Updated by anonymous

I'm trying this out since I actually found Telegram Desktop (Windows, Mac, Linux ) this time around. It required my phone number, but Telegram's FAQ soothed my misgivings.

issues

Occasionally, the bot's response messages appear to time out, but interacting with the bot again seems to force the "missed" message to display (as well as the second response, if there is one).

The Add Blacklist Agent command does not accept tags after the first space, so complex blacklisting is not possible. See E621's Blacklist Help page for information, if needed. The Add Agents command does accept tag combinations.

I deleted blacklist agents 12, 15, and 16, and now when I click List Blacklist Agents, the agent numbering is 9, 10, 11, 18, 13, 14, 17, 19, 20... Strange that 18 inserted itself there.

Also, after adding all my blacklisted tags as best I could, I see the blacklist agent list lost its bold and color formatting after agent 44. The regular agent listing also loses that formatting around the 32nd listed agent.

Trying to add the following artists errored out: cavafly01, dragon-v0942, runsammya, washa, watermelon_(artist), wattchewant, zonkpunch, 赤井. They're primarily animators, yet jasonafex succeeded. Go figure. pienji and tres-apples also failed to register. Lastly, the_cherret_awaits and agalamt failed to register, but they went DNP. "Error: Ether e621 is down, or your tags are wrong. Please check or try again."

needs

It would be great if this system could accept complete lists in a single message/command/file upload for users who have long blacklists or who want to follow many artists (think 100+ for both), but that doesn't appear possible or at least there's no instructions for that and I don't know how. As it is, every tag must be registered, one agent at a time.

I'm under the impression this method of watching tags works best while the program is open or on some platform that accepts push messages, but I don't want Telegram Desktop's process always running unless I've manually launched it. That's a normal desire. I'm really hoping if I open the program in a week that I'll be updated with all the "messages" I missed alerting me to my watched artist's new art here on E621. Ideally, I'd have some service setting per-artist "bookmarks" or "New"/unseen flags, so when I finally get around to checking a favorite artist's new content a year since my last check I'll know exactly where I left off.

Updated by anonymous

Thank You for the amazing feedback!

Issues

Occasionally, the bot's response messages appear to time out, but interacting with the bot again seems to force the "missed" message to display (as well as the second response, if there is one).

I've already nodest that the Bot sends the Messages too fast so they are not in order. It's already fixed and will go Live with the next bigger Update.

The Add Blacklist Agent command does not accept tags after the first space, so complex blacklisting is not possible. See E621's Blacklist Help page for information, if needed. The Add Agents command does accept tag combinations.

Yes, this is because I wanted a simple quick Blacklist for the Users so they don't see what they don't want to see. It will be more Advanced in the next big Update.

I deleted blacklist agents 12, 15, and 16, and now when I click List Blacklist Agents, the agent numbering is 9, 10, 11, 18, 13, 14, 17, 19, 20... Strange that 18 inserted itself there.

The ID's are straight from the Database, not sorted or anything. But I can arrange that if it's prefered. The jump from 11 to 18 is because another user possibly added something to his/her blacklist.
ID's are global, the same is for normal Agent ID's. If you wait for a while and then add another agent, it might jump to a bigger number.

Also, after adding all my blacklisted tags as best I could, I see the blacklist agent list lost its bold and color formatting after agent 44. The regular agent listing also loses that formatting around the 32nd listed agent.

Hmm.. Thats strange, I'll look into that and hope I am able to fix that.

Trying to add the following artists errored out: cavafly01, dragon-v0942, runsammya, washa, watermelon_(artist), wattchewant, zonkpunch, 赤井. They're primarily animators, yet jasonafex succeeded. Go figure. pienji and tres-apples also failed to register. Lastly, the_cherret_awaits and agalamt failed to register, but they went DNP. "Error: Ether e621 is down, or your tags are wrong. Please check or try again."

I have also seen that some users are not able to add specific tags, so I'm already looking into this problem.

Needs

It would be great if this system could accept complete lists in a single message/command/file upload for users who have long blacklists or who want to follow many artists (think 100+ for both), but that doesn't appear possible or at least there's no instructions for that and I don't know how. As it is, every tag must be registered, one agent at a time.

As I mentioned above, this will be added in the next update.

I'm under the impression this method of watching tags works best while the program is open or on some platform that accepts push messages, but I don't want Telegram Desktop's process always running unless I've manually launched it. That's a normal desire. I'm really hoping if I open the program in a week that I'll be updated with all the "messages" I missed alerting me to my watched artist's new art here on E621. Ideally, I'd have some service setting per-artist "bookmarks" or "New"/unseen flags, so when I finally get around to checking a favorite artist's new content a year since my last check I'll know exactly where I left off.

Well Telegram is an Instant Messenger, it is available for Android, iOS, Linux and Windows.
If You download the mobile version You will be able to receive notifications.

If there is anything You don't understand, don't hesitate on asking again, since I am not a native english speaker it's harder for me :P

Updated by anonymous

24.10.17:
- The color coding aka formatting on Listing Agents should be fixed on larger lists. [ Reported by @abadbird ]
- The bot should now accept all kind of Tags, I have noticed that the API can give NULL integers which were not handled by the bot.

Updated by anonymous

I've encountered another bug which is already fixed.

If you now list your tags, and use "score:<" or "score:>", you will see "score:(greater-than)" or "score:(less-than)", but it wont affect the search.

Otherwise the bot would crash, and the formatting would be wrong.

Updated by anonymous

Telegram is experiencing a major connection problem in my area (Europe).
If the bot doesn't respond it's probably because the Telegram API is down.

Updated by anonymous

Update has been published. The menu has been cleaned up.

Extras and Settings will be available in the next update.

Updated by anonymous

Dythul said:
Not sure if this bot is still being updated, but if it is I have a small feature request.
Currently the bot only supplies a link to the full rez in this format:
http://static1.e621proxy.ru/data/8e/70/8e701de3b99403406876b76e7eec4e5e.png
Could you make it also add a link to the e621 page as well?
This format:
https://e621.net/post/show/1421456
If you can then thanks you rock! If not, oh well not a huge deal.

Yup, it is still being updated and running :P

I have planned to add settings for users so, sure I can do that :P
Thank you for your feature request :3

Updated by anonymous

I would be interested in using this, but the rate at which it's doing searches seems high. I don't want to put that much extra load on the servers, particularly because the tags that I'd use this for are the tags that rarely ever get posts in them.

I'd be happier if I could set it to do a once-a-day search, perhaps.

Updated by anonymous

Clawdragons said:
I would be interested in using this, but the rate at which it's doing searches seems high. I don't want to put that much extra load on the servers, particularly because the tags that I'd use this for are the tags that rarely ever get posts in them.

I'd be happier if I could set it to do a once-a-day search, perhaps.

The bot doesn't take more server stress on the site of e621, it's currently doing one request per second, at the moment it takes about an hour to go through the database. I may need to rethink my current solution if the bot gets even bigger :D

So no worries, you can use it :P

Updated by anonymous

SnoopyDerpy said:
The bot doesn't take more server stress on the site of e621, it's currently doing one request per second, at the moment it takes about an hour to go through the database. I may need to rethink my current solution if the bot gets even bigger :D

So no worries, you can use it :P

P.S. If you just want to keep up to date with posts that have changed since a specific point, you can do so by using the change field that is on every post.

The search syntax for this is change:>14170036 order:change No, I don't know why this isn't documented, I'll make sure to fix that soon.

This means that you never have to run any tag searches at all, and you can do all of the filtering on your end, which would be much appreciated, not to mention that if you request that every minute, you're still giving people almost instant results. I'd much prefer that over the current system or running searches once a second forever. It's really easy to say that your bot doesn't cause stress on the servers even though it actually accounts for about 3% of all searches per day, which is quite significant for a single party.

Updated by anonymous

I'll take a look at the change syntax. 3% is quite a lot :o

Hopefully it didn't cause any problems on the server side :x
And I already sort of started internal tag management so it doesn't load e621 up so much. The change prefix definately helps so a huge thanks for that :P

I will try to implement that as quick as possible, because as you've already said: it also benefits the users of the bot^^

Updated by anonymous

Added a new Menu, and a Favourite function, if you like an image and you want to save it, just fav it!

Updated by anonymous

Update Time

Finished pool downloader.
You can now clear your favourite list.
Cleaned up menu.
Cleaned up some code.

Updated by anonymous

How do you actually add tags though? Just copy and paste the link or?

Updated by anonymous

Bara-King said:
How do you actually add tags though? Just copy and paste the link or?

I just found out that something went wrong in the update, seems like new users can't be added anymore. Normally you add the tags just by naming them, without the link.

Since the bot didn't add you to the db it probably also didn't respond. (Will fix this shortly)

EDIT:

Bug fixed, You can now use the Bot. Just type /start again.

Updated by anonymous

SnoopyDerpy said:
I just found out that something went wrong in the update, seems like new users can't be added anymore. Normally you add the tags just by naming them, without the link.

Since the bot didn't add you to the db it probably also didn't respond. (Will fix this shortly)

EDIT:

Bug fixed, You can now use the Bot. Just type /start again.

Alrighty, Thank you!

Updated by anonymous

Update

Users that are not using the bot will be notified after 90 days of inactivity.

When that happens the user has 14 days to respond to the bot, otherwise the account and all data will be removed from the database.

This is to prevent the bot from slow down because of inactive users.

Updated by anonymous

WebM's are now being converted to mp4, so you can directly enjoy your dose of art in a nice quality directly on telegram :3

Updated by anonymous

Just pushed another update.

Patrons are being ignored on the 90 day afk checkup.

Image reverse search is now available, just send the bot an image and it will try to find it here on e621. (Using iqdb.harry.lu)

Updated by anonymous

The bot has been partially updated to the new api.

Everything "should" work, I'll still have to do some cleanup tho!

Seems like this bot and all others like it have simultaneously stopped functioning. Did something change in the site's code?

bitWolfy

Former Staff

shagsterp said:
Seems like this bot and all others like it have simultaneously stopped functioning. Did something change in the site's code?

The site's API remained relatively unchanged for the past year.
It could be a change on Telegram's side that broke it.

Yeah, I was using a different one (it used a slowpoke as its avatar) and it completely broke several days ago. I ended up migrating my tags-to-watch to an RSS program.

qwazzy said:
Yeah, I was using a different one (it used a slowpoke as its avatar) and it completely broke several days ago. I ended up migrating my tags-to-watch to an RSS program.

Apparently the data was lost in a fire (literally). It's working again now, even though the previous settings were lost.

On another note.. any idea who owns the slowpoke bot? (https://t.me/E621WatchBot)

  • 1