Share your repls and programming experiences

← Back to all posts
A QR code making discord bot!
h
Dart

So this is a bot that makes QR codes for you

here is the invite: https://discord.com/api/oauth2/authorize?client_id=794999702251634698&permissions=10240&scope=bot

So I was watching @Vandesm14's stream when i got thinking about the potential in QR codes. I found out making one isnt that hard so naturally the next step was to make a discord bot that makes qr codes for you!

To use the bot invite it to your server, then do *make <insert fill colour name here> <insert background colour name here> <insert message here>

example command:

*make black white this is a cool qr code

this will make a white background qr code thats filled in black that will say "this is a cool qr code" when scanned

the bot asks for manage messages permission so it can delete your message to hide what you put into the qr code so that the only way to know is to scan it :)

Voters
ItzjakMeirMoss
seanlnge
zhaq6129
jude119
CodingGoose
mkhoi
CodingCactus
zplusfour
Zavexeon
frissyn
Comments
hotnewtop
HahaYes

:0 so cool

Dart

@HahaYes thanks :3

Jeydin21

But the thing is, if the bot deletes what the user made the QR code go to, someone can just put a malicious link in the QR code and then get someone to scan it and get doxxed or something :>

Dart

@Jeydin21 it would be really difficult to circumvent this, just try not to open qr codes from someone you dont trust

CodingGoose

This is awesome! :D

Dart

@DannyIsCoding thank you :)

TsunamiOrSumth

"Darb is my alt" - @HahaYes , 2021

Dart
HahaYes
jude119

i got an error:
Traceback (most recent call last):
File "main.py", line 101, in <module>
import qrcode
ModuleNotFoundError: No module named 'qrcode'

adl212

There's only like 39 lines of real code in main.py lol

Whippingdot

Me sad 😭😭. I am not meant to be mean or anything, but I finally got a post getting some attention on repl talk, and then you post two posts which get like 8 upvotes in 1 hr and my post moves all the way down. WHY!!

Dart

@Whippingdot I’m sorry to hear :< your posts are really good, I haven’t actually posted to repl talk in almost a year so I’m kinda making a comeback, but don’t give up! I’m sure you’ll make a super popular post soon

Whippingdot

I don't know what to say to that... Well, hope you have a good day/night. Also I would upvote this post but I don't use discord so... @DartZII

Whippingdot

Oh, do you want to join the org for Coders on Repl.it. I created an organization on GitHub and so we are making projects. We are in the middle of one right now. We shared the first release of it but we are still adding more. Check out the GitHub part of the post here and if you can, also check out the website and upvote if you liked! Tell me your GitHub username if you want to join, in the comments of that post. Make sure you read the GitHub part of the post tho as there are important things there. @DartZII

Dart

@Whippingdot It’s alright I’ll let my friends on discord know about your post! I hope you have a lovely evening as well. :3

Dart

@Whippingdot I don’t use GitHub sadly as I don’t really have a use for it currently, and I’m not looking to get into any groups as of right now but I’ll keep it in mind :)

Whippingdot

Ok, did you read my big comment? Do you want to join the org? @DartZII

Dart

@Whippingdot I might look into it later but I’m currently pretty busy, and I don’t use GitHub rn

Whippingdot

Fine, I hope you join later tho. I hope to have a big amount of people in the org(rn 18). @DartZII

JBloves27

I just made a github account, rly rly sry for delaying for so long. My username is JBYT27 @Whippingdot

Whippingdot

Ok, adding you. It is ok btw. @JBYT27

Whippingdot

I am adding you to the python and web dev team. go here to accept @JBYT27

JBloves27

Really cool!

Dart

@JBYT27 thanks :)

JBloves27
PyCoder01

this can easily be converted into a non discord bot and just some plain python. Look here > https://repl.it/@PyCoder01/QRcode#main.py

Dart

@PyCoder01 thats what i made first but i thought it was too easy so

PyCoder01

@DartZII discord bot is still easy

FlaminHotValdez

@DartZII Did your username used to be Zexogon? You have the same pfp and about the same amount of cycles

Dart

@FlaminHotValdez yep i had it changed

FlaminHotValdez

@DartZII called it, you've been inactive for like a year though...

Dart

@FlaminHotValdez yea, im making a comeback lol

Vandesm14

Great job!

Dart

@Vandesm14 thanks lol

DynamicSquid

Cool! I really need to make my own SquidBot

PyCoder01

@DynamicSquid google auth doesn't work. Try using https://webqr.com/

Dart

@DynamicSquid if you want any help lmk :eyes:

SandraPalme

@PyCoder01 here is another great tool for QR code scanning ith a great UI and advanced features
https://dnschecker.org/qr-code-scanner.php

PyCoder01

give me an example of the command

Dart

@PyCoder01 i included one in the post *make black white this is a cool qr code

Dart

@DartZII you can replace "black" and "white" with other colours like "green" or "pink"

Dart

@DartZII it asks for the qr code colours then the message you want it to contain

PyCoder01

@DartZII yeah but it doesnt work taht way

PyCoder01

@DartZII what app do i use to scan

PyCoder01

@DartZII what os do i need

PyCoder01

@DartZII should google auth work?

PyCoder01

@DartZII google auth says unable to interpricate idk

Dart

@PyCoder01 idk any app off the play store that scans qr codes should work

Dart

@PyCoder01 its built into my iphone so

PyCoder01
PyCoder01

@DartZII but you have to print the qr code

Dart

@PyCoder01 google auth only looks for links ig