Making my Python code accessible to my guildmates' phones

49 Views Asked by At

I made some python code tonight that is able to calculate dps based off different stats, but I want my guildmates to be able to use this python code on their phones and/or computers. It is only a little over a page of code so it is a very small script. Is there a way I can make it a mobile app or make the code into a sort of bot that they can use on discord?

I have not tried to do anything on my own yet, as I want to ensure the safety of my information and keep their phones/computers safe from being harmed by any of my own potential accidental malpractice.

1

There are 1 best solutions below

2
shahriar On

You can create a web application using Flask or Django. This way, anyone can access the DPS calculator through a web browser on their phones or computers without needing to install anything.

And if you want to make a discord bot then you can use discord.py (search on the google, you will find many tutorials about it).

For safety,
In web application, make sure to use secure connections (HTTPS).
In Discord bot, ensure that your bot token is kept private.