How to add IP lookup commands to discord.js bot - command

Im trying to make and IP lookup bot that just shows as much information possible about the looked up ip, for example you would type something like:
-ip [ip here]
and the bot would return in an embed:
**[IP/Header Here]**
State:
City:
ISP:
etc
etc
etc
In the future I would like to add rockstar social club lookup as well (I assume its almost the exact same code.)
note: im making this bot for fun and dont plan to use it maliciously
I do know some knowledge about discord.js in general (as im developing a separate bot) but for something like this I have 0 prior knowledge so any other npm modules etc I need to install, please let me know :D
Thanks in advance for the help

You're probably looking for an API that'll give you info about the IP. Take a look at https://ipstack.com/ not recommending them in particular, just the first one I found. You can find a lot more with a simple google search.

Related

Please tell me where to find early versions of thttpd web server

I am going write a simple web server, after read some really simple samples of http servers,
I want to read something complicated, so i went to thttpd server's web page, but I can not find
early versions of thttpd, because i want to read the source code following the Changelogs.
I'm really appreciated if somebody tell me how to find them ?
If you cannot find the download, try asking for it directly. They have a mailing list:
There's a mailing list: thttpd#mail.acme.com (thttpd-request#mail.acme.com to subscribe, archived here)

Logging into an amazon account via a perl script

I am trying to add books on my computer directly into my amazon account through a perl script. Does anyone know how to achieve this.I am unable to find any api or any cpan module which makes this task simpler.
Looks like you might want Net::Amazon::RemoteCart.
Update: From the comments below, it seems that you don't want to add a book to a shopping cart, but to your Kindle account.
I think that the easiest way to do that is probably to email the book to your Kindle address.
Next time you want to ask a question about the Kindle, it might be a good idea to include the "Kindle" :-)

First web server questions

Just looking for some help/suggestions with this. I require my own server for an upcoming project that will be hosting users websites. I want to build a control panel the user can log into and modify their website which will be stored elsewhere on the server. This all seems easy enough, It's just managing domains and emails that confuse me.
What should I look for to manage domain names and point them to the correct website and also what would be the best way to manage email accounts/set up new ones etc. I want to avoid cPanel/WHM if possible, I'm looking to control most things through the control panel I will be building. So any suggestions on this would be useful as well, as I will be wanting to add email accounts through php (Can be done using a shell I assume?).
I will also be wanting to measure bandwidth used on the websites contained in each users directory, any suggestions on making this possible?
I'm really looking for some suggestions on what software to use to set this up, any advice would be really helpful!
Thanks,
Graeme
It sounds like you've got a lot of creative room. May I suggest a web framework? Django. With it you can build out a nice control panel, it's template system is clean and concise. It's also based on Python and thats why I suggest it. If there is a python module for it, you can use it in Django... so things like altering, creating, etc. local data/files is a breeze. you simply us Python (you can even forget it's "django"), crunch your data and then spit it out (into django... out to templates.. to display to the user).
You'll likely want AJAXY biznazz, their is a nice Django App for that, Dajax. Django has a rich and helpful community and tons of resources. Just hop on GitHub.com and search for Django, You'll find tons of stuff.
Im building a DNS Control Panel with it. Which sounds like a minimal version of what you're doing.

Programmatically Fax from Internet form

I'm new to programming, and my only area of expertise is web design/simple development on platforms like wordpress/expression engine. (Yea, you guys can laugh).
I have a new client who currently receives medical faxes through an online form (the user fills out a form concerning their prescriptions and once submitted, it faxes the info).
I'm completely redesigning their site, and I'm not sure how online faxing works.
Has anybody dealt with internet faxing? How does it work? Does/can it go through email?
And is it possible to send a fax through a form with javascript/php or route it through email?
Don't pay for it! All you need is a modem on the server and a standard phone line. Then set up a fax print driver under your os (you can do it on windows and unix).
The unix way is mgetty/sendfax : http://mgetty.greenie.net/doc/mgetty_3.html#SEC3
The Windows way : http://support.microsoft.com/kb/306657
There are other ways but unless you can't get a phone line you'd be mad to pay fees for it.
Would it not be helpful to look at how it is currently being done, that way you can learn a thing or two about the process before trying to go do it again? That way you can find if it is using any special libraries or techniques or services to send the fax and you can then either duplicate the code or use it as a template to get started on your own solution.
All of what your asking is possible. I would recommend finding a service provider who can send the fax for you. They all have different interfaces requirements and pricing. I used to use DataOnCall which is now called Fax.com
They had a web service which we would post the document to be faxed plus additional information. They were a preety reasonable service. This was several years ago so I can't speak how they currently fair.
Take a look at eFax's SDK. I haven't used it, but it looks like it might be useful to you.
Yes, you can send faxes via email through several services; this link seems to have some useful information. I worked at a company previously that did this same sort of thing, and while I don't recall the exact service we used, most of them are very similar, and they work reasonably well.

Simple/lightweight alternative to GNU Mailman?

I'm looking for a dead simple mailing list (unix friendly). Robustness, fine-grained configurability, "enterprise-readiness" (whatever that means) are not requirements. I just need to set up a tiny mailing list for a few friends. Rather than hack something up myself, I was wondering if anybody knows of anything already out there with a similar goal?
I should note right now that I don't want an externally hosted mailing list -- it needs to be software I can install and run on my server. I know of many places I can host a mailing list at (Google/Yahoo groups), but it would be nice to keep the data local.
Mailman is one of the simplest mailing list packages I've come across, so if Mailman is more than you want to deal with I'd suggest just adding an entry into /etc/aliases for your mailing list.
Of course you have to manage it by hand, but you said it's only for a few friends so that may not be a problem. Just create an entry in /etc/aliases such as:
mylist: me#somedomain.com, myfriend#somedomain.com, \
myotherfriend#differentdomain.com
and then run newaliases. It doesn't get much simpler than that. If you want an archive you can create a dummy account on your mail server and add them to the list.
It's not as user friendly as Mailman but it's simple and you can be up and running in 5 minutes.
If you're not afraid of perl, give Minimalist a try.
If you want something easy to setup, with a user interface on top then I would recommend to check out WP Mailster (WordPress plugin) or Mailster (Joomla plugin).
No matter which of the two CMS you prefer, you will only need 5 minutes to have a "naked" WordPress or Joomla and the plugin installed.
It really works well and is easy to use. I have used Mailster for years and recently, with my site's move to WordPress have switched wo WP Mailster.