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.
123Next page
 

Dramiel - An EVE Discord Bot (NOW WITH A HOSTED OPTION)

First post
Author
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#1 - 2016-03-12 09:46:09 UTC  |  Edited by: Mr Twinkie
This is still in development and is probably buggy and may explode in a fire when run.

http://dram.shibdib.info/

If you want the bot to join your channel and have no need for auth just use https://discordapp.com/oauth2/authorize?&client_id=178608326970441728&scope=bot and authorize it. It will join your server then just do a "!help" in chat and it'll give you a list of commands it can do.

This bot enables corps and alliances to setup secure channels with SSO based auth. The bot will automatically assign roles and continuously check on the status of a character to ensure they should hold the roles that they have. This can also be setup to strictly enforce character names to help prevent any impersonation attempts.

Other features include a price check tool (any system), character lookup, corp/alliance mails and notifications posting, jabber ping sharing.


Credits
Karbowiak - For building the initial base of this bot that I have since sliced diced and completely broken to the point where nothing remains and helping me the whole time <3
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#2 - 2016-03-14 15:39:50 UTC
updated the wiki, should answer a lot of questions now.

Remember to post ideas and issues via the github issue ticket system
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#3 - 2016-03-17 18:40:07 UTC
This is in active development, be sure to do a git pull every once in awhile to stay up to date with fixes.
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#4 - 2016-03-19 09:29:03 UTC
Fixed the issue of sql injection, latest pull with include the fixes.

Make sure you do a "sudo apt-get install php5-mysqlnd"

Most won't need too as it comes standard in most php installs but it is now a requirement and the wiki has been updated to show the same.
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#5 - 2016-03-25 23:49:33 UTC
Just finished a siphon detection plugin
Dominic Fade
SniggWaffe
WAFFLES.
#6 - 2016-04-15 13:25:42 UTC
Is this integrated with the new Discord API system?

www.zapblap.com

Mr Twinkie
Dreddit
Test Alliance Please Ignore
#7 - 2016-04-19 01:36:54 UTC
Dominic Fade wrote:
Is this integrated with the new Discord API system?


Nope haven't had a chance to look into that at all yet
Katusa
Dreddit
Test Alliance Please Ignore
#8 - 2016-06-23 01:08:20 UTC
I'm having an issue with the bot. I keep getting errors with guzzlehttp.

PHP Warning:  Invalid argument supplied for foreach() in /var/www/EVE-Discord-Bot/plugins/tick/getKillmails.php on line 144
PHP Notice:  Undefined index: userCounts in /var/www/EVE-Discord-Bot/plugins/onMessage/eveStatus.php on line 76
PHP Warning:  Invalid argument supplied for foreach() in /var/www/EVE-Discord-Bot/plugins/tick/getKillmails.php on line 144
PHP Warning:  Invalid argument supplied for foreach() in /var/www/EVE-Discord-Bot/plugins/tick/getKillmails.php on line 144
PHP Warning:  Invalid argument supplied for foreach() in /var/www/EVE-Discord-Bot/plugins/tick/getKillmails.php on line 144
PHP Fatal error:  Uncaught exception 'GuzzleHttp\Exception\ClientException' with message 'Client error: `GET https://discordapp.com/api/users/153616150079602688` resulted in a `403 FORBIDDEN` response:
{"code": 20002, "message": "Only bots can use this endpoint"}
' in /var/www/EVE-Discord-Bot/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:107
Stack trace:
#0 /var/www/EVE-Discord-Bot/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 /var/www/EVE-Discord-Bot/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 /var/www/EVE-Discord-Bot/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array)
#3 /var/www/EVE-Discord-Bot/vendor/guzzlehttp/promises/src/TaskQueue.php(61): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 /var/www/EVE-Discord-Bot/ in /var/www/EVE-Discord-Bot/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 107
PHP Warning:  Invalid argument supplied for foreach() in /var/www/EVE-Discord-Bot/plugins/tick/getKillmails.php on line 144


2016-06-23T02:55:20+02:00 WARN (4): Error: Client error: `PATCH https://discordapp.com/api/guilds/184407516317220865/members/185541919860850690` resulted in a `403 FORBIDDEN` response:
{"code": 50013, "message": "Missing Permissions"}



Any suggestions?
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#9 - 2016-06-27 09:55:41 UTC
That error is fixed in

https://github.com/shibdib/Dramiel

New bot using new framework and the actual API.
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#10 - 2016-07-03 05:45:48 UTC
looking for plugin ideas, reddit thread added to op
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#11 - 2016-07-08 08:32:39 UTC  |  Edited by: Mr Twinkie
Bot can now be linked with Fleet Up to auto share new operations and then re-ping them ~30 minutes before form up

http://i.imgur.com/YBeKXAS.png
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#12 - 2016-08-05 01:51:53 UTC
Hit 50 servers using the basic bot \o/
Minerva Arbosa
Spatial Forces
Warped Intentions
#13 - 2016-08-05 15:57:29 UTC
Any way to reduce the bandwidth this application uses? I had it setup on a server and noticed a huge jump in bandwidth usage constantly.
Ammath
Tr0pa de elite.
Test Alliance Please Ignore
#14 - 2016-08-08 13:55:11 UTC  |  Edited by: Ammath
I have a few questions on tweaking.

FleetUp doesnt seem to post new operations when posted only upcoming ones.

What is the interval for "upcoming" to post and does it re-ping a few times? How can I modify this so say upcoming is 12hrs instead of 1 or whatever it is now.


---

What is the poller interval for notifications because I have a bot on Slack that seems to get notifications 5-6 minutes faster than this, is this adjustable? If so, where?

--

Any plans for expansion into posting updated/new FleetUP doctrine/fitting changes? Or responding to a command to spit a link to a fitting?
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#15 - 2016-08-23 07:54:40 UTC
Minerva Arbosa wrote:
Any way to reduce the bandwidth this application uses? I had it setup on a server and noticed a huge jump in bandwidth usage constantly.



The only time it should use a bunch of bandwith is when it updates the ccp DB.. which is not very often. (Only major patches)
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#16 - 2016-09-04 09:40:10 UTC
Now on 76 servers and growing!


Bot is also updated to 4.0.1 of DiscordPHP
Toxicirishmn
Doomheim
#17 - 2016-09-05 16:24:42 UTC
I keep trying to find out in your "Spam" chat on discord, but I keep getting kicked from the server... (Excellent customer service)...anyways the character portion isn't updating and hasn't in almost a month. Can someone explain why it hasn't updated?
Inc spike
Perkone
Caldari State
#18 - 2016-09-09 07:27:49 UTC
just want to say, keep up the good work. Looking good. And thanks.
Mr Twinkie
Dreddit
Test Alliance Please Ignore
#19 - 2016-09-11 21:11:54 UTC
Toxicirishmn wrote:
I keep trying to find out in your "Spam" chat on discord, but I keep getting kicked from the server... (Excellent customer service)...anyways the character portion isn't updating and hasn't in almost a month. Can someone explain why it hasn't updated?


No1 has kicked anyone from our server in as long as I can remember.

As for that, that plugin pulls from eve-kill still. I'll work on getting it switched to pull atleast the corp/alliance info straight from crest.
Superboom
Pwn 'N Play
An Alliance Has No Name
#20 - 2016-09-13 06:19:36 UTC
Any chance to get this to work on a Windows box? If so, anyone willing to do a write up? I'd be willing to pay, and I'm sure there are quite a few people that would greatly appreciate it. Thanks in advance for your hard work.
123Next page