So, plainly, my questions are what know-how do I need to make one and if I ultimately can make one, how do I integrate it into a platform? E.g how did the pipedbot link I got to see, get integrated into lemmy in the comments section?

So, I just discovered something called piped because a lemmy bot linked a YouTube video to it. My familiarity with privacy and FOSS is a bit naïve, but I’d like to build more on it. I’ve seen similar bots when I was on reddit, ones that would give links to a mentioned song, or the moderator ones (I’m assuming the AutoMod thing is a bot too).

Could someone possibly walk me through how to make one? This might be irrelevant/relevant info: I’m familiar with knowledge graphs, SPARQL, a tiny tiny tiny bit of SQL, python and R (mostly because of school).

Also, apart from links, moderation, and chats on customer service websites, where would a non-techy apply it? Even if it’s just for personal use.

I know I could duckgogo this, but I prefer dynamic walkthroughs/explanations I can get here.

14 points

To be honest, you can make most bots with a little bit of programming knowledge and a good starter guide. Unfortunately, I’ve seen no starter guides for Lemmy bots.

Edit: actually Lemmy bot code looks insanely simple. Maybe I’ll make a guide myself https://github.com/tracyspacy/ai-tldr-bot-lemmy/blob/main/tldr.py

permalink
report
reply
2 points

Wow. This. Exactly this. The code looks straightforward. I was too worried for nothing. I thought I had to have like proper proper computer/data science knowledge for it, but the here has given me something to do while I struggle with another sleepless night. Thanks

permalink
report
parent
reply
4 points

If you’re familiar with python, have a look at pythorhead, it’s a lemmy library

What bot are you looking for?

permalink
report
reply
2 points
*

I second Python. Probably the easiest full-fledged general-purpose programming language to learn. Plenty of reddit bots used to be written in Python. The “praw” module used to make it very easy. I’m sure pythorhead has similiar ambitions. In regard to the question: I have heard good things about “Automate the Boring Stuff with Python” (no, i am not affliated with either author or publisher) : Link

permalink
report
parent
reply
3 points

as you have basic programming knowledge chatgpt will probably help enough to do what you want

permalink
report
reply
6 points

I want heavily discourage using chatgpt for anything learning-related. It hallucinates often, randomly, and very convincingly, and you wouldn’t have enough experience to spot when it lies.

permalink
report
parent
reply
4 points

Doesn’t chatgpt’s data only scratch till 2021? A lot has probably changed in that timeframe.

permalink
report
parent
reply
2 points

Err… not really? Python is a mature programming language which is more-or-less the same experience to write code within compared with 2 years ago. A few comfort features might have been added in that time, but all of the core stuff has been cemented in place for quite a long time now.

Yes, ChatGPT will struggle if you ask it something very domain-specific (e.g.: “write an example app for posting to Lemmy”), but it can be a great tutor if you stick to broader queries (e.g.: “write a boilerplate Python commandline application”, “add a --help argument to this existing argparse code”, “why am I getting an undefined variable error in this code?”)

permalink
report
parent
reply
1 point

Oh yeah. My goldfish brain forgot I could have asked chatgpt, even with it’s random inconsistencies. Thanks for the reminder (I’m not being sarcastic btw)

permalink
report
parent
reply
2 points

What do you want it to do?

There’s a lot of automation program that works rather easily. But it’s more about the program you choose.

I’m familiar with knowledge graphs, SPARQL, a tiny tiny tiny bit of SQL, python and R (mostly because of school).

Sounds like you have some computer knowledge. So next thing you should do is look up what ever you want to do and then see if there’s some automation already at play.

If you want something for lemmy, start looking through these and good luck.

permalink
report
reply
3 points

The part that s throwing me off is

Without technical know-how

Because if you want a bot to tackle a very specific problem, you’ll most likely have to dig through documentation to understand how. But that’s about as technical as it gets as well. And the knowledge listed is about the foundation everyone else has that is building small scale bots for narrow use cases from what I know.

permalink
report
parent
reply
5 points

Yeah, most people don’t realize programming is just reading websites/documents and trying to figure out how to fit piece A to piece B.

I mean there’s some programs where there’s no real APIs, but for the most part it’s mostly “Get X to do Y” I do networking code for a router and a decent chunk of what I REALLY do in code is configuring stuff based on how our device is configured… or configuring stuff that configures stuff.

permalink
report
parent
reply
1 point

Thank you for the link. It’s helped me grasp some things I found vague in my understanding.

permalink
report
parent
reply
0 points

As a follow up, you might want to start with a discord bot if you’re curious. We have a slack bot at work that’s pretty useful. But again it depends what your goal is or what you want to do. Programming is fun and working with simple bots is probably the easiest and most interesting stuff to do… until it doesn’t work.

Oh and use ChatGPT to ask questions, I’ve found it extremely helpful even when I’m doing really hard programming tasks, especially because how you phrase the question helps your brain start working on the problem.

permalink
report
parent
reply
2 points

I think a good place to start is: what are you going to run it on? You’ll need to leave it on all the time, so probably your laptop.

Once you have some hardware to run the bot on, you’ll want to find a bot project to build and deploy on your hardware. I put most of my software projects on GitHub, but there are other sites.

Then, start following the instructions on the bot and post questions as you have them.

permalink
report
reply

No Stupid Questions

!nostupidquestions@lemmy.world

Create post

No such thing. Ask away!

!nostupidquestions is a community dedicated to being helpful and answering each others’ questions on various topics.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must be legitimate questions. All post titles must include a question.

All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.



Rule 2- Your question subject cannot be illegal or NSFW material.

Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That’s it.



Rule 5- No baiting or sealioning or promoting an agenda.

Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding META posts and joke questions.

Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.

On fridays, you are allowed to post meme and troll questions, on the condition that it’s in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.

If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.



Rule 7- You can't intentionally annoy, mock, or harass other members.

If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.

Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.



Rule 8- All comments should try to stay relevant to their parent content.

Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- Majority of bots aren't allowed to participate here.

Credits

Our breathtaking icon was bestowed upon us by @Cevilia!

The greatest banner of all time: by @TheOneWithTheHair!

Community stats

  • 9.5K

    Monthly active users

  • 3K

    Posts

  • 120K

    Comments