PDA

View Full Version : Telegram Bot - EQ notification in your phone!



Shelion
Aug 14, 2016, 07:39 AM
What is Telegram? (ignore if you already have Telegram)

Telegram is a cloud-based mobile and desktop messaging app. It is multi-platform and fast, available in iPhone/iPad, Android, Windows Phone, PC/Mac/Linux, macOS, or even web browser!

Telegram is a lot of fun to chat with your friends, it supports GIF, FREE stickers that you can submit on your own, etcetera including bot.

Telegram Bots are simply Telegram accounts operated by software – not people – and they'll often have AI features. They can do anything – teach, play, search, broadcast, remind, connect, integrate with other services, or even pass commands to the Internet of Things.
You can play dice, play Werewolf, ask Magic Conch Shell, set up poll/vote in a group, play battleship with stranger with bot. The possibility is endless!



The bot I created is simply a bot that gives you an upcoming emergency quest relayed from PSO2es, helped by existing servers. The emergency quest notification is provided by pso2.acf.me.uk . I merely create the bot to relay information.

Screenshot:
see attachment

Visit this bot here :
https://telegram.me/PSO2EQBot

Cons : can only check EQ for ship02

Upcoming feature :
- Add EQ specific subscription

Feel free to ask anything by replying!

Sirius-91
Aug 14, 2016, 11:39 AM
The bot I created is simply a bot that gives you an upcoming emergency quest relayed from PSO2es, helped by existing servers. The emergency quest notification is provided by pso2.acf.me.uk . I merely create the bot to relay information.
Did you even ask permission from ACF if you could use his server bandwidth?

Shelion
Aug 15, 2016, 07:20 AM
Did you even ask permission from ACF if you could use his server bandwidth?

Every PSO2 proxy servers uses the same method to check EQ like I use. I merely edited cyberkitsune's open source code for my own server and figured I can integrate telegram bot in my server. So every other proxy also use the server bandwidth as I do.

edited: wording

Sirius-91
Aug 15, 2016, 12:30 PM
Every PSO2 proxy servers uses the same method to check EQ like I use. I merely edited cyberkitsune's open source code for my own server and figured I can integrate telegram bot in my server. So every other proxy also use the server bandwidth as I do.

edited: wording
Because they have permission, what you're doing is the equivalent of stealing.

Shelion
Aug 15, 2016, 06:59 PM
Because they have permission, what you're doing is the equivalent of stealing.

So I need permission to run an open source PSO2 proxy server's plugin?

Sirius-91
Aug 15, 2016, 08:18 PM
So I need permission to run an open source PSO2 proxy server's plugin?
Just because it's open source doesn't mean you can take someone else's bandwidth without permission.

He doesn't mind if you use it, but he just wishes people would ask instead of just using without permission.

KazeSenoue
Aug 16, 2016, 02:11 AM
Did you even ask permission from ACF if you could use his server bandwidth?

ACF doesn't give a shit. I used to use his server for my bot without permission and our only exchange of words was him congratulating me.

@OP
You should use flyergo's api if you want notifications for all ships.

acffordyce973
Aug 16, 2016, 05:08 AM
ACF doesn't give a shit. I used to use his server for my bot without permission and our only exchange of words was him congratulating me.

It was a sarcastic remark. I'm sorry you never understood it back then.

Shelion
Aug 16, 2016, 06:25 AM
ACF doesn't give a shit. I used to use his server for my bot without permission and our only exchange of words was him congratulating me.

@OP
You should use flyergo's api if you want notifications for all ships.

Cool, where do I find his API? I tried searching for it and didn't find it


Just because it's open source doesn't mean you can take someone else's bandwidth without permission.

He doesn't mind if you use it, but he just wishes people would ask instead of just using without permission.

https://github.com/cyberkitsune/PSO2Proxy/issues/194

KazeSenoue
Aug 16, 2016, 11:50 PM
It was a sarcastic remark. I'm sorry you never understood it back then.

Can't exactly say I'm surprised. Either way, I'm glad I moved on.


Cool, where do I find his API? I tried searching for it and didn't find it

http://pso2emq.flyergo.eu/api/v2/

Yurashina
Aug 17, 2016, 12:02 AM
Just because it's open source doesn't mean you can take someone else's bandwidth without permission.

He doesn't mind if you use it, but he just wishes people would ask instead of just using without permission.
For just remind you, a opensource project doesn't need any permissions if you run that for not professional domain.

download the opensource project take always a bandwidth: you're not a god to decide if yes or no for other.

more info on Git ilself: https://github.com/cyberkitsune/PSO2Proxy

AGPL licence: https://www.gnu.org/licenses/agpl-3.0.fr.html

Flyergo
Aug 17, 2016, 02:06 AM
GitHub lead me here...


@OP
You should use flyergo's api if you want notifications for all ships.
True that. If you want you can use it, like I already told KazeSenoue, too.

I am not really concerned about how much people use it currently and my traffic is unlimited. :-D

And as long if you aren't polling http://pso2emq.flyergo.eu/api/v2/ every second I see no problems.
I personally recommend to check every 1-5 minutes, since it internally checks Twitter about the same and caches the data.

(The Twitter API itself is restricted to 15 calls per 15 minutes. Calling it too often will result in an HTTP 429 “Too Many Requests” response code. https://dev.twitter.com/rest/public/rate-limiting)

I check the websites and APIs statistics every now and then.
There are currently about 3m calls per month (about 1.2 calls every second) and no signs of any issues or reported problems.
About 15-20% of those calls are PSO2Proxies, bots or custom developed tools.
If you develop a tool/bot that checks it every minute then it adds 43200 calls to the monthly statistic, which is still less against the 3m calls.

The only thing I might maybe ask people/developers who use it is to provide a proper User-Agent in the HTTP-Header (https://en.wikipedia.org/wiki/User_agent) which isn't "Unknown" or some Python-Lib ^^;

40091

But currently there is no need for that and if I am ever going to change it, I will tell so on http://pso2emq.flyergo.eu and tell the people who I know that use it.

Shelion
Aug 20, 2016, 03:15 AM
http://pso2emq.flyergo.eu/api/v2/

Thanks KazeSenoue and Flyergo! I will try to improve my bot when I have time.

Yurashina
Aug 21, 2016, 04:19 AM
Shelion: your EQ bot is good, but the first get all EQ of all ship right? Why not adding a command to select which user want ;)