Welcome, this is an open source cybersecurity awareness bot.
You can get a sample of information related to an ip using /get-ip-info on discord
You can add a live version here
This project was created as an entry for ThatAPICompany's monthly competition join their discord here if you're interested in future ones
Node.js 16.9.0 or newer is required. how to install Nodejs
to install all dependencies just run the following command
npm install
- rename example.env to .env
- fill in the needed information such as your bot's token, bot's id, and your GEO API Key.
if you need help with getting your bot's token and id, see here
-
first you have to create a bot account How to Create a Discord Bot Account?
-
secondly, you need to add your new bot to a discord server so you can access its commands.
- make sure you grant the bot the scope "applications.commands" as it required for "/" commands
Running bot in terminal (to test configuration)
npm start
P.S. This will run the bot in the terminal window, if it closes so does the bot, also it will not autorestart, see below for a recommended process manager.
To install pm2 globally via npm
run:
npm install pm2@latest -g
npm run pm2
This starts the bot, and will remain running even after you close the window (as long as the server/computer itself is running)
pm2 start ipBot
pm2 stop ipBot
pm2 restart ipBot
pm2 logs ipBot