Share your repls and programming experiences

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

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 :)

Comments
hotnewtop
Jeydin21 (73)

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 (1121)

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

jude119 (10)

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

adl212 (158)

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

Whippingdot (378)

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 (1121)

@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 (378)

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 (378)

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 (1121)

@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 (1121)

@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 (378)

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

Dart (1121)

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

Whippingdot (378)

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

JBloves27 (1504)

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

Whippingdot (378)

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

Whippingdot (378)

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

PyCoder01 (80)

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 (1121)

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

PyCoder01 (80)

@DartZII discord bot is still easy

FlaminHotValdez (342)

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

FlaminHotValdez (342)

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

Dart (1121)

@FlaminHotValdez yea, im making a comeback lol

DynamicSquid (4598)

Cool! I really need to make my own SquidBot

Dart (1121)

@DynamicSquid if you want any help lmk :eyes:

PyCoder01 (80)

give me an example of the command

Dart (1121)

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

Dart (1121)

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

Dart (1121)

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

PyCoder01 (80)

@DartZII yeah but it doesnt work taht way

PyCoder01 (80)

@DartZII what app do i use to scan

PyCoder01 (80)

@DartZII should google auth work?

PyCoder01 (80)

@DartZII google auth says unable to interpricate idk

Dart (1121)

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

Dart (1121)

@PyCoder01 its built into my iphone so

PyCoder01 (80)

@DartZII but you have to print the qr code

Dart (1121)

@PyCoder01 google auth only looks for links ig