NATION

PASSWORD

Agadar's Telegrammer (updated August 16th, '20)

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
Baconbacon123
Secretary
 
Posts: 26
Founded: Nov 01, 2013
Ex-Nation

Postby Baconbacon123 » Sat Dec 30, 2017 7:01 pm

Agadar wrote:Version 1.5.0 has been released. Check the details in the changelog on the releases page.

If I set it to send to 1 new nation and 1 refounded nation and then turned on run indefinitely, would it continuously alternate sending between new and refounded nations?

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Sat Dec 30, 2017 7:50 pm

Baconbacon123 wrote:
Agadar wrote:Version 1.5.0 has been released. Check the details in the changelog on the releases page.

If I set it to send to 1 new nation and 1 refounded nation and then turned on run indefinitely, would it continuously alternate sending between new and refounded nations?


Version 1.5 doesn't allow you to enter numbers for new nations and refounded nations: instead, the corresponding filters simply get as much recipients as possible, which in the case of new nations is always the 50 latest and in the case of refounded has in my experience always been between 20-40.

You can approximate alternation by simply selecting those two filters and then running indefinitely.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Baconbacon123
Secretary
 
Posts: 26
Founded: Nov 01, 2013
Ex-Nation

Postby Baconbacon123 » Mon Jan 01, 2018 6:58 pm

Hey, I'm having a Java issue when I use the embassies of region filter.
Image

Any suggestion for how to prevent the error?

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Jan 01, 2018 9:51 pm

Baconbacon123 wrote:Hey, I'm having a Java issue when I use the embassies of region filter.

Any suggestion for how to prevent the error?


Heya, Bacon. The issue you're having is a result of your machine not allocating enough memory for Java applications to handle the massive nations dump file, which is needed for the filter you've selected. A work-around is to use one of the solutions when you Google for 'increase java heap space'. If that fails, then you can try it on a machine with better specs.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Wings of Amnesty
Lobbyist
 
Posts: 14
Founded: Feb 09, 2018
Moralistic Democracy

Postby Wings of Amnesty » Fri Feb 09, 2018 5:52 pm

Question.
https://gyazo.com/94b3fa3fef385cc4c34407ba0b53eeea

This means that it'll queue them all, and then send them all at once, right? Or how does that work?

Ransium wrote:If being dirty minded was against site rules I'd be DOS.
Hatterleigh wrote:Sandwiches are a social construct.
Last Plains wrote:I've been given limitless power and I'm in a bad mood.
The New California Republic wrote:Nietzsche is just laughable, it reads like tabloid trash.
I'm a female Tamale cripple with snark and a lewd attitude, my dude.
I own Ikuisuus, and don't take kindly to people who TG me telling me how to run it.

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Sun Feb 11, 2018 9:14 am

Wings of Amnesty wrote:Question.
https://gyazo.com/94b3fa3fef385cc4c34407ba0b53eeea

This means that it'll queue them all, and then send them all at once, right? Or how does that work?


It's queued them all and will then go through them one by one, as NationStates dictates there must be a certain amount of time between each telegram sent via the API.

Specifically, 30 seconds for normal telegrams and 180 seconds for recruitment telegrams.

Note that the 'estimated duration' is an ideal prediction. It will likely be less, seeing as many recipients block telegrams and my telegrammer automatically skips those.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Jamadlenter
Political Columnist
 
Posts: 3
Founded: Sep 29, 2016
New York Times Democracy

Need Help

Postby Jamadlenter » Sun Feb 25, 2018 11:03 am

Hi I just receive my Key , but dont know how to use it can someone guide me on how to do this first time.

User avatar
Phydios
Minister
 
Posts: 2567
Founded: Dec 06, 2014
Left-Leaning College State

Postby Phydios » Sun Feb 25, 2018 11:48 am

Jamadlenter wrote:Hi I just receive my Key , but dont know how to use it can someone guide me on how to do this first time.

Agadar wrote:Before you use this program, make sure you're familiar with the Telegrams API. You should know how to obtain a Client Key, and how to create a telegram template. Once you've obtained a Client Key, a Telegram Id, and a Secret Key, you're ready to start using this program.

If you're looking for a guide on how to obtain the keys and a Telegram Id, check out Ever-Wandering Souls' Simple Guide to Sending Telegrams via API!
If you claim to be religious but don’t control your tongue, you are fooling yourself, and your religion is worthless. Pure and genuine religion in the sight of God the Father means caring for orphans and widows in their distress and refusing to let the world corrupt you. | Not everyone who calls out to me, ‘Lord! Lord!’ will enter the Kingdom of Heaven. Only those who actually do the will of my Father in heaven will enter. On judgment day many will say to me, ‘Lord! Lord! We prophesied in your name and cast out demons in your name and performed many miracles in your name.’ But I will reply, ‘I never knew you. Get away from me, you who break God’s laws.’
James 1:26-27, Matthew 7:21-23

User avatar
Jamadlenter
Political Columnist
 
Posts: 3
Founded: Sep 29, 2016
New York Times Democracy

Postby Jamadlenter » Mon Feb 26, 2018 7:52 am

Yes I 've already obtain my client key and everything that's required. How do I use the program.

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Feb 26, 2018 11:45 am

Jamadlenter wrote:Yes I 've already obtain my client key and everything that's required. How do I use the program.


What part of the application are you having trouble with?
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Jamadlenter
Political Columnist
 
Posts: 3
Founded: Sep 29, 2016
New York Times Democracy

Postby Jamadlenter » Wed Feb 28, 2018 9:58 am

I'm having a problem finding the application and getting stated. If its possible can you guide on the steps on doing it .

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Wed Feb 28, 2018 2:36 pm

Jamadlenter wrote:I'm having a problem finding the application and getting stated. If its possible can you guide on the steps on doing it .


How are you not finding the application?
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Mar 12, 2018 2:55 pm

Version 1.6.0 has been released and is ready for testing! If you find any bugs, please report them.

Link to download: https://github.com/Agadar/NationStates- ... ag/v.1.6.0
Direct download: https://github.com/Agadar/NationStates- ... -1.6.0.jar

Changelog:
- Added new 'options' menu and moved the existing 'run indefinitely' option to it;
- Added an option for refreshing the recipients after every sent telegram (which is for example useful for ensuring your recruitment telegrams are sent to the newest of nations);
- Added an option for hiding recipients that were skipped from the output box;
- Added an option for automatically starting sending telegrams on application launch;
- Added an option for launching the application minimized;
- The 'from region' value can now also be supplied for campaign telegrams (previously you could only supply it for recruitment telegrams);
- Vastly improved the speed and reduced the memory usage of recipient filters that rely on data from the daily dump files.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Omnum
Attaché
 
Posts: 76
Founded: Sep 21, 2017
Ex-Nation

Postby Omnum » Tue Apr 03, 2018 12:48 am

Hi there!

Thanks for making this public - I've just set up a recruitment campaign. Will this continue even if I shut java?
Sick of the blatant propaganda on all the Omnan government websites? Check out this list of
Independent Media Sources Reporting About Omnum:


The Economist Magazine | Rep. Ulfred's vehemently anti-Omnan rhetoric is not helping anyone (o.p. November 7, 2018)

Gaiapedia | Omnum [UNDERGOING RECONSTRUCTION]


Praise H̷̢̺͈͇͚͖̫͇̜̮̍i͊ͩ̚͏̶̥̜̙͡m̷͕̱̠̹̯͙͑͋ͧͬ͋ͭ͜͠.͕̞͉̖̜̠͊̅̍ͬ̑̑ͣ

User avatar
Imperium Anglorum
GA Secretariat
 
Posts: 12655
Founded: Aug 26, 2013
Left-Leaning College State

Postby Imperium Anglorum » Tue Apr 03, 2018 8:30 am

Omnum wrote:Thanks for making this public - I've just set up a recruitment campaign. Will this continue even if I shut java?

No.

Author: 1 SC and 56+ GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and InfoEurope
GenSec (24 Dec 2021 –); posts not official unless so indicated
Delegate for Europe
Elsie Mortimer Wellesley
Ideological Bulwark 285, WALL delegate
Twice-commended toxic villainous globalist kittehs

User avatar
Baconbacon123
Secretary
 
Posts: 26
Founded: Nov 01, 2013
Ex-Nation

Postby Baconbacon123 » Wed Jun 06, 2018 6:52 pm

Hi Agadar, I have a question about the way the program creates its telegram queue. If I have the filters: +New World Assembly members, +World Assembly Members; will the program give priority to a nation in the New WA member group, or will it send to every nation in a random order?

If this isn't something the program does already, then it would be a very good addition for a future update.

User avatar
Volcanu
Diplomat
 
Posts: 531
Founded: Feb 28, 2018
Ex-Nation

Postby Volcanu » Wed Jun 06, 2018 6:53 pm

Ooh, could be useful
Volcanu is a highly volcanic nation.

F is for fire that burns down the whole town
U is for uranium... BOMBS!
N is for no survivors

Member of Greater Olympus- A realistic region with an original and detailed map, with a fun RP community. Come check us out.

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Thu Jun 07, 2018 12:52 am

Baconbacon123 wrote:Hi Agadar, I have a question about the way the program creates its telegram queue. If I have the filters: +New World Assembly members, +World Assembly Members; will the program give priority to a nation in the New WA member group, or will it send to every nation in a random order?

If this isn't something the program does already, then it would be a very good addition for a future update.


Bacon, currently the program sends the telegrams in seemingly random order. 'Seemingly', because under the hood it is not random, but due to the way the set of recipients is built it might appear so to the user.

I like the idea of introducing an option that allows the user to choose between 'random' and 'in order', though. I invite you to make an issue for it over at the repository (https://github.com/Agadar/NationStates- ... ent/issues).
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Zone 71
Envoy
 
Posts: 226
Founded: Apr 20, 2018
Ex-Nation

Postby Zone 71 » Mon Jul 23, 2018 7:47 am

Hey. I'm interested in using this API telegrammer, but I'm completely foreign to running programs through Java or Github, and even moreso with programming in general.

Which files should I download from Github, and how do I open the application through Java?

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Jul 23, 2018 1:25 pm

Zone 71 wrote:Hey. I'm interested in using this API telegrammer, but I'm completely foreign to running programs through Java or Github, and even moreso with programming in general.

Which files should I download from Github, and how do I open the application through Java?


Hello Zone.

You'll first want to make sure you have Java installed. You can download the installer here: https://java.com/nl/download/.

After that, you will be able to run my telegrammer simply by double-clicking the .jar file, which you can download here: https://github.com/Agadar/NationStates- ... -1.6.0.jar.

Let me know how that works out for you.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Zone 71
Envoy
 
Posts: 226
Founded: Apr 20, 2018
Ex-Nation

Postby Zone 71 » Tue Jul 24, 2018 6:44 am

Agadar wrote:
Zone 71 wrote:Hey. I'm interested in using this API telegrammer, but I'm completely foreign to running programs through Java or Github, and even moreso with programming in general.

Which files should I download from Github, and how do I open the application through Java?


Hello Zone.

You'll first want to make sure you have Java installed. You can download the installer here: https://java.com/nl/download/.

After that, you will be able to run my telegrammer simply by double-clicking the .jar file, which you can download here: https://github.com/Agadar/NationStates- ... -1.6.0.jar.

Let me know how that works out for you.

I just downloaded the two files. The client opened up successfully, so it's looking good so far. Thank you so much for your help, Agadar. And thank you for this awesome API program.

Update: It looks like the program is working. Again, thank you so much Agadar.
Image
Last edited by Zone 71 on Tue Jul 24, 2018 6:50 am, edited 1 time in total.

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Tue Jul 24, 2018 2:08 pm

Zone 71 wrote:
Agadar wrote:
Hello Zone.

You'll first want to make sure you have Java installed. You can download the installer here: https://java.com/nl/download/.

After that, you will be able to run my telegrammer simply by double-clicking the .jar file, which you can download here: https://github.com/Agadar/NationStates- ... -1.6.0.jar.

Let me know how that works out for you.

I just downloaded the two files. The client opened up successfully, so it's looking good so far. Thank you so much for your help, Agadar. And thank you for this awesome API program.

Update: It looks like the program is working. Again, thank you so much Agadar.
Image


Happy to help.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Zone 71
Envoy
 
Posts: 226
Founded: Apr 20, 2018
Ex-Nation

Postby Zone 71 » Sun Jul 29, 2018 8:46 am

I'm sorry to bother you again, but the program isn't able to send telegrams any more. It worked spectacularly for a couple of days, but now, whenever I try to send a telegram, the error message pops up, "NationStates API returned: '403 Client Not Registered For API'." Is there something wrong with a client key or anything like that?

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 27796
Founded: Dec 16, 2003
Capitalizt

Postby Frisbeeteria » Sun Jul 29, 2018 9:08 am

Zone 71 wrote:"NationStates API returned: '403 Client Not Registered For API'." Is there something wrong with a client key or anything like that?

Probably. We had some failures in the API key table, and that's the error message you get when your key is missing. Reapply via GHR for your key, please. Include your nation name, region name, and reason for the key.

User avatar
Zone 71
Envoy
 
Posts: 226
Founded: Apr 20, 2018
Ex-Nation

Postby Zone 71 » Sun Jul 29, 2018 9:28 am

Frisbeeteria wrote:
Zone 71 wrote:"NationStates API returned: '403 Client Not Registered For API'." Is there something wrong with a client key or anything like that?

Probably. We had some failures in the API key table, and that's the error message you get when your key is missing. Reapply via GHR for your key, please. Include your nation name, region name, and reason for the key.

Thank you.

PreviousNext

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Bhadeshistan, Butrinto, Celeste, Civaliana, Franners, Planetary Soviet Socialist Republics, Zandos

Advertisement

Remove ads