1
test 3 (lemmy.one)
submitted 1 year ago by tubbadu@lemmy.one to c/test@lemmy.ml
1
test 2 (lemmy.one)
submitted 1 year ago by tubbadu@lemmy.one to c/test@lemmy.ml
1
test (lemmy.one)
submitted 1 year ago by tubbadu@lemmy.one to c/test@lemmy.ml
8
submitted 1 year ago* (last edited 1 year ago) by tubbadu@lemmy.one to c/programming@beehaw.org

Hello fellow Lemmings! I'm trying to develop a Lemmy bot that reads posts and comments using the lemmy-bot library. So I created a new Node.js project, installed the library, and wrote this:

import LemmyBot from 'lemmy-bot';

const LEMMY_USERNAME = process.env.LEMMY_USERNAME;
const LEMMY_PASSWORD = process.env.LEMMY_PASSWORD;
const LEMMY_INSTANCE = process.env.LEMMY_INSTANCE;

const bot = new LemmyBot.LemmyBot({
  // Pass configuration options here
  credentials: {
    username: LEMMY_USERNAME,
    password: LEMMY_PASSWORD
  },
  instance: LEMMY_INSTANCE,
  federation: "all",
  dbFile: 'db.sqlite3',
  handler: {
    comment: {
      handle: ({
        commentView: {
          comment: { creator_id, id }
        },
        botActions: { createComment }
      }) => {
        console.warn("new comment:")
      }
    },
    post: {
      handle: (x) => {
        console.warn("new post", x)
      }
    }
  }
});

bot.start()

and then I run it: node index.js
this is the output:

Connected to Lemmy Instance
Initializing DB
Logging in
Marking account as bot account
Subscribing to communities

and then stops there. I waited a lot and nothing, not a single log. credentials are correct, because otherwise it wouldn't login. the bot is using an account hosted on sh.itjust.work, so there should be plenty of activity (I tried adding comments manually but nothing was detected)

What am I doing wrong?

thanks in advance

[-] tubbadu@lemmy.one 4 points 1 year ago

I'd really like to see a "Unread" filter, that shows posts that has not already been up/downvoted or clicked

[-] tubbadu@lemmy.one 7 points 1 year ago

So we cannot screenshot it, clever... We need to document this and make sure everyone knows what reddit is doing. Perhaps screenshotting the post before posting it, making sure to include the permalink can be an idea to demonstrate their censorship

[-] tubbadu@lemmy.one 3 points 1 year ago

Can you still see the text of the original post? I mean, the text containing the link to lemmy

[-] tubbadu@lemmy.one 58 points 1 year ago

Ah, the free speech, how beautiful

[-] tubbadu@lemmy.one 5 points 1 year ago

I use startpage, that returns the same results as google but keeping you private and with no annoying ads

3
submitted 1 year ago* (last edited 1 year ago) by tubbadu@lemmy.one to c/firefox@lemmy.ml

the last time I remember I received a firefox notification it was using the native notification (i'm using KDE, I also have the KDE integration addon) yesterday I received a notification from lemmy, and this is how they appear, in the center of the screen and... very ugly. what changed? is there a way to get back the native notification?

(you can check how your notification works here)


EDIT: in about:config page, alerts.useSystemBackend is set to true, but still it does not use the native notification

4
submitted 1 year ago by tubbadu@lemmy.one to c/technology@beehaw.org

Hello! I have a lot of sticker packs I created (up to 60), all well cataloged and easy to find. However, for mysterious reasons, it takes a HUGE time to load them up: if I want a sticker from one of the latest packs (so the last one to be loaded, as the loading is done pack by pack) it may take up to a minute or two! I thought that these stickers were downloaded from internet everytime, thus the slow loading, but if I enable airplane mode they still load, slow as usual. does this happend only to me or is a common problem? can you think of any way to fix this?

I really dislike whatsapp but unluckily at least here where I live everyone uses whatsapp, so I am forced to use it if I want to communicate.

thanks in advance!

[-] tubbadu@lemmy.one 6 points 1 year ago

thanks for the super answer! I understand now!

[-] tubbadu@lemmy.one 3 points 1 year ago

thanks for the link, exactly what I was looking for!

27
submitted 1 year ago by tubbadu@lemmy.one to c/technology@beehaw.org

Hello fellow Lemmings! I hope this is the right place to ask this. I don't understand how web domains work. Let's say I want to buy the domain "abcdefghi.net". I can go to a domain provider like haruba or godaddy and just buy it. but how can they, a private, sell me these domains? I'm not talking about the hosting, but just the domain. where do they register this domain I'm buying? isn't it possible to register it myself instead of paying these services to do it for me?

0
submitted 1 year ago by tubbadu@lemmy.one to c/asklemmy@lemmy.ml

I'm really curious about what's happening on Reddit during this user blackout, did r/spez made other bullshits?

[-] tubbadu@lemmy.one 4 points 1 year ago

Thanks! I'll share any news here on lemmy

[-] tubbadu@lemmy.one 3 points 1 year ago

yes of course!

20
submitted 1 year ago* (last edited 1 year ago) by tubbadu@lemmy.one to c/lemmy@lemmy.ml

Hello! I wrote a simple bot that periodically checks for new reddit posts and posts them to lemmy, so that people migrating from reddit to lemmy can still be able to see their favourite posts, but familiarizing with lemmy.

currently the coments are not synced, but this may change in the future (perhaps)

Yes, it uses the Reddit API, so it will stop working on the 1st of July, but I think that then I can implement a sort of web scraper to access Reddit posts without the official API, so this may eventually keep working for a while.

this script is currently on my laptop so it will be offline most of the time, but if I get the approval I may host it somewhere to get it running 24h/24.

now the question... Is this allowed? having this bot running 24h/24 on large subreddits will mean a very high quantity of posts. will this cause any problem to Lemmy?

if you want a preview check out https://enterprise.lemmy.ml/c/reddit_memes, where I started syncing a few posts from r/memes

let me know your opinion on this!

==== EDIT

here's the bot source code

The bot is now running in https://sh.itjust.works/c/reddit_memes, let's try to see if it work (I hope that shit just works)

I'm a bit concerned about the legality of this, if anyone has any info please tell me!

[-] tubbadu@lemmy.one 5 points 1 year ago

Fedora KDE here :D
Welcome onboard!

196
submitted 1 year ago by tubbadu@lemmy.one to c/asklemmy@lemmy.ml
[-] tubbadu@lemmy.one 8 points 1 year ago

ƧᑫƧᑫƧᑫƧᑫƧᑫƧᑫƧᑫƧᑫƧᑫ

[-] tubbadu@lemmy.one 5 points 1 year ago

Singing, I really enjoy it but I'm a disaster

5
submitted 1 year ago by tubbadu@lemmy.one to c/asklemmy@lemmy.ml

Hello guys! I'm looking for a cool wallpaper that matches my accent color #00D3B8
thanks in advance!

1
submitted 1 year ago by tubbadu@lemmy.one to c/asklemmy@lemmy.ml
view more: next ›

tubbadu

joined 1 year ago