A Discord bot which automates different actions (described further), it can give you an APA reference, a QR from any valid URL, give you a status of some website, among other functions.
You can edit the functions described below to your own purposes, this code was developed to be highly scalable.
1.- First, clone this GitHub repository, you can do it by:
HTTPS https://github.com/tris460/PottsBot-Discord.git
or SSH git@github.com:tris460/PottsBot-Discord.git
or GitHub CLI gh repo clone tris460/PottsBot-Discord
2.- Then, install the necessaty dependences by running: npm install
3.- After that, you must create your bot, to achieve that, follow the next tutorial from the Discord Developer Portal
4.- Create your .env
file in the root project with the structure show in the .env.sample
file.
5.- To execute the bot in your localhost, run: npm run start
.
⚠ Never commit or share your token or API keys publicly ⚠
Right now we have just a few commands you can use:
!help
Returns a list with all the commands available.!apa <string url>
Returns a reference in format APA from the given URL.!convert <string place1> <string place2>
Gets the current hour from the place1 and place2 to check both hours.!fortune
Returns a text with your fortune of the day.!meme
Sends a funny random image.!qr <string url>
Converts the URL into a QR code and sends it as an image.!shell <string question>
Answers a yes/no question.!status <string url>
Returns the status of your website in PDF format.
This project was created with the following requeriments and dependences:
Node: 18.14.1
NPM: 9.3.1
DiscordJS: 14.8.0
Dotenv: 16.0.3
PDF-Lib: 1.17.1
Puppeteer: 19.6.3
QRCode: 1.5.1
🌷 Beatriz Martínez
🎮 Rubén Rodríguez
✒ Lucía Guzmán
Follow us 👉👈 and star this project ⭐