this post was submitted on 26 Jul 2023
59 points (94.0% liked)

No Stupid Questions

35838 readers
1416 users here now

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!

founded 1 year ago
MODERATORS
 

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.

all 20 comments
sorted by: hot top controversial new old
[–] [email protected] 16 points 1 year ago (1 children)

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

[–] [email protected] 2 points 1 year ago

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

[–] TheBig2023Meltdown 4 points 1 year ago (1 children)

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

What bot are you looking for?

[–] flakeshake 3 points 1 year ago* (last edited 1 year ago)

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

[–] [email protected] 3 points 1 year ago (3 children)

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

[–] [email protected] 6 points 1 year ago

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.

[–] Thekingoflorda 4 points 1 year ago (1 children)

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

[–] [email protected] 2 points 1 year ago

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?")

[–] [email protected] 1 points 1 year ago

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)

[–] CombatWombatEsq 2 points 1 year ago

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.

[–] WontonSoup 2 points 1 year ago (1 children)

Nobody is going to be able to give you a walkthrough in a post. There are a lot of concepts at play which are all going to require you get on google and start learning. You’ll inevitably run into issues that can be specifically asked about and answered but this is so general how would we even begin to give a walkthrough.

If I had to give a spot to start I’d say look into interacting with the apis (or any apis in general) first in your desired language and then figure out some things you can do with the data you’re getting back from the calls.

[–] [email protected] 1 points 1 year ago

Righty. Thanks

[–] Kinglink 2 points 1 year ago (2 children)

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.

[–] [email protected] 3 points 1 year ago (1 children)

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.

[–] Kinglink 5 points 1 year ago

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.

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] Kinglink 0 points 1 year ago

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.