[-] tubbadu@lemmy.one 1 points 1 year ago* (last edited 1 year ago)

sorry 'ugly' is not the correct word, but if you notice these notifications are just firefox's windows (you can see it in the process bar on the left), so are not real notifications coming from your OS notification center however I don't know what happend, but today they fixed themselves... this is how they look like now:

I don't know what happened, I didn't even updated anything, I just enabled and disabled some settings, reinstalled libnotify and rebooted a few times

anyway thanks to anyone for the help!

[-] tubbadu@lemmy.one -1 points 1 year ago
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 2 points 1 year ago
[-] tubbadu@lemmy.one 1 points 1 year ago

omg thank you! I never noticed it!

2
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

5
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!

25
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?

1
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!

11
submitted 1 year ago by tubbadu@lemmy.one to c/asklemmy@lemmy.ml
4
hehe (lemmy.one)
submitted 1 year ago by tubbadu@lemmy.one to c/memes@lemmy.ml
1
hehe (lemmy.one)
7
submitted 1 year ago* (last edited 1 year ago) by tubbadu@lemmy.one to c/memes@lemmy.ml
2
submitted 1 year ago* (last edited 1 year ago) by tubbadu@lemmy.one to c/lotrmemes@midwest.social
3
submitted 1 year ago by tubbadu@lemmy.one to c/memes@lemmy.ml
view more: next ›

tubbadu

joined 1 year ago