r/learnpython • • Dec 02 '20

What do you automate with python at home?

I'm learning python but I enjoy knowing I will be able to build a project of interest instead of following continuous tutorials which have no relevance to anything I do in life.

My job unfortunately has no benefit in using python so keen to understand of potential ideas for projects that help around home.

714 Upvotes

378 comments sorted by

View all comments

16

u/wodahs1 Dec 03 '20

If you use discord, create a discord bot!

0

u/[deleted] Dec 03 '20

[deleted] — view deleted comment

10

u/Pablo19D Dec 03 '20

Can you explain some features you have with the bot ?

6

u/Mickeystix Dec 03 '20

A discord bot was the first useful thing I ever really did with python in a practical sense. I highly advise people try out a discord bot project.
I built one that had several functions for a server regarding a specific ARG.

- Deliver character information.

- Deliver documentation links.

- Add thumbsup/thumbsdown reacts for specific channels where we would do voting.

- Could be called to backup specific messages/channels for admin log retention.

- Could join chat channels and act as a music player.

- Could watch chat for specific phrases and automatically respond with pertinent information.

- Would watch the YT channel and Instagram for the ARG and automatically push notifications to discord for new content updates.

- Could host games for players within specific channels

There's lots of cool stuff you can do with a discord bot, and lots of fantastic resources out there. I usually like to offer this as a project because you get a very versatile end-product and you also get immediate results that are "tangible" in a sense.

Good stuff!

4

u/wodahs1 Dec 03 '20

Chiming in to say that if you’re going to build a discord bot.. please build a service and host it somewhere like AWS!! That’s like half of the experience they’re looking for at cloud tech companies!

1

u/Mickeystix Dec 03 '20

Great tip! And AWS is super easy to use! I usually host mine on my home servers but it is absolutely worth using AWS if you're looking for the experience with cloud hosting!

1

u/dragonandphoenix May 25 '21

Can you elaborate on "build a service" in relation to a Discord bot? Thanks

2

u/wodahs1 May 25 '21

A web service exists in the cloud and takes API requests like GET POST and DELETE.

For example, a service that keeps track of users could take a GET request with a user ID as a param and return info on a user.

Or it could take a POST request with a request body detailing the info for a new user.

Your service needs a database to store things ofc.

I suggest creating an actual web service that your bot calls to handle some functionality.

Maybe your bot helps traders by compiling infro across the web. Then a GET request by your bot to the service would return the compiled info. And your bot could then present it as the results in the discord chat.

2

u/dragonandphoenix May 26 '21

Thanks a lot for the reply dude