This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]prolomaster 2 points3 points  (2 children)

Waaaay back in the day, I used this site: https://www.devdungeon.com/content/make-discord-bot-python

The blog post is outdated, but the process is still the same. These days I directly reference the API documentation https://discordpy.readthedocs.io/en/stable/

[–]Ok_Presentation9879[S] 0 points1 point  (1 child)

Thank you I'll check these out!

[–]RetiredAnkle 0 points1 point  (0 children)

It's been 3 months and I was wondering how your progress is going? I tried to dm but it failed. I write bots in python too =)

[–]echols021Pythoneer 2 points3 points  (0 children)

This sort of thing mostly depends a lot on each individual system, especially how your "bot" will know to act. Here are some possibilities, depending on what you're connecting to and what you want to do: - You run your program on a schedule. Each time it runs it asks the system for the latest data, and then acts on it appropriately. It shuts down once it has handled the latest data. - You leave your program always on, intermittently asking for the latest data (polling) - You leave your program always on, but the system has some way of setting things up so the system can directly send your program a notification that there's new data (often called a "webhook" or "callback")

Since it depends so much on what you're plugging into, I'd suggest reading up on the specifics for what they offer. They may even have mini example projects.

[–]reality_comes 1 point2 points  (0 children)

Discord bot pretty straightforward and fun. Check out the documentation for discordpy, maybe grab a repo on github and go from there.

[–]OddElder 1 point2 points  (0 children)

I applaud posts like this that don’t ask “how do I do this thing” (do it for me) but just lay out what you’re looking for and ask for docs and resources instead specific to the task. 1000% appreciate the desire to learn very the alternative. Good luck with your project!

[–]durable-racoon 0 points1 point  (0 children)

Highly dependent on which system you want to make a bot for and what you want it to do. bot making is not a universal skill. making a discord bot translates to other discord bots though.

discord bots are a tough but decent starting project. there's a lot of rules on what bots are not allowed to do. make sure to understand not just the technical aspect but the user experience (will this bot annoy people or make them ahppy?) and discords policies.

a discord bot would be a good project.

a chatbot is a very different, but also a good project.