These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Z2s : Zkillboard to Slack

Author
Alyla By
#1 - 2015-06-27 13:06:26 UTC
Z2s is a simple perl script / bot which will parse your alliance Zkillboard and send it to any Slack channel

You can find the source code there : https://github.com/Ptitlaby/Z2s

You will want to edit several variables before starting :

Quote:
$alliance_ID : put your alliance ID
$slackURL : You need to put there the incoming webhook URL from Slack. You can create one on Slack in the Integrations menu (you need to be admin for it)
$slack_Channel : The channel where you want the bot to post your stuff
$timeout : The time between two checks


and finally, you could edit the line 225 to change the message replacing Exit Strategy by your alliance name

Feel free to post any comments or any suggestions Big smile
Dark Klotz
Take A Wish Foundation
CAStabouts
#2 - 2015-07-05 00:47:01 UTC
Is there anyway to modify this to work on a corporate level instead of alliance level?

Co-CEO - Virulent Resolve

Christy Cloud
The Forgotten Protocol
PURPLE HELMETED WARRIORS
#3 - 2015-07-06 12:16:44 UTC
Dark Klotz wrote:
Is there anyway to modify this to work on a corporate level instead of alliance level?


Modify line 10 of main.pl from

"my $alliance_Endpoint = "https://zkillboard.com/api/allianceID";"

to

"my $alliance_Endpoint = "https://zkillboard.com/api/corporationID";"

My Third Party Thread(╯°□°)╯︵ ┻━┻

Current Trades -

Selling 2 Travelfit Erebus 1 rigged 1 unrigged 85bil Ea

Selling 1 Rigged travelfit Avatar 86b

Xelfin Darlander
The Scope
Gallente Federation
#4 - 2015-09-07 21:21:24 UTC  |  Edited by: Xelfin Darlander
So I'm running into the problem where I run the following
'perl Z2s/main.pl'

And it just sits there with no output on screen and no posts to the Slack channel.

I'm not sure where to even begin troubleshooting this.

sudo doesn't help either

Running from Ubuntu server 14.04

Any help would be appreciated. I can also run from a Windows instance if that helps..

Thanks


EDIT - I was able to get this working by using a Windows instance using ActivePerl!
Alyla By
#5 - 2015-09-13 16:41:45 UTC
Xelfin Darlander wrote:
So I'm running into the problem where I run the following
'perl Z2s/main.pl'

And it just sits there with no output on screen and no posts to the Slack channel.

I'm not sure where to even begin troubleshooting this.

sudo doesn't help either

Running from Ubuntu server 14.04

Any help would be appreciated. I can also run from a Windows instance if that helps..

Thanks


EDIT - I was able to get this working by using a Windows instance using ActivePerl!

That's curious, I believe a library would be missing of something. Being the bad programmer I am, I never considered error cases since I didn't really think of publishing it :)

If you are interested in debugging it, I can send you some scripts to help troubleshot the issue and see where it's failing. May be you prefer to keep it running on Ubuntu Server. Mail me directly then, I'm barely on the forums :)