NATION

PASSWORD

Agadar's Telegrammer (updated March 12th, '18)

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

Advertisement

Remove ads

User avatar
Baconbacon123
Lobbyist
 
Posts: 22
Founded: Nov 01, 2013
Capitalist Paradise

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: 7749
Founded: Dec 06, 2009
Corrupt 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.
Information Secretary of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Baconbacon123
Lobbyist
 
Posts: 22
Founded: Nov 01, 2013
Capitalist Paradise

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: 7749
Founded: Dec 06, 2009
Corrupt 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.
Information Secretary 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: 13
Founded: Feb 09, 2018
Capitalist Paradise

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: 7749
Founded: Dec 06, 2009
Corrupt 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.
Information Secretary 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: 2129
Founded: Dec 06, 2014
New York Times Democracy

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!
Romans 1:18-2:29, Ephesians 2:1-10
But God’s angry displeasure erupts as acts of human mistrust and wrongdoing and lying accumulate, as people try to put a shroud over truth. But the basic reality of God is plain enough. Open your eyes and there it is! | Those people are on a dark spiral downward. But if you think that leaves you on the high ground where you can point your finger at others, think again. Every time you criticize someone, you condemn yourself. | It’s a wonder God didn’t lose His temper and do away with the whole lot of us. Instead, immense in mercy and with an incredible love, He embraced us. He took our sin-dead lives and made us alive in Christ. He did all this on His own, with no help from us!

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: 7749
Founded: Dec 06, 2009
Corrupt 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?
Information Secretary 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: 7749
Founded: Dec 06, 2009
Corrupt 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?
Information Secretary of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Agadar
Powerbroker
 
Posts: 7749
Founded: Dec 06, 2009
Corrupt 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.
Information Secretary of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Omnum
Secretary
 
Posts: 37
Founded: Sep 21, 2017
Iron Fist Consumerists

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?
THIS MESSAGE HAS BEEN AUTHORISED BY AUTHORITY CODE OMGEA BLACK
Glory to the state.

(I'm alarmed by the number of people requiring clarification; this does not represent my political views.)

User avatar
Imperium Anglorum
Powerbroker
 
Posts: 8260
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 24 GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and Regional Records
Delegate for Europe
Out-of-character unless marked otherwise
Ideological Bulwark 285, WALL delegate

User avatar
Baconbacon123
Lobbyist
 
Posts: 22
Founded: Nov 01, 2013
Capitalist Paradise

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: 532
Founded: Feb 28, 2018
New York Times Democracy

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: 7749
Founded: Dec 06, 2009
Corrupt 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).
Information Secretary 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: 7749
Founded: Dec 06, 2009
Corrupt 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.
Information Secretary 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: 7749
Founded: Dec 06, 2009
Corrupt 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.
Information Secretary 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: 22928
Founded: Dec 16, 2003
Anarchy

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: August, The Thunder Drakon

Advertisement

Remove ads